Skip to the relevant sections if needed.
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
| " Set the title of the Terminal to the currently open file | |
| function! SetTerminalTitle() | |
| let titleString = expand('%:t') | |
| if len(titleString) > 0 | |
| let &titlestring = expand('%:t') | |
| " this is the format iTerm2 expects when setting the window title | |
| let args = "\033];".&titlestring."\007" | |
| let cmd = 'silent !echo -e "'.args.'"' | |
| execute cmd | |
| redraw! |
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 | |
| if [ ! -n "$1" ] ; then | |
| echo | |
| cat <<EOF | |
| USAGE: | |
| ./docker-run <command> [-- <docker options>] |
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
| # Version key/value should be on his own line | |
| PACKAGE_VERSION=$(cat package.json \ | |
| | grep version \ | |
| | head -1 \ | |
| | awk -F: '{ print $2 }' \ | |
| | sed 's/[",]//g') | |
| echo $PACKAGE_VERSION |
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
| My name is {{.Name}} and I'm {{.Age}} years old!! |
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
| daemon off; | |
| worker_processes 1; | |
| events { worker_connections 1024; } | |
| http{ | |
| sendfile on; |
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 ~/opt | |
| hg clone https://vim.googlecode.com/hg/ vim | |
| # Lua | |
| sudo apt-add-repository ppa:archiveteam/wget-lua | |
| sudo apt-get update | |
| sudo apt-get install lua5.2 | |
| cd ~/opt/vim | |
| make distclean |
This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
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 | |
| SERVER_IP=<MY_SERVER_IP> | |
| # copy cloud-config.yml to the server | |
| scp cloud-config.yml core@$SERVER_IP:~/ | |
| # validate cloud-config file | |
| ssh core@$SERVER_IP "coreos-cloudinit -validate --from-file ~/cloud-config.yml" | |
| if [[ $? == "0" ]]; then |