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
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
boxes = [ | |
{ :name => "zoo1", :ip => "10.10.10.35" }, | |
{ :name => "zoo2", :ip => "10.10.10.36" }, | |
{ :name => "zoo3", :ip => "10.10.10.37" }, | |
{ :name => "zoo4", :ip => "10.10.10.38" }, | |
{ :name => "zoo5", :ip => "10.10.10.39" } |
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
--- | |
driver: | |
name: vagrant | |
synced_folders: | |
- ["chef/","/chef_instance"] | |
provisioner: | |
name: chef_zero | |
require_chef_omnibus: true | |
chef_omnibus_url: "file:///chef_instance/install.sh" |
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
environment_path "/var/chef/env/" | |
environment "production" | |
chef_zero.enabled true | |
local_mode true | |
json_attribs "/var/chef/attribs.json" | |
node_path "/var/chef/node" | |
cookbook_path [ | |
"/var/chef/cookbooks" | |
] |
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
uuidgen |tr '[:upper:]' '[:lower:]' |
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 | |
# Example docker-machine vSphere create | |
export VSPHERE_CPU_COUNT=4 | |
export VSPHERE_MEMORY_SIZE=8192 | |
export VSPHERE_DISK_SIZE=100000 | |
export VSPHERE_VCENTER="vcenter.doamin.com" | |
export VSPHERE_USERNAME="DOAMIN\user" | |
export VSPHERE_PASSWORD="" | |
export VSPHERE_NETWORK="VM Traffic" |
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
const | |
fs = require('fs'), | |
child_process = require('child_process'); | |
var workers = []; | |
for(var i=0; i<5; i++) { | |
var worker = child_process.fork("lib/ExportWorker.js", [i]); | |
workers.push(worker); | |
console.log('Worker PID: ' + worker.pid); |
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
redis: | |
image: redis | |
ports: | |
- "6379:6379" | |
# Create the koop databause with the following command: | |
# docker exec b5c14ac0d764 psql -U postgres -c "CREATE DATABASE koop TEMPLATE template_postgis;" | |
postgis: | |
image: kpettijohn/postgis:9.3 | |
ports: |
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
log_destination = 'syslog' # Valid values are combinations of | |
# These are relevant when logging to syslog: | |
syslog_facility = 'LOCAL7' | |
syslog_ident = 'postgres' |
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
postgis: | |
image: kpettijohn/postgis | |
command: postgres -c log_min_duration_statement=0 | |
ports: | |
- "5432:5432" |
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
// ghprb 1.29.2 | |
import java.lang.reflect.Field | |
import jenkins.model.* | |
import org.jenkinsci.plugins.ghprb.* | |
def descriptor = Jenkins.instance.getDescriptorByType(org.jenkinsci.plugins.ghprb.GhprbTrigger.DescriptorImpl.class) | |
Field auth = descriptor.class.getDeclaredField("githubAuth") | |
auth.setAccessible(true) |
OlderNewer