Skip to content

Instantly share code, notes, and snippets.

View SyeedHasan's full-sized avatar
🖥️
Let's get it!

Hasan SyeedHasan

🖥️
Let's get it!
View GitHub Profile
1) UnicodeDecodeError: Specify the encoding used to write the file while reading the file e.g. encoding="utf-8"
2) Pretty-print and save the JSON data using:
```
import json
with open('data.json', 'w', encoding='utf-8') as f:
json.dump(data, f, ensure_ascii=False, indent=4)
```
@SyeedHasan
SyeedHasan / npm_issues.txt
Last active September 8, 2020 07:41
NPM Configuration Issues
1. CB() never called; execute the command with sudo privileges (sudo npm ...) otherwise sudo npm cache verify
2. After package installations or removals, remove the cache for the first startup; (expo start -c)
3. To remove NPM packages; npm uninstall <package>
1. To increase inotify watches on Watchman, run:
echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_instances && watchman shutdown-server
2. If a watchman crawl fails, run:
watchman shutdown-server; WATCHMAN_CONFIG_FILE=~/watchman watchman --foreground --logfile=/dev/stdout --no-save-state --statefile=/dev/null
@SyeedHasan
SyeedHasan / equation_laser.yar
Last active April 6, 2020 16:38
Yara rule for Equation Group's Equation Laser
// Module Imports
import "pe"
import "elf" // Though this won't be used since we're investigating a WIN32 executable
//import "magic"
// Only applicable to *UNIX systems since it relies on 'file'
// Module Imports
import "pe"
<style>
body {
margin: 0;
width: 100%;
height: 100%
}
body,
td,
input,