Skip to content

Instantly share code, notes, and snippets.

View rwhitworth's full-sized avatar

Ryan Whitworth rwhitworth

View GitHub Profile
@rwhitworth
rwhitworth / gist:0b22a834f5150c1078acbf34fb12d71a
Created April 26, 2024 22:57
Auto-click Twitch.tv 'bonus' icon when it appears
(function(){
var e = document.querySelector('[aria-label="Claim Bonus"]');
if (e === null) {
}
else {
e.click();
var d = new Date();
var n = d.toLocaleTimeString();
console.log('clicked at', n);
}
Only listing the families and types that affect my professional environment.
Accelerated Computing, Storage Optimized, and all AMD EPYC groups left to the reader to investigate.
CPU type data sourced from https://aws.amazon.com/ec2/instance-types/
Some EC2 instance types use different CPUs for the same instance type. T3 is an example. Without checking each host I do not know how to determine which CPU type it will have. Assume all T3 instances need to be patched.
T2:
Not affected
@rwhitworth
rwhitworth / kali2020-in-hyper-v.txt
Last active January 30, 2021 02:40
Kali 2020 in Hyper-V
sudo apt-get update
# install hyper-v tools
sudo apt-get install -y hyperv-daemons
for i in fcopy kvp vss ; do sudo systemctl start hv-$i-daemon ; systemctl status hv-$i-daemon ; done
# change linux scheduler to allow hyper-v to control things, which is more efficient for host, especially on SSD storage
sudo sed -i 's/DEFAULT="quiet"/DEFAULT="quiet scheduler=noop"/g' /etc/default/grub
sudo update-grub2
@rwhitworth
rwhitworth / latency.txt
Last active August 29, 2015 14:14 — forked from jboner/latency.txt
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms