Skip to content

Instantly share code, notes, and snippets.

View colbygk's full-sized avatar
:bowtie:
Oh Hai.

Colby Gutierrez-Kraybill colbygk

:bowtie:
Oh Hai.
View GitHub Profile
---
###############################################################################
# Edit the following variables to suit
env: scratch-api-test
region: blah
az_1: blah
key_name: blah
---
- include_vars: "{{ env }}.yml"
- name: create the VPC
ec2_vpc_net:
cidr_block: "{{ vpc.cidr_block }}"
name: "{{ env }}"
region: "{{ region }}"
state: present
---
- name: Setup the vpc
hosts: localhost
connection: local
gather_facts: False
roles:
- aws-scratch-api
---
dependencies:
- circus
- nodejs
- name:
apt:
name: "somelib"
state: latest
force: yes
- name: Setup Users
sudo: yes
user:
name: "{{ item }}"
comment: "{{ vault['linux'][item]['comment'] | default('No comment') }}"
createhome: "{{ vault['linux'][item]['createhome'] | default('yes') }}"
password: "{{ vault['linux'][item]['password'] | default('nopassword') }}"
state: "{{ vault['linux'][item]['state'] | default('present') }}"
shell: "{{ vault['linux'][item]['shell'] | default('/bin/bash') }}"
groups: "{{ vault['linux'][item]['groups'] | default(item) }}"
@colbygk
colbygk / gist:2c623dd8d2481d55d572
Created January 14, 2016 17:05
ps -e -orss=,args= | grep node | sort -b -k1,1n | pr -TW$COLUMNS
22080 /usr/bin/node server.js
127892 /usr/bin/nodejs /srv/scratch-file-upload-manager/server.js
129036 /usr/bin/nodejs /srv/scratch-file-upload-manager/server.js
134968 /usr/bin/nodejs /srv/scratch-file-upload-manager/server.js
137972 /usr/bin/nodejs /srv/scratch-file-upload-manager/server.js
147424 /usr/bin/nodejs /srv/scratch-file-upload-manager/server.js
148536 /usr/bin/nodejs /srv/scratch-file-upload-manager/server.js
153956 /usr/bin/nodejs /srv/scratch-file-upload-manager/server.js
161976 /usr/bin/nodejs /srv/scratch-file-upload-manager/server.js
162820 /usr/bin/nodejs /srv/scratch-file-upload-manager/server.js
@colbygk
colbygk / keybase.md
Created March 20, 2015 02:58
keybase.md
### Keybase proof
I hereby claim:
* I am colbygk on github.
* I am cgk (https://keybase.io/cgk) on keybase.
* I have a public key whose fingerprint is BF8E 72D4 CD56 A8D9 F068 F9C6 C9CB 1B6B 1264 85D0
To claim this, I am signing this object:
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
void draw() {
// by david
int[][] result;
void setup() {
setup_();
result = new int[width*height][3];
}
void draw() {
// by Dave @ beesandbombs
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}