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
# Install gsutil. | |
curl https://sdk.cloud.google.com | bash | |
gcloud components update gsutil | |
# Set public-read by default. | |
gsutil defacl set public-read gs://bucket | |
# Enable website serving mode. | |
gsutil web set -m index.html -e 404.html gs://bucket |
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
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d |
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
cd ~ | |
mkdir homebrew && curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C homebrew | |
# Add the following to your .bash_profile | |
export PATH=$HOME/homebrew/bin:$PATH | |
sudo ln -s ~/homebrew/include/ /usr/local/include | |
sudo cp ~/homebrew/lib/lib* /usr/local/lib/ | |
brew install redis |
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
#!/bin/bash | |
# Note: Run as sudo. | |
locale-gen --no-purge af_ZA.UTF-8 | |
locale-gen --no-purge am_ET.UTF-8 | |
locale-gen --no-purge be_BY.UTF-8 | |
locale-gen --no-purge bg_BG.UTF-8 | |
locale-gen --no-purge ca_ES.UTF-8 | |
locale-gen --no-purge cs_CZ.UTF-8 | |
locale-gen --no-purge da_DK.UTF-8 |
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
git config --global push.default current |
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
nosetests --nologcapture --rednose --with-gae --without-sandbox -x -s path.to.test |
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
{ | |
"name": "Project", | |
"private": true, | |
"dependencies": { | |
"angular": "1.3.7", | |
"closure-compiler": "http://dl.google.com/closure-compiler/compiler-latest.zip", | |
"closure-compiler-src": "git://github.com/google/closure-compiler.git", | |
"closure-library": "git://github.com/google/closure-library.git" | |
} | |
} |
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
var els = document.querySelectorAll('.name'); | |
[].forEach.call(els, function(el) { | |
// Do stuff. | |
}); |
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
import webapp2 | |
import mimetypes | |
import os | |
import time | |
from datetime import datetime | |
import base64 | |
_here = os.path.dirname(__file__) | |
USERNAME = 'foo' |
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
application: redirector | |
version: redirector | |
api_version: 1 | |
runtime: python27 | |
threadsafe: true | |
libraries: | |
- name: webapp2 | |
version: latest |