Skip to content

Instantly share code, notes, and snippets.

@fo0nikens
fo0nikens / freshOnions.md
Created September 28, 2015 17:35
tor-control protocol for rapidly switching circuits / new exit node to your tor instance
@fo0nikens
fo0nikens / otrdm.md
Last active September 3, 2015 07:00 — forked from colinmahns/otrdm.md
HOWTO: Twitter DM with OTR

Twitter DM + OTR: A quick and dirty tutorial

With the recent removal of the 140-character limit in Direct Messages by Twitter, DM's have now become a much more useful platform for communicating between individuals and groups. Sadly, DM's are still sent in plaintext between users and Twitter has no plans currently on encrypting these messages, at least as of August 2015. Since these are stored in plaintext at rest, an adversary can see the content of the message you are sending, which the two parties might not wish to happen. Fortunately as a few applications with basic Twitter support which also have excellent support for OTR, all hope isn't lo

@fo0nikens
fo0nikens / gpgmutt.md
Last active August 29, 2015 14:25 — forked from bnagy/gpgmutt.md

GPG / Mutt / Gmail

About

This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.

Here is an incomplete list of things that are different from other approaches:

  • I don't use keyservers. Ever.
  • Yes, I use Gmail instead of some bespoke hipster freedom service
#!/usr/bin/env python3
import sys
import socket
import argparse
class Connector:
def __init__(self,hostname,password,port=4094):
self.hostname = hostname
self.password = password
#!/usr/bin/env python3
#
# A Python 3.x script designed for command-line operation:
# Given a location string, passes it to Google's Geocoding API and prints to stdout: lat, lng,
# level of accuracy, and formatted address, as a single delimited line and, optionally, the raw JSON
# This is one in a series of mundane programming examples:
# - srccon.org/sessions/#proposal-106215
# - https://docs.google.com/spreadsheets/d/1oaUNiWOyuTmxr0hVgx32vr5XN8E4MEb_2FD56BE6mZA/edit?usp=drive_web
#
# Documentation of Google Maps API
#!/usr/bin/env python3
import sys
import socket
import argparse
class Connector:
def __init__(self,hostname,password,port=4094):
self.hostname = hostname
self.password = password
@fo0nikens
fo0nikens / keybase.md
Created April 21, 2015 10:57
Keybase.md

Keybase proof

I hereby claim:

  • I am fo0nikens on github.
  • I am fo0 (https://keybase.io/fo0) on keybase.
  • I have a public key whose fingerprint is 501F 5A9C DDF1 78A1 A480 98BA AEAE 979F 834B 0FE4

To claim this, I am signing this object:

#!/usr/bin/env perl
use strict;
use warnings qw(all);
use Carp qw(croak);
use Fcntl qw(:DEFAULT);
unless (@ARGV) {
print "$0 - converts rtl_sdr output to GNU Radio cfile (little-endian)\n";
print "Usage: $0 dump1.dat dump2.dat > combined.cfile\n";