Skip to content

Instantly share code, notes, and snippets.

View gist:901ed246d9faf4f35df838c43d6bd22a
View gist:88e3905acfd69b838eadbfb85ca653d3
#SingleInstance on
SetTitleMatchMode RegEx
DetectHiddenWindows, On
SetKeyDelay, 500, 240
; This maps ctrl+1-9 to 1-9 on the target CRD window
; as well as ctrl+NumPad1-8 to alt+1-8 on the target
; CRD window. This is a pretty basic layout, should
; be able to cast all memmed spells and have a pretty
elebertus / gist:84bd1daf9b916a74a63a
Created Mar 25, 2015
Workaround for go cent 5.x kernel 2.6.18-238.el5 vDSO gettimeofday
View gist:84bd1daf9b916a74a63a
# Patch the Go runtime package to disable vDSO support for gettimeofday and clock_gettime in order to make compiled Go applications compatible with the buggy CentOS 5.6 kernel: 2.6.18-238.el5
sed -i 's/nelem(sym_keys)/1/g' /usr/local/go/src/runtime/vdso_linux_amd64.c
# Rebuild go
# Rebuild your binary
View gist:31e659cc854859651711
>> foo = [ "bar" ]
=> ["bar"]
>> foo |= [ "baz" ]
=> ["bar", "baz"]
View gist:8624691
from datetime import date
import tornado.ioloop
import tornado.web
class VersionHandler(tornado.web.RequestHandler):
def get(self):
response = {
'version': '1.0.0',
View gist:7036876
# attributes/default.rb
default[:foo] = "bar"
# chef environment
"override_attributes": {
"foo": nil
if node[:foo].nil?
View gist:6783856
# this is for index names to be like: logstash-YYYY.MM.DD
template(name="logstash-index" type="list") {
property(name="timereported" dateFormat="rfc3339" position.from="1""4")
property(name="timereported" dateFormat="rfc3339" position.from="6""7")
property(name="timereported" dateFormat="rfc3339" position.from="9""10")
View gist:5835498
def post(term)
uri = URI("")
params = {:term => term }
uri.query = URI.encode_www_form(params)
res = Net::HTTP.get_response(uri)
data = res.body
result = JSON.parse(data)
pp result['list'][1]['definition']
View gist:5725696
"eureka_connect": {
"url": "",
"get_header": "'Accept': 'application/json'",
"post_header": "'Content-Type': 'application/json'",
"timeout": 3
View gist:5224939
?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="">
<!-- Console Appender -->
<appender name="stdout-appender" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.EnhancedPatternLayout">
<param name="ConversionPattern" value="%-5p | %d{MM-dd-yyyy HH:mm:ss.SSS} | %t | %c(0) - %m%n"/>
You can’t perform that action at this time.