Skip to content

Instantly share code, notes, and snippets.

View ZStrikeGit's full-sized avatar

ZStrikeGit

View GitHub Profile
@BlackPropaganda
BlackPropaganda / U2F_ssh_ecdsa.txt
Created September 22, 2022 21:58
U2F ECDSA SSH Key Generation using Flipper Zero
#
# U2F SSH key generation and installation guide
#
# install U2F libraries on client machine
sudo apt-get install pamu2fcfg libpam-u2f
#
# Currently, there are only two ciphers that support
# 'special keys' or (sk) this is the notation in the
@kouwei32
kouwei32 / macos-packet-spooling-fixes.md
Last active April 14, 2024 16:42
Fixes for Low-Latency Desktop Streaming stuttering on macOS (applies to Moonlight, Parsec, Stadia, Geforce Now, etc.)

macOS Yosemite and above utilize AWDL (Apple Wireless Direct Link) to handle data transfers to other AWDL-enabled devices (Macs, Macbooks, iPhones, etc.) over the Wifi Radio, without the need for a common underlying Access Point.

However, whenever AWDL is active (Bonjour discovery and any Airdrop, Airplay, and GameKit links and transfers), it will lock the Wifi radio for small intervals. For Bonjour discovery specifically, this comes to an effective packet spooling time of about 50-100ms, once per second (active transfers will be higher).

Obviously, this will create unacceptable latency spikes for low-latency desktop streaming apps. To disable the AWDL interface, use the following command in Applications > Utilities > Terminal (this requires you to be logged in as an Administrator and enter your password):

sudo ifconfig awdl0 down

This file has been truncated, but you can view the full file.
// https://www.unknowncheats.me/forum/grand-theft-auto-v/275597-gtahax-1-50-external.html
(packed)MP_PSTAT_BOOL0 // Stat with Packed booleans index 0. Takes up to 64 booleans.
(packed)MP_PSTAT_BOOL1 // Stat with Packed booleans index 1. Takes up to 64 booleans.
(packed)MP_PSTAT_BOOL2 // Stat with Packed booleans index 2. Takes up to 64 booleans.
(packed)PSTAT_BOOL0 // Add MP0_ or MP1_ // Character Stat with Packed booleans index 0. Takes up to 64 booleans.
(packed)PSTAT_BOOL1 // Add MP0_ or MP1_ // Character Stat with Packed booleans index 1. Takes up to 64 booleans.
(packed)PSTAT_BOOL2 // Add MP0_ or MP1_ // Character Stat with Packed booleans index 2. Takes up to 64 booleans.
(packed)MP_PSTAT_INT0 // Stat with Packed integers index 0. Takes up to 8 integers.
(packed)MP_PSTAT_INT1 // Stat with Packed integers index 1. Takes up to 8 integers
@darconeous
darconeous / tesla-key-card-protocol.md
Last active June 27, 2024 15:08
Tesla Key Card Protocol

Tesla Key Card Protocol

Researched by Robert Quattlebaum darco@deepdarc.com.

Last updated 2020-02-03.

Image of Tesla Key Card Image of Tesla Model 3 Key Fob

@Zeokat
Zeokat / gist:3b5c1273a7da48e1ad94
Created August 30, 2014 01:47
/etc/apache2/apache2.conf
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
@jboner
jboner / latency.txt
Last active June 29, 2024 19:54
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