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

[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 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 Tomahawk

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

[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"

[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

[VIM] add Vagrantfile syntax highlighting

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

[SQLSERVER] Backup database

Connect to server

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

-E allow to connect without password

[MySQL] Execute shell command

mysql> \! <cmd>

Warning : the shell is sh not bash nor the USER configured shell

[Zimbra] Get Default Domain attributes

$ su -l zimbra -c 'zmprov gd $(zmprov gacf zimbraDefaultDomainName | cut -d ' ' -f2)'

[LINUX MINT 17.2] Install clamav

$ sudo apt-get update && \
> sudo apt-get install zlib1g-dev build-essential && \
> sudo apt-get install clamav clamav-daemon clamav-freshclam