Skip to content

Instantly share code, notes, and snippets.

View textarcana's full-sized avatar

Noah Sussman textarcana

View GitHub Profile
@textarcana
textarcana / tcpdump.sh
Created May 12, 2018 18:00
Using TCPDump to snoop network traffic.
# replace 3000 with whatever port you want to listen on
#
# Raefer to the TCPDump documentation for the rest because
# I truly don't remember what all these options do, I just
# know that this particular configuration works!
sudo tcpdump -qXX -s 0 -i any port 3000
echo '
E {
color="red";
fontsize=11;
fontname="Arial narrow"
}
E[edgetype == "edge2"] {
color="green";
fontsize=11;
fontname="Arial narrow";
@textarcana
textarcana / quick-commit-command-for-git.sh
Last active August 22, 2017 21:18
A quick way to commit all modifed files that are tracked in git. I made this because I like to do many incremental commits across several files (because usually I am updating global interfaces and writing documentation as I go)
# put this in your ~/.profile
make_default_commit () {
git commit -am "$*"
}
alias h="make_default_commit "
# then you can use it like this
#
@textarcana
textarcana / software_testing_techniques
Last active August 2, 2017 14:27
boris beizer quotes fortune file
More than the act of testing, the act of designing tests is one of the
best bug preventers known.
%
If you can't test it, don't build it. If you don't test it, rip it
out. [p. 434]
%
If humans could do syntax checking, we woulnd't have so many syntax errors.
[p. 435]
%
@textarcana
textarcana / rescuetime_time_today
Last active August 1, 2017 13:54
Script that tells you how long you spent online (according to RescueTime) since this morning.
#!/usr/bin/env bash
# Tells you how long you spent online (according to RescueTime) since
# this morning.
#
# Requires GNU date! Will not work with Mac OS / BSD date command!!!
# Rescuetime API Token
RT_KEY="YOUR API TOKEN GOES HERE"
@textarcana
textarcana / README.md
Last active June 20, 2017 13:32
Suboptimization And Agile Testing. Somewhere between a tweetstorm and a white paper.

Suboptimization And Agile Testing

@textarcana
textarcana / slack_loading_quotes.txt
Last active May 2, 2018 05:45
Slack loading quotes. There is a way to insert them programmatically but there are only 150 of them so why bother to script it.
When the going get weird, the weird turn pro. — Hunter S. Thompson
Moving Heaven and Earth without effort is simply a matter of concentration. — The Way of the Samurai
The problem with intelligent communication is the illusion that it has taken place. — George Bernard Shaw
Why is it that every time I try to build a thing of beauty I find a mob with pitchforks and torches outside my castle??? — Victor Sussman
The Three Virtues of Programming are laziness, impatience and hubris. — Larry Wall
@textarcana
textarcana / lol.md
Last active January 13, 2020 15:20
The most comprehensive list of programmer jokes on the internet. Period. (Comprehensiveness of this list is in no way guaranteed. Statements of comprehensiveness are not meant to imply comprehensiveness. Use jokes at your own risk.) LICENSE: Creative Commons Sharealike

Comprehensive list of programmer jokes

How many programmers does it take to change a lightbulb?
Only one. But then the whole house falls down.
How many programmers does it take to change a lightbulb?
None. That is a hardware problem.
How many programmers does it take to change a lightbulb?
This is a known issue. When we installed the lightbulb we knew it had a finite TTL.
How many programmers does it take to change a lightbulb?
@textarcana
textarcana / jq_recipes.sh
Created March 25, 2017 02:58
JQ Cookbook Examples by Noah Sussman
#!/usr/bin/env bash
set -x
# jq Recipes
# _ _____ _
# (_) | __ \ (_)
# _ __ _ | |__) | ___ ___ _ _ __ ___ ___
# | | / _` | | _ / / _ \ / __|| || '_ \ / _ \/ __|
# | || (_| | | | \ \| __/| (__ | || |_) || __/\__ \
@textarcana
textarcana / devops_borat.dat
Created March 7, 2017 09:10
The wisdom of Devops Borat (RIP, may Taichi Ohno himself carry him into Valhalla!) condensed in fortune cookie format without any @ messages included. Just the goofiest random shit :)
I remember very clear I cry when I finish volume 3 of Knuth.
%
I am work on CSS SQL.
%
First sign of depression in devops is denial: you start of ignore Nagios alert.
%
In devops language is not success unless is another language++.
%
In devops you are addict to graph if first thought after orgasm is send duration and intensity to Graphite.
%