Skip to content

Instantly share code, notes, and snippets.

@xinity
xinity / vagrantfile
Created December 24, 2017 12:14
vagrant multiple disk bogus
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.landrush.enabled = true
config.landrush.tld = 'docker.vm'

If you plan to attend this workshop in a conference, as network availibility is often flaky, please check you have the following :

  • A laptop + cord
  • Install docker 1.11
    • Install with Toolbox for windows or for Mac
    • If you haven't done it already, register for the Docker for desktop beta at https://beta.docker.com, and give us your hub account name during the session we can probably do something for you.
  • Test your docker installation works fine
    • docker run hello-world and check you see the welcome message
    • docker run -p 8080:80 nginx and open your browser to your machine on port 8080 and check you see nginx default page.
  • Warm up your local docker machine with the following images :
  • docker pull dockerdemos/lab-web
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@criminy
criminy / StandardWebAppInitializer.java
Created July 19, 2011 17:36
Bootstraps a Servlet 3.0 system using Spring MVC, Spring Security, etc.
public class MyWebAppinitializer extends StandardWebAppInitializer {
//customize the creatino of the web application context
@Override
protected WebApplicationContext createWebApplicationContext() {
AnnotationConfigWebApplicationContext root = new AnnotationConfigWebApplicationContext();
root.scan("com.whatever");
root.getEnvironment().setDefaultProfiles("embedded");
return root;