Skip to content

Instantly share code, notes, and snippets.

@orangepeelbeef
orangepeelbeef / whisperx_transcribe.py
Last active October 11, 2023 20:43
whisperx transcribe python word based timing SRT output
import whisperx
import gc
import argparse
import os
from whisperx.utils import get_writer
YOUR_HF_TOKEN = ''
parser = argparse.ArgumentParser()
parser.add_argument("--file", help="the filename to transcribe", type=str, required=True)
@orangepeelbeef
orangepeelbeef / parse_chatlog.py
Created September 23, 2023 18:01
FoundryVTT PF2e Chat log parser
#!/bin/env/python
import os
import re
from collections import Counter
def parse_event(data, roll_log, roll_count):
my_data = data.split("\n")
match = re.match('\[.+\]\s(.+)$', my_data[0])
if match:
@orangepeelbeef
orangepeelbeef / brute_ssh_key
Created January 14, 2020 03:34
bruteforce ssh rsa from wordlist
# wordlist named pass.lst
# encrypted ssh key private.pem (watch out for the permissions 0600 is ok)
from subprocess import PIPE, Popen
import subprocess
import sys
def cmdline(command):
@orangepeelbeef
orangepeelbeef / hacking_ctf_tools
Last active January 21, 2021 02:05
Hacking/CTF tools
# Generic Tools:
CyberChef
This tool works in many categories, Encode/Decode, file detection, file carving, etc. Very very very handy
https://gchq.github.io/CyberChef/
strings
extract all strings from a file
ex: strings myfile, or strings myfile -n 10 (get all strings with length at least 10)
file:
unix file command, determine file type
ex: file Templeton_Peck.jpg
@orangepeelbeef
orangepeelbeef / make_qrcode.py
Last active January 4, 2020 19:23
decode an ascii qrencode to an image
# take an ascii qrcode from qrencode and make it a png
from PIL import Image
import re
import sys
try:
with open(sys.argv[1]) as fp:
line = fp.readline().strip('\n')
@orangepeelbeef
orangepeelbeef / ps_now_games.py
Last active May 22, 2020 14:01
Collect sony ps now games and show which ones have local / online co-op
#!/usr/bin/python3
import bs4
import requests
import urllib
COUCH_COOP = []
NET_COOP = []
def print_output(collection):
for _c in collection:

Keybase proof

I hereby claim:

  • I am orangepeelbeef on github.
  • I am orangepeelbeef (https://keybase.io/orangepeelbeef) on keybase.
  • I have a public key whose fingerprint is 752A 47BD FA05 FD83 5830 6215 3FEA 0A23 B0FB E25F

To claim this, I am signing this object: