Skip to content

Instantly share code, notes, and snippets.

View lee-pai-long's full-sized avatar
💭
Work In Progress

Saïdina MOHAMED ALI lee-pai-long

💭
Work In Progress
  • Marseille (France)
View GitHub Profile

[SQLSERVER] Backup database

Connect to server

> osql -S <SERVER>/<INSTANCE> -E

-E allow to connect without password

[VIM] add Vagrantfile syntax highlighting

$ echo 'autocmd BufNewFile,BufRead Vagrantfile set filetype=ruby' >> ~/.vimrc

[BASH] Add vagrant completion

$ [sudo] wget \
> https://raw.github.com/kura/vagrant-bash-completion/master/etc/bash_completion.d/vagrant \
> -O /etc/bash_completion.d/vagrant

[DOCKER] Add bash completion for docker compose

$ [sudo] bash -c \
> "curl -L https://raw.githubusercontent.com/docker/compose/\
> $(docker-compose --version | awk 'NR==1{print $NF}')\
> /contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"

[Linux Mint 17.2] Install Tomahawk

$ sudo add-apt-repository ppa:tomahawk/ppa && \
> sudo apt-get update && \
> sudo apt-get install tomahawk

[LINUX MINT 17.2] Install Terraform

$ wget -P /tmp/ \
> https://releases.hashicorp.com/terraform/0.6.9/terraform_0.6.9_linux_amd64.zip && \
> [sudo] sudo mkdir /opt/terraform && \
> [sudo] unzip /tmp/terraform*.zip -d /usr/local/bin

[Linux MINT 17.2] Install Steam

$ cd ~/Downloads/ && \
> wget https://steamcdn-a.akamaihd.net/client/installer/steam.deb && \
> sudo apt-get update && \
> sudo dpkg -i ./steam.deb

[LINUX MINT 17.2] Install PIP bash completion

$ git clone git://github.com/ekalinin/pip-bash-completion.git && \
> sudo cp ./pip-bash-completion/pip /etc/bash_completion.d/ && \
> . /etc/bash_completion.d/pip
@lee-pai-long
lee-pai-long / install-pep257-tool_atom.md
Last active March 2, 2017 14:56
PEP 257 = Docstring Conventions

[Atom] Install PEP257 plugin

$ sudo pip install pep257 && \
> apm install linter-pep257

[Linux Mint 17.2] Install Numix Theme

$ sudo add-apt-repository ppa:numix/ppa && \
> sudo apt-get update && \
> sudo apt-get install numix-gtk-theme