Skip to content

Instantly share code, notes, and snippets.

View ZStrikeGit's full-sized avatar

ZStrikeGit

View GitHub Profile
@itsmikita
itsmikita / macos-iso.md
Last active April 11, 2025 09:22
Extract ISO image from macOS Somona installer
@Aldaviva
Aldaviva / wmp_h.265_hevc.md
Last active April 24, 2025 00:27
Play H.265/HEVC videos in Windows Media Player (Classic) without a third-party codec pack or media player. Tested using Microsoft.HEVCVideoExtension_2.0.60091.0_x64__8wekyb3d8bbwe with WMP 12.0.20348.1311 on Windows Server 2022 21H2 and 12.0.22621.1105 on Windows 11 22H2.

Download

  1. Go to https://store.rg-adguard.net.
  2. Search for the HEVC Video Extensions from Device Manufacturer (Microsoft.HEVCVideoExtension) app by entering the following store URL.
    https://www.microsoft.com/en-us/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq
    
    • Do not use the normal HEVC Video Extensions app URL, because that can't play HEVC videos in Windows Media Player for some inscrutable reason.
  3. Download the AppxBundle file.
    • You may have to right click › Save Link As because the URL scheme is http, not https, if your browser is set to enforce HTTPS-only mode.
  • If it tries to save as a filename that's just a GUID, you may copy the correct .AppxBundle filename and save it as that instead.
@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
@pwn0rz
pwn0rz / DeviceTree.d53gap.dts
Last active November 13, 2024 18:04
iPhone 12 (iPhone13,2 d53gap) 15.5 19F77 Device Tree
/dts-v1/;
/ {
#size-cells = <0x2000000>;
device_type = "bootrom";
model = "iPhone13,2";
model-config = "syscfg/MdlC";
clock-frequency = <0x00>;
time-stamp = "Tue May 10 01:34:55 PDT 2022";
model-number = "syscfg/Mod#/0x20,zeroes/0x20";
@kouwei32
kouwei32 / macos-packet-spooling-fixes.md
Last active December 14, 2024 18:41
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 April 8, 2025 23:28
Tesla Key Card Protocol

Tesla Key Card Protocol

Researched by Robert Quattlebaum [email protected].

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
@felipecsl
felipecsl / restart coreaudio daemon
Last active March 16, 2025 22:43
Restart Mac OS X coreaudio daemon. Useful if you cannot change the audio output device to Airplay.
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
# or...
sudo killall coreaudiod
@jboner
jboner / latency.txt
Last active April 23, 2025 18:02
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