Skip to content

Instantly share code, notes, and snippets.

@tonious
tonious / checklist_site_launch.txt
Created September 23, 2011 17:55
New Site Checklist
Meta-Information =============================================================
Site Name:
Site URL:
Client:
Client Point of Contact:
Client Services Point of Contact:
Design Phase =================================================================
@tonious
tonious / hash.c
Last active June 21, 2024 00:57
A quick hashtable implementation in c.
/* Read this comment first: https://gist.github.com/tonious/1377667#gistcomment-2277101
* 2017-12-05
*
* -- T.
*/
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
@tonious
tonious / avl.c
Created November 18, 2011 21:13
A quick AVL tree implementation in c.
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include <assert.h>
struct avl_node_s {
@tonious
tonious / namecheck.sh
Created July 24, 2012 17:21
A domain name expiry checker.
#!/bin/bash
whoisfile="/tmp/namecheck.whois.$$.txt"
listfile="/tmp/namecheck.list.$$.txt"
trap "cleanup; exit 1" SIGINT SIGTERM
# Clean up temporary files.
function cleanup {
rm -f $whoisfile $listfile
@tonious
tonious / gist:5522809
Created May 6, 2013 01:07 — forked from azend/gist:4665035
Azend's colour fader modified for a smooth progression using the power of trigonometry.
/* Diyode CodeShield Pinout Constants */
#define ENCODER_A 14
#define ENCODER_B 15
#define ENCODER_PORT PINC
#define SWITCH 13
#define BUTTON 12
#define RGB_RED 11
#define RGB_GREEN 10
#define RGB_BLUE 9
#define LED 6
### Keybase proof
I hereby claim:
* I am tonious on github.
* I am tonious (https://keybase.io/tonious) on keybase.
* I have a public key whose fingerprint is 6536 E461 601F B0B6 7A89 43D2 D928 8AF1 5F6B ACCA
To claim this, I am signing this object:
@tonious
tonious / deploy.sh
Last active November 6, 2021 21:20
Quick and dirty local deploy/rollback script.
#!/bin/bash
set -euf -o pipefail
# Usage
usage() {
cat <<EOF
usage: $0 [ -d ] [ -c RCFILE ] [ -t GITREF ] [ -h | -k | -r | -s | -x ]
@tonious
tonious / esnextbin.md
Created February 28, 2021 22:53
esnextbin sketch