Skip to content

Instantly share code, notes, and snippets.

View janreggie's full-sized avatar
catch the wave

Jan Reggie Dela Cruz janreggie

catch the wave
View GitHub Profile
@janreggie
janreggie / main.markdown
Created April 26, 2026 09:07
How to extract clips from videos and save them as memes

Suppose you download a video online:

# Feel free to choose shitty quality e.g., 360p.
yt-dlp -f 18 'https://www.youtube.com/...'

And then you can trim it

@janreggie
janreggie / sql-murder-mystery.sql
Last active September 21, 2020 06:27
My solution for the SQL Murder Mystery. Solve it for yourself at https://mystery.knightlab.com/
WITH murder AS (
-- determine details of the murder
SELECT *
FROM crime_scene_report
WHERE date = 20180115
AND TYPE = 'murder'
AND city = 'SQL City'
),
first_witness AS (
-- last house on Northwestern Dr belongs to Morty Schapiro