This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
host: twitter.com | |
scheme: http | |
auth: httpbasic | |
version: 2008-07-07T00:00:00-0800 | |
parameters: | |
id: | |
type: id | |
required: False | |
id_num: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: http://gist.github.com/1617 | |
# | |
import sys | |
import commands | |
import plistlib | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net" | |
"bufio" | |
"io" | |
"os" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 github.com/<user>.keys | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
AWS_EC2_HOSTNAME_URL=http://169.254.169.254/latest/meta-data/public-hostname | |
INFLUXDB_DATABASE=test1 | |
INFLUXDB_PKG=influxdb_latest_amd64.deb | |
INFLUXDB_URL=http://s3.amazonaws.com/influxdb/$INFLUXDB_PKG | |
GRAFANA_VER=grafana-1.5.4 | |
GRAFANA_PKG=$GRAFANA_VER.tar.gz | |
GRAFANA_URL=http://grafanarel.s3.amazonaws.com/$GRAFANA_PKG | |
GRAFANA_CONFIG_GIST=https://gist.githubusercontent.com/otoolep/c58991dec54711026b77/raw/c5af837b93032d5b929fef0ea0b262648ddd4b7f/gistfile1.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* GOZORK Text Adventure Game | |
* by apoc <http://apoc.cc> | |
* | |
* 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compile with: gcc -g -std=c99 -Wall -Werror test-vrt-mc.c -o test-vrt-mc -lvrt -lcork -lpthread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# vim:set ts=4 sw=4 et ai: | |
# Retrieve the SSH public key and install it for subsequent login attempts. | |
AUTHORIZED_KEYS=/root/.ssh/authorized_keys | |
TMP_KEY=/tmp/openssh_id.pub | |
CURL=/usr/bin/curl | |
CURLOPTS="--retry 3 --retry-delay 2 --silent --fail -o $TMP_KEY" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:set ts=4 sw=4 et ai: | |
from __future__ import with_statement | |
""" | |
:Author: Toby DiPasquale <toby@cbcg.net> | |
:Copyright: Copyright (c) 2008 Toby DiPasquale. Free for use for any purpose | |
by anyone forever. | |
Introduction | |
============ |
OlderNewer