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 / keychords.ahk
Last active February 28, 2024 21:25
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
#!/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
@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:
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 6, 2024 15:28
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@joepie91
joepie91 / README.md
Last active June 25, 2023 02:07 — forked from thibaudcolas/README.md
Video Downloader professional kmdldgcmokdpmacblnehppgkjphcbpnn background.js

Video Downloader professional kmdldgcmokdpmacblnehppgkjphcbpnn background.js

NOTE: This is a fork of the original Gist, with the code made more readable, and additional analysis added.

This is the source of background.js for a now-unpublished Chrome extension called "Video Downloader professional" (ID kmdldgcmokdpmacblnehppgkjphcbpnn, since then replaced with another "Video Downloader professional" (ID bacakpdjpomjaelpkpkabmedhkoongbi). This script is republished here for educational / research purposes. It has initially been extracted from the extension’s archive available as v2.4 on https://www.crx4chrome.com/.

Why is this interesting?

The extension has appeared in malware discussions in the past. Its replacement of Video downloader professional "bacakpdjpomjaelpkpkabmedhkoongbi" seems related t

@senderle
senderle / hand-modify-pdf.md
Created September 23, 2020 15:03
So you want to modify the text of a PDF by hand

So you want to modify the text of a PDF by hand...

If you, like me, resent every dollar spent on commercial PDF tools, you might want to know how to change the text content of a PDF without having to pay for Adobe Acrobat or another PDF tool. I didn't see an obvious open-source tool that lets you dig into PDF internals, but I did discover a few useful facts about how PDFs are structured that I think may prove useful to others (or myself) in the future. They are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.