Skip to content

Instantly share code, notes, and snippets.

@bishboria
bishboria / springer-free-maths-books.md
Last active March 22, 2024 11:19
Springer made a bunch of books available for free, these were the direct links
@TApplencourt
TApplencourt / DoItLive and asciinema
Created January 20, 2015 14:46
DoItLive + asciinema
asciinema rec -c "doitlive play session.sh -q"
@codeinthehole
codeinthehole / docker-osx-shared-folders.rst
Last active November 11, 2023 01:22
How to share folders with docker containers on OSX

How to share a folder with a docker container on OSX

Mounting shared folders between OSX and the docker container is tricky due to the intermediate boot2docker VM. You can't use the usual docker -v option as the docker server knows nothing about the OSX filesystem - it can only mount folders from the boot2docker filesystem. Fortunately, you can work around this using SSHFS.

@bidulock
bidulock / tc-slow.sh
Last active January 8, 2024 16:41
Slow down traffic on localhost through a single port
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "You must run this as root."
exit 1
fi
I=lo
PORT=${PORT-23000}
DELAY=${DELAY-25ms}
@jstrosch
jstrosch / gist:3190568
Created July 27, 2012 21:31
iptables - delete all rules/chains
#view current chains
$ iptables -L
#remove/flush all rules & delete chains
$ iptables -F
$ iptables -X
$ iptables -t nat -F
$ iptables -t nat -X
$ iptables -t mangle -F
$ iptables -t mangle -X