Skip to content

Instantly share code, notes, and snippets.

@neckcen
neckcen / _readme.txt
Last active January 18, 2020 12:51 — forked from Citillara/kb-uninstall.bat
Remove telemetry updates in Windows 7/8.1. Disables automatic upgrade to Windows 10
1) Download as ZIP
2) Run telemetry_win10_removal.bat as administrator
3) Reboot
4) Check for and install updates
@yurifedoseev
yurifedoseev / sites.cleanup
Last active November 20, 2018 09:20
Delete all sites from IIS express configuration
appcmd.exe list site /xml | appcmd delete site /in
@aras-p
aras-p / preprocessor_fun.h
Last active November 15, 2024 09:22
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@jboner
jboner / latency.txt
Last active November 15, 2024 14:00
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