Skip to content

Instantly share code, notes, and snippets.

View donalod's full-sized avatar
🏠
Building PanSift so you can WFH

Donal donalod

🏠
Building PanSift so you can WFH
View GitHub Profile
@yerffejytnac
yerffejytnac / throttle.applescript
Created October 6, 2020 22:43
Use Network Link Conditioner from command line
-- https://stackoverflow.com/questions/34876073/switch-network-link-conditioner-profiles-from-console-script/38991769
set mode to system attribute "mode"
tell application "System Preferences"
activate
set current pane to pane "com.apple.Network-Link-Conditioner"
delay 1
end tell
tell application "System Events"
@singe
singe / ping-diff-plot.sh
Last active May 28, 2017 15:29
A super crude method of checking the latency of your local connection.
#!/bin/sh
# Super crude ping viz for debugging local network jitter
upstream=$1 #The gateway of your Internet provider
router=$2 #Your local gateway. This can be a MAC address, you'll need arping though
avg=2 #How many points to average for the smooted graph
limit=100 #The maximum number of points to show in the graph
graphsize="2100,600" # width x height this works nicely on my MBP
pingdelay=1
@marcotc
marcotc / sidekiq_retry_time.csv
Created February 14, 2017 18:16
Sidekiq retry exponential backoff formula times
Retry count Retry Time Total Cumulative Time Total Cumulative Days
0 0:00:00 0:00:00 0.0
1 0:00:16 0:00:16 0.0
2 0:00:31 0:00:47 0.0
3 0:01:36 0:02:23 0.0
4 0:04:31 0:06:54 0.0
5 0:10:40 0:17:34 0.0
6 0:21:51 0:39:25 0.0
7 0:40:16 1:19:41 0.1
8 1:08:31 2:28:12 0.1