Skip to content

Instantly share code, notes, and snippets.

@ojacobson
ojacobson / gist:6516067
Last active December 22, 2015 18:58 — forked from st3fan/gist:6515999
class my_app {
$checkout = "/vagrant"
$virtualenv = "/home/vagrant/env"
python::virtualenv { $virtualenv:
ensure => present,
owner => "vagrant",
version => "system",
}
@ojacobson
ojacobson / option-one.pp
Last active December 22, 2015 18:49 — forked from st3fan/gist:6515937
class system-update {
exec { 'apt-get update':
command => 'apt-get update',
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin'],
}
Exec['apt-get update'] -> Package<| |> # before all packages
$sysPackages = [ "build-essential", "nmap", "skipfish", "curl", "libcurl4-openssl-dev" ]
package { $sysPackages:
@ojacobson
ojacobson / hello.py
Last active December 17, 2015 11:29 — forked from idcmp/hello.py
__author__ = 'idcmp'
import json
def handle_westie_results(results):
print results
dancers = {}
success = 0
@ojacobson
ojacobson / Clock.java
Created November 27, 2012 02:41 — forked from azuby/Job.java
public class Model {
JSONClient clientFactory;
private final String resource;
protected Model(String resource, Activity activity) {
this.resource = resource;
clientFactory = new JSONClient(activity);
}