Skip to content

Instantly share code, notes, and snippets.

View rbartoli's full-sized avatar

Riccardo Bartoli rbartoli

View GitHub Profile
describe( 'Top level suite', function() {
describe( 'Second level test suite', function() {
before( function() {
// executes once, before all tests
} );
beforeEach( function() {
// executes before each test of the suite
@rbartoli
rbartoli / create-swap.sh
Created March 29, 2015 18:05
Linux: create swap file
dd if=/dev/zero of=/swapfile bs=1M count=1024
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults 0 0" > /etc/fstab