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 | |
| # exit script if not run as root | |
| if [[ $EUID -ne 0 ]]; then | |
| cat <<END | |
| you need to run this script as the root user' >&2 | |
| use :privileged => true in Vagrantfile | |
| END | |
| exit 1 |
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
| install_ruby() { | |
| # install dependencies | |
| apt-get -y install zlib1g-dev libssl-dev libc6-dev libncurses5-dev | |
| # due to problems on openssl on debian based distributions, install the | |
| # openssl package from tvm and point to this location using the configure | |
| # flags | |
| # | |
| # install rvm | |
| apt-get -y install curl |
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
| #!/usr/bin/env perl | |
| use Modern::Perl; | |
| use autodie; | |
| use warnings; | |
| use threads; | |
| use Thread::Queue qw( ); | |
| use Getopt::Long; | |
| require LWP::UserAgent; | |
| use Benchmark; |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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 | |
| # Setup a debian based vagrant machine | |
| TO_CLEAN_PKGS=() | |
| nullify_free_space() { | |
| echo 'clearing free space' | |
| dd if=/dev/zero of=/EMPTY bs=1M | |
| rm -f /EMPTY | |
| } |
NewerOlder