I hereby claim:
- I am mbyczkowski on github.
- I am matb (https://keybase.io/matb) on keybase.
- I have a public key whose fingerprint is 1B88 DB20 5BFB 3A69 FFBA 16C1 CBAE 8AE6 119D 01E4
To claim this, I am signing this object:
# Assuming you already have Go installed | |
# Works with any released version of Go (including beta builds) | |
# Prior to Go 1.11 `go get golang.org/x/build/version/<GO_VERSION>` was used. | |
go get golang.org/dl/go1.11 | |
# Assuming that $GOBIN is added to your $PATH | |
go1.11 download |
#!/usr/bin/env bash | |
# Resolve dev domains locally and passthrough other DNS requests | |
set -e | |
dnsmasq_installed=`brew list | grep dnsmasq` | |
if [ -n "$dnsmasq_installed"]; then | |
echo "Installing Dnsmasq..." | |
brew install dnsmasq |
local aes = require("resty.aes") | |
local str = require("resty.string") | |
local sha1 = require("bgcrypto.sha1") | |
local cjson = require("cjson") | |
function verify_and_decrypt_session_cookie(cookie, secret_key_base) | |
local rounds = 1000 | |
local secret_length = 32 | |
local sign_secret_length = 64 | |
local cookie = ngx.unescape_uri(cookie) |
require 'cgi' | |
require 'json' | |
require 'active_support' | |
def verify_and_decrypt_session_cookie(cookie, secret_key_base) | |
cookie = CGI::unescape(cookie) | |
salt = 'encrypted cookie' | |
signed_salt = 'signed encrypted cookie' | |
key_generator = ActiveSupport::KeyGenerator.new(secret_key_base, iterations: 1000) | |
secret = key_generator.generate_key(salt)[0, ActiveSupport::MessageEncryptor.key_len] |
# create a new dir for each version of Go | |
git clone [email protected]:golang/go.git $HOME/go1.8 | |
cd $HOME/go1.8 | |
git checkout release-branch.go1.8 | |
# assuming you installed go binary with homebrew | |
export GOROOT_BOOTSTRAP=/usr/local/opt/go/libexec | |
./all.bash |
I hereby claim:
To claim this, I am signing this object:
# CodeClimate supports multiple-language set-up on per-file basis | |
languages: | |
JavaScript: true | |
Ruby: true |
# As of writing this (7/4/2015) Travis CI only supports one language per project | |
# However, every box comes with Node.js and Ruby pre-installed. | |
# On top of it, you can install custom programs/libraries in the the `before_script` or 'before_install` | |
# stages. | |
# The easiest approach is to go with Node.js box and install approprtiate Ruby version | |
# or vice-versa | |
language: node_js | |
node_js: | |
# pick your version of Node.js | |
- 0.12.2 |
#!/usr/bin/env ruby | |
STDOUT.write("---+ Pruning origin... ") | |
`git remote prune origin` | |
STDOUT.write("DONE\n") | |
STDOUT.write("---+ Collecting a list of merged branches to delete... ") | |
branch_output = `git branch -a --merged remotes/origin/master | grep -v master` | |
list_of_branches_to_delete = branch_output.split("\n") | |
# make sure we don't delete special branches, e.g. deploy branch |