This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am elebertus on github. | |
* I am elebertus (https://keybase.io/elebertus) on keybase. | |
* I have a public key ASDS1jT4BaHbv5kLgbYRcpppw-zKmeWeG1-1MhucwHiZdgo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
everquest.allakhazam.com###row-top-inner-2 | |
everquest.allakhazam.com##td:nth-of-type(2) | |
everquest.allakhazam.com###MB-iframe-horizontalBTF | |
everquest.allakhazam.com###MB-iframe-skyscraper | |
advertising.com | |
lockerdome.com | |
mathtag.com | |
turn.com | |
adsrvr.com | |
doubleclick.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance on | |
#WinActivateForce | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
usr/local/go/src/make.bash | |
# Rebuild your binary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> foo = [ "bar" ] | |
=> ["bar"] | |
>> foo |= [ "baz" ] | |
=> ["bar", "baz"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import date | |
import tornado.ioloop | |
import tornado.web | |
class VersionHandler(tornado.web.RequestHandler): | |
def get(self): | |
response = { | |
'version': '1.0.0', | |
'last_build': date.today().isoformat() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# attributes/default.rb | |
default[:foo] = "bar" | |
# chef environment | |
{ | |
"override_attributes": { | |
"foo": nil | |
} | |
} | |
if node[:foo].nil? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module(load="omelasticsearch") | |
# this is for index names to be like: logstash-YYYY.MM.DD | |
template(name="logstash-index" type="list") { | |
constant(value="logstash-") | |
property(name="timereported" dateFormat="rfc3339" position.from="1" position.to="4") | |
constant(value=".") | |
property(name="timereported" dateFormat="rfc3339" position.from="6" position.to="7") | |
constant(value=".") | |
property(name="timereported" dateFormat="rfc3339" position.from="9" position.to="10") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def post(term) | |
uri = URI("http://api.urbandictionary.com/v0/define?") | |
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'] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#eureka_connect.conf | |
{ | |
"eureka_connect": { | |
"url": "http://33.33.33.20:8080/eureka/v2/apps/EUREKA-VAGRANT-001", | |
"get_header": "'Accept': 'application/json'", | |
"post_header": "'Content-Type': 'application/json'", | |
"timeout": 3 | |
} | |
} |
NewerOlder