Skip to content

Instantly share code, notes, and snippets.

View geoffeg's full-sized avatar
🏠
Working from home

Geoffrey Gallaway geoffeg

🏠
Working from home
View GitHub Profile
@0xcaff
0xcaff / 0_README.md
Last active May 13, 2023 23:35
OpenVPN, rTorrent and Flood Docker Compose Configuration

The Setup

This is a docker-compose file for a simple, secure torrent setup. It includes [rTorrent] (a torrent client), [flood] (a web interface for rTorrent), [OpenVPN] (to tunnel traffic through your ISP) and a simple iptables firewall to allow rTorrent to only access the internet through a VPN.

To run everything, put your open vpn configuration file in ./vpn.ovpn and the other configuration files from this gist in a directory then go to that

@jobwat
jobwat / Dockerfile
Created March 9, 2017 04:34
Docker node crontab
FROM node:6
RUN apt-get update && apt-get -y install cron
RUN mkdir /app
ADD test.js /app
# Add crontab file in the cron directory
ADD crontab /etc/cron.d/hello-cron
@dlenski
dlenski / ssh-cipher-benchmark.sh
Last active December 6, 2022 09:14
Check speed of ssh cipher(s) on your system
#!/bin/bash
# Based on: http://www.systutorials.com/5450/improving-sshscp-performance-by-choosing-ciphers/#comment-28725
#
# You should set up PublicKey authentication so that you don't have to type your
# password for every cipher tested.
set -o pipefail
ciphers="$@"
@joyrexus
joyrexus / README.md
Last active August 21, 2023 16:59
Node.js streams demystified

A quick overview of the node.js streams interface with basic examples.

This is based on @brycebaril's presentation, Node.js Streams2 Demystified

Overview

Streams are a first-class construct in Node.js for handling data.

Think of them as as lazy evaluation applied to data.

@alexpw
alexpw / gist:6125634
Last active December 20, 2015 11:48
parse metar xml
(ns metar.core
(:require [clojure.zip :as z]
[clojure.xml :as x]
[cheshire.core :as j]))
(defn metar-zipper
[url]
(-> url x/parse z/xml-zip z/children))
(defn tag-kv
@0xabad1dea
0xabad1dea / rtlsdr-osx.txt
Created June 13, 2013 21:55
Build RTL-SDR on OSX with no tears
rtl-sdr build notes for OSX
using macports http://www.macports.org/
see http://sdr.osmocom.org/trac/wiki/rtl-sdr
sudo port install cmake
sudo port install libusb
sudo port install pkgconfig
sudo port install sox # for easy audio
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
@philcryer
philcryer / king.sh
Created September 28, 2012 18:57
king of the mountain - because sharing is for faceb00k
#!/bin/bash
# king of the mountain - because sharing is for faceb00k
# * networking fun for geeks in conferences and cafes
# * find other clients on the local network
# * see if they have any exposed files via http
# * use nmap to attempt to knock them offline
# - OSX or Linux supported (nmap, wget required)
# - this script derived from manual steps I used to take
@blacktaxi
blacktaxi / ruby-fmt.clj
Created January 25, 2012 14:42
Ruby-like string interpolation in Clojure
; Ruby has an awesome feature -- string interpolation. Read about it on the internet.
; On the other hand, Clojure only has cumbersome Java string formatting, which can not be
; used without pain after you've tried Ruby.
; So here's this simple macro that basically allows you to do most things you could do
; with Ruby string interpolation in Clojure.
(ns eis.stuff
(:require [clojure.string]))
@sbecker
sbecker / vagrant.txt
Created June 27, 2011 21:17 — forked from easel/vagrant.org
Installing CentOS 5.5 & Puppet on Vagrant
# -*- coding: utf-8 -*-
* Installing CentOS 5.5 & Puppet
** Notes
** Download install iso: http://mirrors.kernel.org/centos/5.5/isos/x86_64/CentOS-5.5-x86_64-bin-DVD-1of2.iso
** Create a new VirtualBox machine
- Name: vagrant-centos
- Operating System: Linux