I hereby claim:
- I am zeeraw on github.
- I am zeeraw (https://keybase.io/zeeraw) on keybase.
- I have a public key whose fingerprint is F746 02A9 B06C 76BB 55F0 75EB 3DBB FB69 1F4B C1B5
To claim this, I am signing this object:
gzip_types text/plain text/css text/javascript text/xml application/json application/x-javascript application/xml application/xml+rss; | |
{{ $cluster := getenv "CLUSTER" | printf "/clusters/%s" | getv | json }}{{ range $cluster.upstreams }}{{ $upstream := . | printf "/upstreams/%s" | getv | json }}{{ $servers := printf "/servers/%s/%s/*" (getenv "CLUSTER") . | gets }} | |
upstream @{{base .}} { | |
{{ range $servers }}server {{base .Key}} {{ range $key, $value := json .Value }}{{ $key }}={{ $value }}{{ end }}; | |
{{ end }}server 0.0.0.0 fail_timeout=0; | |
}{{ end }} | |
server { | |
listen 80; | |
} |
$ FOO="hello\nworld" ruby -e 'puts ENV["FOO"].inspect' | |
# "hello\\nworld" | |
$ FOO='hello\nworld' ruby -e 'puts ENV["FOO"].inspect' | |
# "hello\\nworld" | |
$ FOO=hello\nworld ruby -e 'puts ENV["FOO"].inspect' | |
# "hellonworld" | |
$ FOO=hello\\nworld ruby -e 'puts ENV["FOO"].inspect' | |
# "hello\\nworld" |
module Factories | |
module RiakClient | |
def self.call(url) | |
require "uri" | |
uris = url.split(" ").map { |url| URI(url) } | |
uris.map! do |uri| |
I hereby claim:
To claim this, I am signing this object:
## Where to emit the default log messages (typically at 'info' | |
## severity): | |
## off: disabled | |
## file: the file specified by log.console.file | |
## console: to standard output (seen when using `riak attach-direct`) | |
## both: log.console.file and standard out. | |
## | |
## Default: file | |
## | |
## Acceptable values: |
Job deis-router@1.service loaded on 9eead0c3.../172.17.8.102 | |
deis-builder-data.service already loaded. Skipping... | |
deis-database-data.service already loaded. Skipping... | |
deis-logger-data.service already loaded. Skipping... | |
deis-registry-data.service already loaded. Skipping... | |
fleetctl --strict-host-key-checking=false load logger/systemd/deis-logger.service cache/systemd/deis-cache.service database/systemd/deis-database.service | |
Job deis-cache.service loaded on cd056a02.../172.17.8.100 | |
Job deis-logger.service loaded on 88e364b8.../172.17.8.101 | |
Job deis-database.service loaded on 9eead0c3.../172.17.8.102 | |
fleetctl --strict-host-key-checking=false load registry/systemd/*.service |
class Animal | |
attr_accessor :name | |
def self.named(name) | |
self.new(name) | |
end | |
def initialize(name) | |
self.name = name |
class Animal | |
attr_accessor :name | |
def self.named(name) | |
self.new(name) | |
end | |
def initialize(name) | |
self.name = name |
.main-container, .sidebar | |
@each $vendor in -moz-, -o-, -webkit-, "" | |
#{$vendor}transition-property: margin-right, margin-left | |
#{$vendor}transition-duration: .3s | |
#{$vendor}transition-timing-function: ease-in-out |
is_running() { | |
[ -f $1 ] || return 1 | |
read PID < $1 | |
[ -d /proc/${PID} ] || return 1 | |
return 0 | |
} | |
if is_running "/var/run/app.pid/"; then | |
echo "running" | |
else |