Skip to content

Instantly share code, notes, and snippets.

@bouassaba
bouassaba / composer_clear_cache.sh
Last active August 29, 2015 14:07
Clear composer cache
rm -rf "`composer config cache-dir`"
@bouassaba
bouassaba / setup_git.sh
Last active August 29, 2015 14:08
Setup Git for the first time
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
@bouassaba
bouassaba / freebsd_remove_dep.sh
Last active August 29, 2015 14:08
FreeBSD: Remove useless dependencies after removing a package
pkg delete package
pkg autoremove
@bouassaba
bouassaba / freebsd_install_amp.sh
Created October 23, 2014 13:06
FreeBSD: Install AMP
cd /usr/ports/www/apache22
make install clean
cd ../../lang/php5
make install clean
cd ../../databases/mysql55-server
make install clean
@bouassaba
bouassaba / generate_ssh_key.sh
Created October 23, 2014 15:01
Generate SSH key
ssh-keygen -t rsa -C "[email protected]"
@bouassaba
bouassaba / oh_my_zh.sh
Created October 23, 2014 20:51
oh my zh
curl -L http://install.ohmyz.sh | sh
@bouassaba
bouassaba / vbox.sh
Created October 24, 2014 08:13
Managet VBox VMs with command line
VBoxManage list runningvms
VBoxManage controlvm <uuid> poweroff
VBoxManage unregistervm <uuid>
@bouassaba
bouassaba / vbox_stop_all_running_vm.sh
Created October 24, 2014 08:13
VBox stop all running VMs
VBoxManage list runningvms | awk '{print $2;}' | xargs -I vmid VBoxManage controlvm vmid poweroff
@bouassaba
bouassaba / set_global_gitignore.sh
Created October 24, 2014 13:35
Set global gitignore
git config --global core.excludesfile '~/.gitignore'
@bouassaba
bouassaba / osx_install_npm.sh
Created October 24, 2014 13:50
Insall NPM in OS X
npm install -g less