Skip to content

Instantly share code, notes, and snippets.

View 7bitlyrus's full-sized avatar

Ian M. 7bitlyrus

View GitHub Profile
// ==UserScript==
// @name Geordle Date Spoofer
// @namespace geordle-fake-date
// @version 1
// @match https://no-jons.xyz/geordle*
// @match http://no-jons.xyz/geordle*
// @grant unsafeWindow
// @run-at document-start
// ==/UserScript==
@7bitlyrus
7bitlyrus / unflatten-pdf.py
Last active October 11, 2022 17:11
Unflattens/unlocks form fields for a pdf file.
import pdfrw # pip install pdfrw
import sys
if not len(sys.argv) != 1:
print(f'usage: {sys.argv[0]} filename')
exit()
filename = sys.argv[1]
template_pdf = pdfrw.PdfReader(filename)
for Page in template_pdf.pages:
@7bitlyrus
7bitlyrus / alt_detection.ipynb
Created November 29, 2021 19:29
alt_detection.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7bitlyrus
7bitlyrus / voice_modem_audio.py
Last active February 11, 2024 14:40
Python script that interfaces with a voice modem to play arbitrary audio files
import serial, time, tempfile, subprocess, math, sys
# https://en.wikipedia.org/wiki/Hayes_command_set
# https://en.wikipedia.org/wiki/Voice_modem_command_set
class Modem:
Serial = None
off_hook_status = None
@7bitlyrus
7bitlyrus / upload.php
Last active October 24, 2019 14:27
Quick & Dirty PHP Custom ShareX Uploader
<?php
$users = [
"user1" => "put-the-secret-here",
"user2" => "another-secret-here",
];
if(isset($_POST['secret'])) {
if(in_array($_POST['secret'], $users)) {
// $filename = substr(hash("sha256", random_int(0, PHP_INT_MAX) . time()),0,8) . "." . pathinfo($_FILES["f"]["name"], PATHINFO_EXTENSION);
$filename = generateRandom(8) . "." . pathinfo($_FILES["f"]["name"], PATHINFO_EXTENSION);