Skip to content

Instantly share code, notes, and snippets.

View citrusui's full-sized avatar
πŸ“š
Resist fascism.

Avery citrusui

πŸ“š
Resist fascism.
View GitHub Profile
/*
Traverse through all the Text Nodes in a page and force them to display hidden characters
Sources:
Hacker news: https://news.ycombinator.com/item?id=16749422
user: tim333's js fiddle https://jsfiddle.net/tim333/np874wae/13/
medium post: https://medium.com/@umpox/be-careful-what-you-copy-invisibly-inserting-usernames-into-text-with-zero-width-characters-18b4e6f17b66
TODO:
@pvieito
pvieito / gist:ee6d2c8934a8f84b9aeb467585277b8a
Last active March 13, 2025 07:53
Consumer keys of official Twitter clients

Twitter API Keys

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

@dunhamsteve
dunhamsteve / framework2proto.py
Last active March 10, 2024 05:49
python3 script to infer a protobuf definition from a framework or executable.
#!/usr/local/bin/python3
import re, subprocess, sys
if len(sys.argv) < 2:
print('''
This utility generates a protobuf file from an Objective C framework. It was developed against
CloudKit/CloudKitDaemon, but may work with other libraries that are built the same way.
''')
print("Usage:\n\t",sys.argv[0],"MachOBinary\n")
@bryc
bryc / YamahaFM.md
Last active May 5, 2025 10:42
Collecting info on Yamaha FM soundchips
@wdormann
wdormann / disable_win10_foistware.reg
Created January 2, 2018 23:15
Attempt at disabling Windows 10 automatic installation of 3rd-party foistware
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy]
"Disabled"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager]
"SubscribedContent-338388Enabled"=dword:00000000
#!/usr/bin/env python3
'''convert payload to zip'''
import struct
import sys
import zipfile
import datetime
import io
import lzma
def get_chunk(payload, chunknum):
@CraftedCart
CraftedCart / strdump.txt
Created October 13, 2017 20:36
MKB2 *.rel String Dump
>>>> STRINGDUMP OF >>>>>>>>>>>>> mkb2.baseball.rel <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
#x<`
p|`"x|
2x|`
p|`"x|
5U<`
#x8`
#x8`
S58`
_18`
@Proteas
Proteas / xnu-4570.1.46-arm64-steps.txt
Created October 9, 2017 02:46
steps to build arm64 version of xnu-4570.1.46
Following are my steps to build the ARM64 version of xnu-4570.1.46, hope this is helpfull for saving time.
1. Use Xcode 9.0
2. Preparation is same as macOS, and there is a guide: https://0xcc.re/building-xnu-kernel-macosx-sierrra-10-12-x/
3. There is an ARM64 version libfirehose: https://github.com/Proteas/install_firehose_lib
4. Copy and edit the ARM64 config(CFLAGS, LDFLAGS) from darwin-on-arm/xnu to your target project
5. Example CFLAGS: -Darm64 -DARM64 -D__arm64__ -D__ARM64__ -DLP64 -DCONFIG_EMBEDDED -mkernel -DARM64_BOARD_CONFIG_T8011=1
6. Fix compiling stage errors by directly importing the missing headers or editing the code
7. Fix linking stage errors by implementing place holder funcitons for: chudxnu_cpu_alloc, etc
8. If missing symbol __divti3 in linking stage, get the runtime from llvm.
@SamusAranX
SamusAranX / BARS format (to the best of my knowledge).txt
Last active March 24, 2025 06:10
BARS extractor (with improvised documentation)
IMPORTANT: All offsets are taken from KorokPot.bars! Actual offsets of dynamic-length data may vary in other files, but based
on the information here, it shouldn't be hard to find the real offsets. When in doubt, look at the code.
╒══════════╀══════════╀═════════╀════════════════════╀═══════════╀═════════════════════════╀════════════════════════════════════════════════════════════════════════╕
β”‚ Offset β”‚ -> Dec β”‚ Size β”‚ -> Dec β”‚ Type β”‚ Name β”‚ Information β”‚
β•žβ•β•β•β•β•β•β•β•β•β•β•ͺ══════════β•ͺ═════════β•ͺ════════════════════β•ͺ═══════════β•ͺ═════════════════════════β•ͺ════════════════════════════════════════════════════════════════════════║
β”‚ 0x0 β”‚ 0 β”‚ 0x4 β”‚ 4 β”‚ β”‚ BARS header β”‚ Indicates that this is, in fact, a BARS file β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 12, 2025 20:05
Hyperlinks in Terminal Emulators