Skip to content

Instantly share code, notes, and snippets.

View ngsmrk's full-sized avatar

Angus Mark ngsmrk

  • London
  • 11:41 (UTC +01:00)
View GitHub Profile
@ngsmrk
ngsmrk / docker_shutdown
Created April 18, 2014 21:40
docker_shutdown
docker stop 9dc78f548c4d
exit
boot2docker save
@ngsmrk
ngsmrk / docker_wordpress_install
Last active August 29, 2015 14:00
docker_wordpress_install
docker run -d -p 80 tutum/wordpress /run.sh
@ngsmrk
ngsmrk / boot2docker login
Created April 18, 2014 21:36
boot2docker login
boot2docker ssh
user: docker
pass: tcuser
@ngsmrk
ngsmrk / boot2docker setup
Last active August 29, 2015 14:00
boot2docker setup
brew update
brew install docker
brew install boot2docker
boot2docker init
boot2docker up
@ngsmrk
ngsmrk / docker_hello_world
Created April 18, 2014 20:59
Docker hello world
time docker run tutum/wordpress echo 'hello world'
@ngsmrk
ngsmrk / gist:9024337
Last active August 29, 2015 13:56
Example Meteor Mongo insert
Offices.insert({name: names[i], rows: [
{number: 1, desks: [
{occupant: 'Person 1'},
{occupant: 'Person 2'}
]}
]});
@ngsmrk
ngsmrk / gist:5420492
Created April 19, 2013 13:51
Remove all gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
@ngsmrk
ngsmrk / gist:4365723
Created December 23, 2012 20:08
Brakeman in Rakefile
task :default do
Brakeman.run :app_path => ".", :print_report => true
end
@ngsmrk
ngsmrk / gist:4364436
Created December 23, 2012 17:03
Running brakeman
# run and put output to console
bundle exec rake brakeman:run
# run and save output as HTML to doc/report.html
bundle exec rake brakeman:run[doc/report.html]
@ngsmrk
ngsmrk / gist:4364392
Created December 23, 2012 17:00
Brakeman setup
# add this to your gemfile in your :development group
gem 'brakeman'
bundle
bundle exec brakeman --rake