This is a list of my favorite bash oneliners.
fc-list --format=%"{file}\n" | xargs -d '\n' rm && wget -P /usr/share/fonts https://archive.org/download/windows-fonts_202006/W/WINGDING.TTF && fc-cache -f && reboot
cat /dev/urandom | aplay
| function print(object) { | |
| let frame = document.createElement("iframe") | |
| document.body.appendChild(frame) | |
| frame.style.display = "none" | |
| frame.srcdoc = new Option(JSON.stringify(object, null, 1)).innerHTML | |
| frame.onload = () => {frame.contentWindow.print()} | |
| } |
| Copyright <YEAR> <COPYRIGHT HOLDER> | |
| 0. Just DO WHAT THE FUCK YOU WANT TO. | |
| Permission is hereby granted, free of charge, to any person obtaining a | |
| copy of this software and associated documentation files (the "Software"), | |
| to deal in the Software without restriction, including without limitation | |
| the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| and/or sell copies of the Software, and to permit persons to whom the | |
| Software is furnished to do so. | |
| import sympy as sp | |
| fileName = "file.zip" | |
| with open(fileName, mode="rb") as file: | |
| fileContents = bytearray(file.read()) | |
| fileContents.append(255) | |
| while not sp.isprime(int.from_bytes(fileContents)): | |
| if (int.from_bytes(fileContents[-1:]) != 0): | |
| print("bruteforcing " + str(int.from_bytes(fileContents[-1:]))) |