This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, wave, struct | |
import lief | |
if len(sys.argv) < 2: | |
print("Usage: <file to find sounds in>") | |
sys.exit() | |
elf = lief.parse(sys.argv[1]) | |
for sym in elf.dynamic_symbols: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zipfile | |
from sys import argv, exit | |
# Open | |
if len(argv) < 3: | |
print("Usage: zipdiff.py old.zip new.zip <dont smoosh folders") | |
exit(0) | |
za, zb = zipfile.ZipFile(argv[1]), zipfile.ZipFile(argv[2]) | |
sa, sb = set(za.infolist()), set(zb.infolist()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[C ==> S] 0x82 LoginPacket (username: string, protocol_one: i32, protocol_two: i32) | |
[C <== S] 0x83 LoginStatusPacket (status: i32) | |
[C ==> S] 0x84 ReadyPacket (status: u8) | |
[C <== S] 0x85 MessagePacket (message: string) | |
[C <== S] 0x86 SetTimePacket (time: u64) | |
[C <== S] 0x87 StartGamePacket (seed: u64, unknown: i32, gamemode: i32, entity id: i32, x: f32, y: f32, z: f32) | |
[C <== S] 0x88 AddMobPacket (entity id: i32, type: i32, x: f32, y: f32, z: f32, pitch: i8, yaw: i8, metadata: Metadata) | |
[C <== S] 0x89 AddPlayerPacket (guid: u64, name: string, entity id: i32, x: f32, y: f32, z: f32, pitch: i8, yaw: i8, held item id: i16, held item meta: i16, metadata: Metadata) | |
[C <== S] 0x8A RemovePlayerPacket (entity id: i32, guid: GUID) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
canopener (){ | |
if [[ $1 == "" ]]; then | |
echo "You need to specify a file." | |
else | |
grep "`xdg-mime query filetype $1`" -R /usr/share/applications/* --files-with-matches --color=never | grep -v mimeinfo.cache | xargs grep "^Exec=" --no-filename | awk -F'=' '{print $2}' | awk -F' ' '{print $1}' | sort | uniq | |
fi | |
} |