Skip to content

Instantly share code, notes, and snippets.

Garrett Wilkin garrettwilkin

Block or report user

Report or block garrettwilkin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@garrettwilkin
garrettwilkin / upload_memcache_stats.py
Created Feb 2, 2018 — forked from andrewgross/upload_memcache_stats.py
Python Script to Upload Memcache Metrics to CloudWatch
View upload_memcache_stats.py
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'),
View gist:cf60895333800707d7db79043fe94078
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 Sep 20, 2017 — forked from mshkrebtan/webex-ubuntu.md
Run Cisco Webex on 64-bit Ubuntu 16.04
View webex-ubuntu.md

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,
View rm-corrupt.sh
#!/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 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
garrettwilkin / views.py
Created Feb 12, 2015
views.py in django app that runs planout
View views.py
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 Sep 4, 2014
Data driven storytelling.
View data_stories.md

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
View hackingjournalism-apis.md

#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
You can’t perform that action at this time.