Skip to content

Instantly share code, notes, and snippets.

@c-oreills
c-oreills / gist:64981758167d7e9946849324273f197f
Created February 12, 2023 19:46
User config for Repeated rows are open/colapsed on refresh grafana issue #49465
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
datid | datname | pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | xact_start | query_start | state_change | waiting | state | backend_xid | backend_xmin | query | runtime
-------+----------------+-------+----------+----------------+------------------+-----
#!/bin/bash
# Adapted from: http://blog.nonuby.com/blog/2012/07/05/copying-env-vars-from-one-heroku-app-to-another/
set -e
sourceApp="$1"
targetApp="$2"
while read key value; do
@c-oreills
c-oreills / pyres_task_decorator.py
Created July 9, 2012 20:22
Pyres task decorator
from functools import wraps, update_wrapper
class Task(object):
"""
Class that wraps a function to enqueue in pyres
"""
_resque_conn = None
def __init__(self, func, priority):
self.func = func