Skip to content

Instantly share code, notes, and snippets.

Toby DiPasquale codeslinger

Block or report user

Report or block codeslinger

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
codeslinger / gist:1513
Created Jul 23, 2008
YAML layout of Twitter API
View gist:1513
scheme: http
auth: httpbasic
version: 2008-07-07T00:00:00-0800
type: id
required: False
codeslinger / gist:1689
Created Jul 23, 2008
Utility to give system info about a Mac
View gist:1689
#!/usr/bin/env python
# Little command-line utility for telling you stuff about your Mac without
# having to click around all over the place. Originally found here and
# then cleaned up significantly:
import sys
import commands
import plistlib
View test.go
package main
import (
#!/usr/bin/env bash
# HubCrypt
# ========
# Decrypt a file encrypted using hubencrypt (ok, it's just openssl + rsautl +
# your SSH keys). It needs the private key that matches your last public key
# listed at<user>.keys
View showif.c
/* showif.c : PUBLIC DOMAIN - Jon Mayo - August 22, 2006
* - You may remove any comments you wish, modify this code any way you wish,
* and distribute any way you wish.*/
/* finds all network interfaces and shows a little information about them.
* some operating systems list interfaces multiple times because of different
* flags, modes, etc. if you want to use this code you should be aware that
* duplicate interfaces is a possibility */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
View gist:b5e7520834ae002b828d
* GOZORK Text Adventure Game
* by apoc <>
* Inspired by the infamous beginning of Zork I.
* Reading the source will obviously spoil the game.
* The goal is to somehow kill the troll.
* Oh yeah and: This is my first GO program! Which would be
* my perfect excuse for the bad code quality1!
* Here is a solution/transcript:
codeslinger / compile.txt
Last active Aug 29, 2015
Multiple consumers each consuming all of the queue items
View compile.txt
Compile with: gcc -g -std=c99 -Wall -Werror test-vrt-mc.c -o test-vrt-mc -lvrt -lcork -lpthread
codeslinger / gist:3494
Created Jul 31, 2008
Robust script to retrieve SSH public key into authorized_keys for EC2 instances
View gist:3494
# vim:set ts=4 sw=4 et ai:
# Retrieve the SSH public key and install it for subsequent login attempts.
CURLOPTS="--retry 3 --retry-delay 2 --silent --fail -o $TMP_KEY"
View gist:3792
# vim:set ts=4 sw=4 et ai:
from __future__ import with_statement
:Author: Toby DiPasquale <>
:Copyright: Copyright (c) 2008 Toby DiPasquale. Free for use for any purpose
by anyone forever.
You can’t perform that action at this time.