Skip to content

Instantly share code, notes, and snippets.

View harlowja's full-sized avatar

Joshua Harlow harlowja

  • Waymo
  • Campbell
  • 20:24 (UTC -07:00)
View GitHub Profile
@harlowja
harlowja / vsprint.py
Created December 9, 2014 06:31
virtual sprint
from Cheetah.Template import Template
from delorean import Delorean
import parawrap
def expand_template(contents, params):
if not params:
params = {}
tpl = Template(source=str(contents), searchList=[params])
return tpl.respond()
@harlowja
harlowja / Pippin.py
Created January 22, 2015 02:40
Pippin.py
import collections
import itertools
import os
from distutils import version as dist_version
from pip import req as pip_req
import pkg_resources
import argparse
@harlowja
harlowja / Pippin.py
Created January 22, 2015 02:47
Pippin.py
import collections
import itertools
import os
from distutils import version as dist_version
from pip import req as pip_req
import pkg_resources
import argparse
@harlowja
harlowja / Pippin.py
Created January 22, 2015 03:45
Pippin.py
import collections
import contextlib
import itertools
import os
import shutil
import tempfile
import copy
from distutils import version as dist_version
@harlowja
harlowja / Pippin.py
Last active August 29, 2015 14:14
Pippin.py
import collections
import contextlib
import copy
import itertools
import os
import shutil
import tempfile
from distutils import version as dist_version
@harlowja
harlowja / add-users.yaml
Created May 12, 2015 17:06
add-users.yaml
#cloud-config
users:
- name: "harlowja"
sudo: "ALL=(ALL) NOPASSWD:ALL"
lock-passwd: False
homedir: "/home/harlowja"
ssh-authorized-keys:
- "ssh-rsa BkDEastNKdRtCVjTyeGu== harlowja@yahoo-inc.com"
- "ssh-rsa vjlwNcMAekYeYuQiBKbo== harlowja@BLAHBLAH.corp.yahoo.com"
@harlowja
harlowja / mime-multipart.txt
Created May 12, 2015 17:14
mime-multipart.txt
From nobody Mon Apr 20 12:02:54 2015
Content-Type: multipart/mixed; boundary="===============0102662315=="
MIME-Version: 1.0
--===============0102662315==
MIME-Version: 1.0
Content-Type: text/cloud-config; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="log_debug.yaml"
#cloud-config
# Enable full debug logging...
@harlowja
harlowja / chef-yahoo.yaml
Created May 12, 2015 17:16
chef-yahoo.yaml
#cloud-config
chef:
exec: true
exec_arguments:
- -j
- /etc/chef/firstboot.json
- -E
- staging
initial_attributes:
@harlowja
harlowja / chef-yahoo-2.yaml
Created May 12, 2015 17:16
chef-yahoo-2.yaml
#cloud-config
chef:
install_type: omnibus
validation_name: thingamajig-validator
validation_key: |
<removed>
server_url: https://chef.my-fancy-host.yahoo.com/organizations/thingamajig
environment: hosted-unallocated_us-east_dev
run_list:
@harlowja
harlowja / benchmark.yaml
Created May 12, 2015 17:17
benchmark.yaml
#cloud-config
packages:
- curl
write_files:
- content: |
#!/usr/bin/env sh
basedirn=/home/y/tmp
benchdirn=bench_results
benchfn=${benchdirn}/bench_results.out