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
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
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
""" changed on 2016/03/13 | |
""" msc | |
set nocompatible | |
""" Vundle - begin | |
filetype off " required by Vundle | |
set rtp+=~/.vim/bundle/Vundle.vim |
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/sh | |
set -e | |
# switch https to ssh | |
sed -i 's/https:\/\/\([^\/]*\)\/\([^\/]*\)/git@\1:\2/g' .gitmodules | |
# init and fetch all submodules at the parent specified SHA-1 commit | |
git submodule update --init |
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
gce.py --host [host] | python -mjson.tool | pygmentize -l json | |
pip install --user -e . | |
git config --global core.excludesfile ~/.gitignore |
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
gcloud info |tr -d '[]' | awk '/account:/ {print $2}' | |
gcloud info |tr -d '[]' | awk '/project:/ {print $2}' | |
gcloud info |tr -d '[]' | awk '/zone:/ {print $2}' | |
docker login -e dummy@example.com -p $(gcloud auth print-access-token) -u _token https://gcr.io && docker push [your-image] |