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
# Aliases | |
alias refresh-source='source $HOME/.bashrc' |
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 | |
_pip_completion() { | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
first="${COMP_WORDS[0]}" | |
commands=$($first --help | awk '/Commands\:/,/General Options\:/' | \ | |
\grep -E -o "^\s{2}\w*" | tr -d ' ') | |
opts=$($first --help | \grep -E -o "((-\w{1}|--(\w|-)*=?)){1,2}") |
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
FROM ubuntu | |
MAINTAINER Nicolas Ramy "[email protected]" | |
RUN echo "deb http://archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
# Keep upstart for complaining | |
RUN dpkg-divert --local --rename --add /sbin/initctl | |
RUN ln -sf /bin/true /sbin/initctl |
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 | |
PROJECT_NAME=my_website | |
WORKSPACE=/var/www | |
USERNAME=www-data | |
PORT=22 | |
DATEMARK=`date +%Y%m%d%H%M%S` | |
HOSTNAME=www.example.com |