Skip to content

Instantly share code, notes, and snippets.

@tedd4u
tedd4u / gist:b14b325dab31f6d4365aab7778fed2be
Created December 12, 2020 17:31
brew install openconnect (M1 MacBook Air)
Last login: Fri Dec 11 22:45:14 on ttys002
➜ ~ brew install openconnect
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
attr duf kubevela vc
docui inframap terracognita
==> Updated Formulae
Updated 813 formulae.
@tedd4u
tedd4u / lcd @ 1MHz
Created May 1, 2020 22:57
Implement busy wait loop for LCD status (busy flag)
PORTB = $6000
PORTA = $6001
DDRB = $6002
DDRA = $6003
RESETVEC = $fffc
E = %10000000
RW = %01000000
RS = %00100000
@tedd4u
tedd4u / test.sh
Created May 14, 2018 19:24
Embarrassingly bad ApacheBench wrapper that tests from 1-16 concurrency and scrapes the most important data
echo "warming $server ..."
ab -q -k -n 16000 -c 8 "$1" &> /dev/null
sleep 2
echo "starting test"
echo "threads, requests, test duration, req/sec, avg svc time, p50 lat, p90 lat, p99 lat, max lat"
for i in `seq 1 16`
do
echo -n "$i "
let j=i\*3000
@tedd4u
tedd4u / gear_vr_warnings_2015-8.txt
Last active August 29, 2015 01:07
"Gear VR Product Use Warnings" - August 2015
You must read the warning below carefully before purchasing the Gear VR to reduce the
risk of personal injury, discomfort or property damage while using the device
1. We recommend consulting a physician before using the Gear VR if you are pregnant,
elderly, have pre-existing binocular vision abnormalities or psychiatric disorders,
or suffer from a heart condition or other serious medical condition.
2. The Gear VR should not be used by children under the age of 13. Adults should
monitor children(age 13 and older) who are using or have used the Gear VR for any of
the symptoms described below,and should limit the time children spend using the Gear
@tedd4u
tedd4u / gist:4464703
Created January 6, 2013 01:39
A few examples of using the Flickr API flickr.photos.search to find photos taken at a certain date/time and location.
Docs here:
http://www.flickr.com/services/api/flickr.photos.search.htm
Interactive API Explorer for that method here:
http://www.flickr.com/services/api/explore/flickr.photos.search
Find a place. Like this: