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
| ruby -e "`gem list`.split(/$/).each { |line| puts `gem uninstall -Iax #{line.split(' ')[0]}` unless line.empty? }" |
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
| # npm update -g npm fails with unmet semver dependencies? You have an older version of normalize-package-data, | |
| curl https://npmjs.org/install.sh | sh |
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
| vagrant up | |
| vagrant vbguest --do install --iso https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_4.3.11-93070.iso |
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
| Vagrant.configure("2") do |c| | |
| c.vm.box = "opscode-ubuntu-12.04" | |
| c.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box" | |
| c.vm.hostname = "default-ubuntu-1204.vagrantup.com" | |
| c.vm.synced_folder ".", "/vagrant", disabled: true | |
| c.vm.provider :virtualbox do |p| | |
| end | |
| end |
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
| apt-get install -y curl | |
| # Install nginx | |
| if [ "xx" = "x$(grep 'nginx' /etc/apt/sources.list )x" ] ; then | |
| echo 'Installing nginx...' | |
| echo ' | |
| # Repositories for up to date nginx packages | |
| deb http://nginx.org/packages/mainline/ubuntu/ precise nginx | |
| deb-src http://nginx.org/packages/mainline/ubuntu/ precise nginx' >> /etc/apt/sources.list | |
| curl -s http://nginx.org/keys/nginx_signing.key | apt-key add - | |
| apt-get update > /dev/null |
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
| #!upstart | |
| description "MyApp" | |
| author "Author name" | |
| env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
| respawn | |
| start on runlevel [23] | |
| stop on shutdown | |
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
| git branch --merged develop | grep -v "\* develop" | xargs -n 1 git branch -d |
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
| npm install --no-bin-links |
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
| <VirtualHost *:80> | |
| DocumentRoot "/home/slavko/labs" | |
| ServerName labs.lvh.me | |
| <Directory "/home/slavko/labs"> | |
| Options Indexes FollowSymLinks | |
| AllowOverride All | |
| Require all granted | |
| Allow from all | |
| </Directory> | |
| </VirtualHost> |
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
| sudo apt-get install xclip | |
| sudo apt-get install git | |
| cd ~/.ssh | |
| ssh-keygen -t rsa -C "YOURBOXNAME" | |
| xclip -sel clip < ~/.ssh/id_rsa.pub |