Skip to content

Instantly share code, notes, and snippets.

View mlandauer's full-sized avatar

Matthew Landauer mlandauer

View GitHub Profile

Overall install instructions for installing everything for DTA marketplace

Prerequisites

You'll need a dump of the staging database. Save this to staging.full.dump.sql.

Download repositories

$ mkdir dto
@mlandauer
mlandauer / gist:5d0a0725fe2232c4fd6a
Created May 7, 2015 01:40
Monitor number of open file handles for a process over time
#!/bin/bash
# Provide pid of process for which you want to monitor the number of file handles
# You probably want to use it somewhat like this
# ./file_handle_mon.sh 1877 | tee file_handle_mon.out
while [ 1 ]
do
number=$(lsof -p $1 | wc -l)
date=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo "$date,$number"
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests

Keybase proof

I hereby claim:

  • I am mlandauer on github.
  • I am mlandauer (https://keybase.io/mlandauer) on keybase.
  • I have a public key whose fingerprint is 3F76 87A1 7E1C 37BF 514E 4663 60E5 09F9 1C65 68EC

To claim this, I am signing this object:

loon:cuttlefish matthew$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
@mlandauer
mlandauer / gist:5771376
Created June 13, 2013 05:11
After changing line 10 of dist/modules/cuttlefish/manifests/init.pp to "command => 'rbenv exec bundle install'," and doing a fresh "vagrant up" this is what happened
loon:cuttlefish matthew$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
loon:cuttlefish matthew$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
@mlandauer
mlandauer / postcodes.rb
Last active December 15, 2015 01:49 — forked from henare/postcodes.rb
# See http://en.wikipedia.org/wiki/Postcodes_in_Australia
# Postcodes that are used for LVRs and PO boxes only
def australian_postcodes_po_boxes
nsw = (1000..1999).to_a
act = (200..299).to_a
vic = (8000..8999).to_a
qld = (9000..9999).to_a
sa = (5800..5999).to_a
wa = (6800..6999).to_a
{
"radius": 10000,
"errorCode": 0,
"errorString": null,
"layer": "echopointkatoomba",
"hotspots": [
{
"actions": [],
"distance": 5000,
"type": 0,