Skip to content

Instantly share code, notes, and snippets.

View ihoro's full-sized avatar
🌊
surfing the endless ocean...

Igor Ostapenko ihoro

🌊
surfing the endless ocean...
View GitHub Profile
@dch
dch / diff.patch
Created November 26, 2024 09:03
arcanist
--- ArcanistPatchWorkflow.php.orig 2022-05-17 23:20:14.000000000 +0000
+++ ArcanistPatchWorkflow.php 2024-11-26 09:01:01.137494000 +0000
@@ -436,10 +436,7 @@
echo phutil_console_format(
"<bg:blue>** %s **</bg> %s\n",
pht('INFO'),
- pht('Base commit is not in local repository; trying to fetch.'));
- $repository_api->execManualLocal('fetch --quiet --all');
- $has_base_revision = $repository_api->hasLocalCommit(
- $bundle->getBaseRevision());
@max-i-mil
max-i-mil / linux-vms-on-apple-m1-with-networking.md
Last active February 17, 2026 09:45
Short summary to run Linux VMs on an Apple M1 host using QEMU, libvirt and HVF with a working network setup

Linux Virtual Machines with Private Network on an Apple M1 Device

Background

The aim was to be able to:

  1. Run multiple Linux VMs on an Apple M1/ARM device
  2. Use Apple's HVF for native performance speeds
  3. Configure VMs to allow network access to each other
  4. Configure VMs to allow access to the internet
  5. Not rely on custom modifications of software
@ctsrc
ctsrc / README.md
Last active March 10, 2026 11:23 — forked from niw/README.en.md
Guide: Run FreeBSD 13.1-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)
@staltz
staltz / introrx.md
Last active March 10, 2026 03:48
The introduction to Reactive Programming you've been missing
@jboner
jboner / latency.txt
Last active March 18, 2026 02:59
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