Skip to content

Instantly share code, notes, and snippets.

View garrettwilkin's full-sized avatar

Garrett Wilkin garrettwilkin

View GitHub Profile
@garrettwilkin
garrettwilkin / upload_memcache_stats.py
Created February 2, 2018 16:37 — forked from andrewgross/upload_memcache_stats.py
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
MAPPINGS = {
# Memcached name: (AWS Name, AWS Metric Type, Calculation Method)
'uptime': ('Uptime', 'Count', 'gauge'),
gw@drogon:~/Downloads$ sudo ./vpnsetup.sh
[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
garrettwilkin / webex-ubuntu.md
Last active September 20, 2017 21:21 — forked from mshkrebtan/webex-ubuntu.md
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
@garrettwilkin
garrettwilkin / gist:f2be2ee166ebf5da6b27e5d481b1698b
Created August 30, 2017 15:30
Shruggie for GitHub comments
¯\\\_(ツ)\_/¯
"{
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,
#!/bin/bash
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
garrettwilkin / 0_reuse_code.js
Last active August 29, 2015 14:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@garrettwilkin
garrettwilkin / views.py
Created February 12, 2015 12:29
views.py 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
garrettwilkin / data_stories.md
Created September 4, 2014 16:57
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 Parse.ly
  • 3:00 pm Twitter
  • 3:30 pm Enigma
  • 4:00 pm MuckRock
  • 4:30 pm Guardian