Skip to content

Instantly share code, notes, and snippets.

View docprofsky's full-sized avatar

✨ Schuyler St. Leger docprofsky

View GitHub Profile
@mxamber
mxamber / twitter_old_buttons.user.css
Last active May 6, 2022 11:58
Custom CSS to revert Twitter's follow/unfollow buttons to the old styles
/*
* Twitter Follow/Unfollow buttons
* revert to old style via custom CSS
* Author: mxamber
* Website: https://github.com/mxamber
* Version: 1.2
* Date: 2021-08-11
* Updated: 2021-08-12
*/
@soatok
soatok / README.md
Last active December 11, 2021 02:08
Proctorio .7z deobfuscation script
@mouse-reeve
mouse-reeve / fizzbuzz.py
Last active April 22, 2022 06:33
Fizzbuzz via answers.com
''' we're solving fizzbuzz with a little help from the web '''
from html.parser import HTMLParser
from urllib.request import Request, urlopen
import re
import time
base_url = 'https://www.answers.com/Q/'
tag_name = 'div'
class_name = 'answer-body'
delimiter = '_'
@XVilka
XVilka / FontShapingSupport.md
Created October 26, 2019 03:09
Font shaping e.g. ligatures support in terminal emulators and applications

This gist will show the support of font shaping support in the terminal emulators and console programs.

Supporting font shaping

@llzes
llzes / base64ToByte.js
Last active March 10, 2024 12:07
Byte to Base64 implementation in JavaScript
const base64ToByte = (base64) => {
const key = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
let newBytes = []
let currentChar = 0
let currentByte = 0
for (let i=0; i<base64.length; i++) { // Go over four 6-bit base64 chars to decode into three 8-bit bytes
currentChar = key.indexOf(base64[i])
if (i%4===0) { // First base64 char
currentByte = (currentChar << 2) // Get the 6-bits from first base64 char
}
@lukassup
lukassup / zipapp.md
Last active September 12, 2023 02:17
Python zipapp

Python zipapp web apps

What's a zipapp?

This concept is very much like .jar or .war archives in Java.

NOTE: The built .pyz zipapp can run on both Python 2 & 3 but you can only build .pyz zipapps with Python 3.5 or later.

Initial setup

/*
Scrounged LED sign found at ER 2 by HeatSync Labs.
The sign uses differential inverting amplifiers LM2901 to drive Schmitt−Trigger
inverters (74HCT14) and utimately drive two parallel rows of ST2221A LED drivers.
Top and bottom display the SAME data -- so you must blank them alternately using the top and bottom enable lines!
Don't do this too slowly or your user will get a flicker headache
*/
@JamesHagerman
JamesHagerman / DisassembleARMBinaryInR2.md
Last active March 30, 2023 06:43
Some quick notes on disassembling 16bit ARM (STM32F4) code using radare2

Disassembling 1bitsy examples using radare2

Note that because radare2 uses Capstone to disassemble ARM code, there are issues with the disassembly. arm-none-eabi-objdump -d compiledbinary.elf actually does a better job in some cases. For example, msr isn't decompiled correctly...

First, you have to either strip the default ELF binaries the default Makefiles build when you run make OR you need to just compile .bin files using something like:

make binaryname.bin
@oskay
oskay / NOPE.txt
Last active February 27, 2017 15:55
NNNNNNNN NNNNNNNN OOOOOOOOO PPPPPPPPPPPPPPPPP EEEEEEEEEEEEEEEEEEEEEE
N:::::::N N::::::N OO:::::::::OO P::::::::::::::::P E::::::::::::::::::::E
N::::::::N N::::::N OO:::::::::::::OO P::::::PPPPPP:::::P E::::::::::::::::::::E
N:::::::::N N::::::NO:::::::OOO:::::::OPP:::::P P:::::PEE::::::EEEEEEEEE::::E
N::::::::::N N::::::NO::::::O O::::::O P::::P P:::::P E:::::E EEEEEE
N:::::::::::N N::::::NO:::::O O:::::O P::::P P:::::P E:::::E
N:::::::N::::N N::::::NO:::::O O:::::O P::::PPPPPP:::::P E::::::EEEEEEEEEE
N::::::N N::::N N::::::NO:::::O O:::::O P:::::::::::::PP E:::::::::::::::E
@jwalanta
jwalanta / OpenWrt detect new device and send text message.md
Last active July 2, 2024 18:37
Detect new network devices connecting to OpenWrt and send text message