Skip to content

Instantly share code, notes, and snippets.

@therokh
therokh / download_minecraft_all.sh
Created March 11, 2018 10:19
Script to download all Minecraft client/server JAR versions
#!/bin/bash
## This script will download all URLs in the file provided as first arg
## ./download_minecraft_all.sh versions.txt
##
## Each URL on a newline, points to the .jar file on launcher.mojang.com
## ie. https://launcher.mojang.com/mc/game/1.12.2/client/.../client.jar
##
## Grab the URLs from https://mcversions.net/ and do some find/replace,
## or dump the source into a URL extractor
@bom-d-van
bom-d-van / ddos.txt
Created February 12, 2017 11:46
Detecting and Mitigating DDOS Attacks
Detecting and Mitigating DDOS Attacks
#List all Finish (FIN) packets
machine1 : sudo /usr/sbin/tcpdump -Nnn -i any -s0 'tcp[13] & 1 != 0'
#List all SYN and SYN-ACK packets
machine1 : sudo /usr/sbin/tcpdump -Nnn -i any -s0 'tcp[13] & 2 != 0'
@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active May 11, 2024 15:05
Ultimate guide to low-latency osu on linux
@jboner
jboner / latency.txt
Last active May 12, 2024 19:52
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
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 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD