Skip to content

Instantly share code, notes, and snippets.

View bltavares's full-sized avatar
💭
I may be slow to respond.

Bruno Tavares bltavares

💭
I may be slow to respond.
View GitHub Profile
#!/bin/bash
# Run in directory project
comment_spec(){
spec_helper=$(cat <<\EOF
require 'beaker-rspec'
hosts.each do |host|
#install_puppet
#on host, "mkdir -p #{host['distmoduledir']}"
diff --git a/doc/source/statsd.rst b/doc/source/statsd.rst
index b3bf99f..de0c414 100644
--- a/doc/source/statsd.rst
+++ b/doc/source/statsd.rst
@@ -26,6 +26,82 @@ Your init script most probably loads a configuration file named
STATSD_HOST=10.0.0.1
STATSD_PORT=8125
+Metrics Types
+-------------
FROM alpine:3.2
RUN mkdir /counterstrike
WORKDIR /counterstrike
ADD * /counterstrike/
EXPOSE 3000
CMD ls /counterstrike
#!/bin/bash
# Run in directory project
comment_spec(){
spec_helper=$(cat <<\EOF
require 'beaker-rspec'
hosts.each do |host|
#install_puppet
#on host, "mkdir -p #{host['distmoduledir']}"
end
#!/usr/bin/env bash
spec_helper=$(cat <<\EOF
require 'beaker-rspec'
hosts.each do |host|
#install_puppet
#on host, "mkdir -p #{host['distmoduledir']}"
#!/usr/bin/env ruby
require 'shellwords'
def escape(s)
Shellwords.shellescape(s)
end
entry = ''
entry_escaped = entry.gsub(/\*/, '\\*').gsub(/\[/, '\\[').gsub(/\]/, '\\]')
grep_command = "grep -v '^[[:space:]]*#' | grep -- ^#{escape(entry_escaped)}$"
git: github.com/bltavares/kickstart, dependencies/kickstart, master
hg: bitbucket.org/banana/banana, bin/banana, asdf12
require 'rack'
app = Proc.new do |env|
if env['PATH_INFO'] == '/301'
next ['301', {'Content-Type' => 'text/html', 'X-Auth-Token' => 'This-Should-Be-Forwarded', 'Location' => '/headers'}, []]
end
if env['PATH_INFO'] == '/302'
next ['302', {'Content-Type' => 'text/html', 'X-Auth-Token' => 'This-Should-Be-Forwarded', 'Location' => '/headers'}, []]
end
module A
class B::C
end
end
var a = function () { return 1 }
var b = function () { return 1 }
console.log(a == b);
var objectsAreNotMaps = {};
objectsAreNotMaps[a] = 1;
console.log(objectsAreNotMaps[b]);