Skip to content

Instantly share code, notes, and snippets.

View festum's full-sized avatar
๐Ÿˆต
5!?

Festum Qin festum

๐Ÿˆต
5!?
View GitHub Profile
@jboner
jboner / latency.txt
Last active April 25, 2025 07:06
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
@acamino
acamino / README.md
Last active April 13, 2025 14:19
Shortcuts to Improve Your Bash & Zsh Productivity

Shortcut โ€” Action

  • CTRL + A โ€” Move to the beginning of the line
  • CTRL + E โ€” Move to the end of the line
  • CTRL + [left arrow] โ€” Move one word backward (on some systems this is ALT + B)
  • CTRL + [right arrow] โ€” Move one word forward (on some systems this is ALT + F)
  • CTRL + U โ€” (bash) Clear the characters on the line before the current cursor position
  • CTRL + U โ€”(zsh) If you're using the zsh, this will clear the entire line
  • CTRL + K โ€” Clear the characters on the line after the current cursor position
  • ESC + [backspace] โ€” Delete the word in front of the cursor
@0xjac
0xjac / private_fork.md
Last active April 25, 2025 10:03
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active April 24, 2025 05:26 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@bmaupin
bmaupin / free-database-hosting.md
Last active April 24, 2025 13:39
Free database hosting
@FreddieOliveira
FreddieOliveira / docker.md
Last active April 24, 2025 10:02
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android ๐Ÿ‹๐Ÿ“ฑ

Edit ๐ŸŽ‰

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary