Skip to content

Instantly share code, notes, and snippets.


Garrett Wilkin garrettwilkin

View GitHub Profile
garrettwilkin /
Created Feb 2, 2018 — forked from andrewgross/
Python Script to Upload Memcache Metrics to CloudWatch
import sys, time, subprocess, socket, telnetlib
from datetime import datetime
from collections import defaultdict
from boto.ec2.cloudwatch import CloudWatchConnection
# Memcached name: (AWS Name, AWS Metric Type, Calculation Method)
'uptime': ('Uptime', 'Count', 'gauge'),
View gist:cf60895333800707d7db79043fe94078
gw@drogon:~/Downloads$ sudo ./
[sudo] password for gw:
Installing Cisco AnyConnect Secure Mobility Client...
Extracting installation files to /tmp/vpn.19PqnG/vpninst897227991.tgz...
Unarchiving installation files to /tmp/vpn.19PqnG...
Starting Cisco AnyConnect Secure Mobility Client Agent...
Failed to start vpnagentd.service: Unit vpnagentd.service not found.
garrettwilkin /
Last active Sep 20, 2017 — forked from mshkrebtan/
Run Cisco Webex on 64-bit Ubuntu 16.04

Run Cisco Webex on 64-bit Ubuntu 16.04

With Audio and Screen Sharing Enabled

Enable support for 32-bit executables

Add the i386 architecture to the list of dpkg architectures :

sudo dpkg --add-architecture i386
View gist:86a1d3b9516d4a7ddcdd
u'priority': 6,
u'eta': u'2015-11-25T15: 27: 25.112018-05: 00',
u'request': {
u'args': u'[]',
u'time_start': None,
u'name': u'offline_processor.tasks.session_timer',
u'delivery_info': {
u'priority': None,
u'redelivered': False,
options=('find' 'delete')
PS3='state your wish: '
echo -e "\nfind/delete corrupt whisper-files"
select opt in "${options[@]}"; do
case $REPLY in
[12] ) option=$opt; break;;
* ) exit;;
garrettwilkin / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
garrettwilkin /
Created Feb 12, 2015 in django app that runs planout
from django.shortcuts import render, HttpResponse
from django.http import HttpResponseNotAllowed, HttpResponseBadRequest
import logging
from planout.experiment import SimpleExperiment
from planout.experiment import DefaultExperiment
from planout.namespace import Namespace
from planout.namespace import SimpleNamespace
from planout.ops.random import *
import json
garrettwilkin /
Created Sep 4, 2014
Data driven storytelling.

The Data Driven Narrative

As more data that describes politics, finance, governance, and social issues becomes available, new opportunities are created for technologists to inform the public. Here are a few great examples of tools which allow the user experience a situation and learn through interacting with the data.

  1. Rent vs Buy Calculator
  2. 2013 Federal Budget Proposal
  3. Senate Forecast

#API Partners at Hacking Journalism

##API Intros There will be API intros to some of the APIs. These will be running through the afternoon on Saturday.

  • 2:00 pm Embedly
  • 2:30 pm
  • 3:00 pm Twitter
  • 3:30 pm Enigma
  • 4:00 pm MuckRock
  • 4:30 pm Guardian