Skip to content

Instantly share code, notes, and snippets.

@gg7
gg7 / fast-forward.js
Created November 27, 2018 16:56 — forked from ChrisFulstowAGL/fast-forward.js
Video playback speed bookmarklet
javascript:var s = prompt("Playback speed?"); document.getElementsByTagName("video")[0].playbackRate = parseFloat(s);
@gg7
gg7 / hfsc-shape.sh
Created December 11, 2017 23:15 — forked from eqhmcow/hfsc-shape.sh
HFSC - linux traffic shaping's best kept secret
#!/bin/bash
# As the "bufferbloat" folks have recently re-discovered and/or more widely
# publicized, congestion avoidance algorithms (such as those found in TCP) do
# a great job of allowing network endpoints to negotiate transfer rates that
# maximize a link's bandwidth usage without unduly penalizing any particular
# stream. This allows bulk transfer streams to use the maximum available
# bandwidth without affecting the latency of non-bulk (e.g. interactive)
# streams.
@gg7
gg7 / ip_vs_sch.c
Created December 8, 2017 19:06 — forked from SaveTheRbtz/ip_vs_sch.c
Consistent source hashing scheduler for IPVS (SH-derivative, GPL)
/*
* IPVS: Source Consistent Hashing scheduling module
*
* Authors: Jonathan Lee <jonlee@dropbox.com>
*
* Changes:
*
*/
#define KMSG_COMPONENT "IPVS"
@gg7
gg7 / upgrade-docker-to-1.8.sh
Last active October 14, 2015 10:40 — forked from nsisodiya/docker.sh
Upgrade to Docker 1.8 on Ubuntu 14.04
#/bin/bash
set -o errexit
set -o nounset
set -o pipefail
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi