Skip to content

Instantly share code, notes, and snippets.

View magnusviri's full-sized avatar

James Reynolds magnusviri

View GitHub Profile
magnusviri /
Last active March 14, 2022 03:56
What are the most popular letters, what words have the most popular letters, and a set of words that can reveal the most popular letters.
#!/usr/bin/env python3
# See
# use with
from string import ascii_lowercase
from pprint import pprint
# Set all chars to 0
magnusviri /
Last active March 23, 2022 08:23 — forked from brndnblck/
Create or update macOS Mojave Recovery Partition Without Reinstalling
# Set the macOS installer path as a variable
MACOS_INSTALLER="/Applications/$(ls /Applications | grep "Install macOS")"
# Find the latest pkg at
magnusviri /
Last active November 21, 2021 17:16 — forked from speeddragon/
Kali Linux fix for "modprobe: FATAL: Module wl not found"
echo "As of October 18, 2018 this script works with this image:"
echo ""
echo "If you are using a different version you will have to change the variables kbuild, headers1, headers2, and server"
echo "Look in /lib/modules to find out what version of Kali you need to search for."
proc=$(uname -r|sed 's,[^-]*-[^-]*-,,')