Skip to content

Instantly share code, notes, and snippets.

View Technetium1's full-sized avatar
💭
If an immediate response is required, contact via Discord

Technetium1 Technetium1

💭
If an immediate response is required, contact via Discord
View GitHub Profile
@CFiggers
CFiggers / right-click-menu.ahk
Last active November 11, 2024 23:29
Custom Right-click Menus in AutoHotkey
; Tested and working using AutoHotkey v1.1.33.09
; Uppercaseing, Lowercasing, and Title casing highlighted text in any editable window is used as an example.
; Create the popup menu, assign to the variable "CaseMenu" (rename as desired)
Menu, CaseMenu, Add, Title Case, AltMenuHandler
Menu, CaseMenu, Add, Upper Case, AltMenuHandler
Menu, CaseMenu, Add, Lower Case, AltMenuHandler
; Create and add a sub-menu for Links
@CFiggers
CFiggers / keychords.ahk
Last active November 11, 2024 23:30
Keychords in Autohotkey
; Tested and working using AutoHotkey v1.1.33.09
awaitKeypress(){
ih := InputHook()
ih.KeyOpt("{All}", "ES") ; End and Suppress
; Exclude the modifiers
ih.KeyOpt("{LCtrl}{RCtrl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}", "-ES")
ih.Start()
ErrorLevel := ih.Wait() ; Store EndReason in ErrorLevel
result := ih.EndMods . ih.EndKey
@thomasantony
thomasantony / chatgpt_parser_md.py
Last active January 11, 2024 13:21
Convert saved HTML transcripts from ChatGPT to Markdown
# Save the transcripts using the "Save Page WE" Chrome Extension
# This script was generated by ChatGPT
import sys
from bs4 import BeautifulSoup
# Check if a file was provided as a command line argument
if len(sys.argv) < 2:
print("Please provide an HTML file as a command line argument.")
sys.exit(1)
@smitelli
smitelli / ti250tool.py
Created May 31, 2022 19:51
Klein Tools TI250 image tool
# Klein Tools TI250 image tool by Scott Smitelli. Public domain.
# Requires at least Python 3.6 (developed and tested on 3.9)
# See https://www.scottsmitelli.com/articles/klein-tools-ti250-hidden-worlds
import argparse
import numpy as np
import re
import struct
from PIL import Image, ImageDraw
@truxnell
truxnell / sidero_guide.md
Last active August 11, 2023 22:36
Quick guide to sidero with my nodes on boostraping a test cluster

Bootstrap sidero cluster

Below is some basic notes on how i setup and tested sidero on a local laptop

First steps

Don't grab your clusterctl from arch AUR, its not the right version!

  • Figure out your desired baremetal structure. From your git it looks like you have a pi-master - welcome to level 1000. Im running one just fine, but it does increase the complexity/bullshittery. Probs grab some tissues or stand up amd64 nodes first.
  • Now to setup dhcp for dual booting. If you do amd64 its not so bad as its one config, but with pi you need to config it to
@sneakers-the-rat
sneakers-the-rat / clean_pdf.sh
Last active October 18, 2025 18:03
Strip PDF Metadata
# --------------------------------------------------------------------
# Recursively find pdfs from the directory given as the first argument,
# otherwise search the current directory.
# Use exiftool and qpdf (both must be installed and locatable on $PATH)
# to strip all top-level metadata from PDFs.
#
# Note - This only removes file-level metadata, not any metadata
# in embedded images, etc.
#
# Code is provided as-is, I take no responsibility for its use,
#!/bin/sh
ADGUARD_HOST='http://192.168.1.3:8083'
ADGUARD_NAME='admin'
ADGUARD_PASS='password'
ADGUARD_COOKIE=/tmp/adguard-cookie
echo LOGIN: $(curl -s "$ADGUARD_HOST/control/login" -X POST -H 'User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Content-Type: application/json' -H "Origin: $ADGUARD_HOST" -H 'Connection: keep-alive' -H "Referer: $ADGUARD_HOST/login.html" --data-raw "{\"name\":\"$ADGUARD_NAME\",\"password\":\"$ADGUARD_PASS\"}" -c $ADGUARD_COOKIE)
PROT_STATUS=$(curl -s "$ADGUARD_HOST/control/status" -H 'User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H "Referer: $ADGUARD_HOST" -b $ADGUARD_COOKIE | jq .protection_enabled)
@minibox24
minibox24 / bot.py
Created April 10, 2021 14:04
discord.py activities invite generator
import discord
from discord.ext import commands
from discord.http import Route
bot = commands.Bot(command_prefix='!')
@bot.command('youtube')
async def youtube(ctx):
voice = ctx.author.voice
@glubsy
glubsy / howto_record_youtube_livestreams.md
Last active November 6, 2025 07:16
How to properly record Youtube & Twitch live streams

How to record Youtube live streams:

  • use livestream_saver to download from the first segment. Can also record membership-only streams by supplying it your cookies (uses yt-dlp to download)

  • use ytarchive which basically does the same thing, except a bit better.

  • use youtube_stream_capture. You can use cookies file to get member-only streams too. Be aware that this script currently fails to download chunks as soon as the stream has ended (this might be a bug).

  • or use live-dl which does monitoring of streams too. This is a wrapper around streamlink and yt-dlp.

@MatthewCallis
MatthewCallis / flash.md
Last active December 3, 2023 22:58
Disable Flash EOL Warnings
Disable EOL uninstall warnings:
	Disable auto updates when installing
	Add "EOLUninstallDisable=1" to mmc.cfg in C:\WINDOWS\system32\Macromed\Flash
	(C:\Windows\SysWOW64\Macromed\Flash on 64-bit)

---

Defuse flash player time bomb: