Skip to content

Instantly share code, notes, and snippets.

@alexose
alexose / youtube2podcast.js
Last active November 29, 2023 18:32
Simple YouTube to Podcast RSS (Node.js)
/*
* YouTube to Podcast using Node.js and not much else
*
* I got annoyed by all of the clunky and/or paid solutions to this problem, so I
* thought I'd just roll my own. My guess was that it'd be about 200 lines of code,
* and I wasn't too far off. It's not perfect but it works and it's relatively easy
* to follow.
*
* No half-hour Docker installs or 20gb Go libraries to download. Just throw it on a
* free EC2 micro server and serve the files using nginx like the good ol days. It
@timotgl
timotgl / uninstall-razer-synapse.sh
Last active April 24, 2024 15:20
How to fully uninstall Razer Synapse 2 on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra) without using Razer's official uninstall tool
# How to uninstall Razer Synapse 2 ( https://www.razerzone.com/synapse-2 )
# on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra)
# without using Razer's official uninstall tool.
# Tested on OS X 10.11.5 in July 2016.
# Edited with additional steps for later OS X versions,
# contributed by commenters on this gist.
# Step 1: In your terminal: stop and remove launch agents
launchctl remove com.razer.rzupdater
@austinhappel
austinhappel / remove_svn.py
Last active July 12, 2016 14:41
A few different ways to delete all .svn files from a git repository's history.
#!/bin/python
# USAGE:
# 1) cd /path/to/git/repository
# 2) execute the script with: `python /path/to/remove_svn.py`
# NOTE: By default this code does a dry-run. To actually delete files from history, remove the
# "n" flag from the 'git rm -rfn' around line 20.
import subprocess
p = subprocess.Popen(['find', '.', '-name', '*.svn'], stdout=subprocess.PIPE)