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 /
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
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 / gist:8228461
Created Jan 2, 2014
Trying to access the result object to write my response to the client.
View gist:8228461
I have a server that uses this director setup:
function posts() {
var type = 'posts';
function sections() {
var type = 'sections';
garrettwilkin / example
Created Dec 20, 2013
Exceptions via assert.equal
View example
$ node
> var assert = require('assert');
> var i = 10;
> var j = 11;
> assert.equal(i,j)
AssertionError: 10 == 11
at repl:1:9
View GO AWAY git file!
» ~/Code/Parsely/web (web+apidocs) [master]
$ git checkout -- p2/index.php
» ~/Code/Parsely/web (web+apidocs) [master]
$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
# (use "git push" to publish your local commits)
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
View gist:7320253
data: [
tags: null,
url: "",
title: "FACT Writers pick their top 10 albums of all time",
section: "Features",
author: "joseph",
thumb_url_medium: "",
image_url: "",
View gist:7319839
<meta name="parsely-page" content="{&quot;title&quot;: &quot;Morrissey hospitalised with concussion after apparent car accident&quot;, &quot;link&quot;: &quot;;, &quot;section&quot;: &quot;News&quot;, &quot;image_url&quot;: &quot;;,&quot;type&quot;: &quot;post&quot;,&quot;post_id&quot;: &quot;189193&quot;, &quot;author&quot;: &quot;joseph&quot;, &quot;pub_date&quot;: &quot;2013-11-04T08:43:34Z&quot;}">
You can’t perform that action at this time.