Skip to content

Instantly share code, notes, and snippets.

Avatar

Nicholas Tinsley sturmen

  • Facebook
  • New York, NY
View GitHub Profile
@sturmen
sturmen / .inputrc
Created Dec 17, 2018
the two most important lines any terminal user should have in their configuration
View .inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
@sturmen
sturmen / config.txt
Last active Nov 29, 2018
Nick's youtube-dl Config File
View config.txt
# nick's yt-dl config
# get automatic captions
--write-auto-sub
# put them in the file
--embed-subs
# get the video description
--add-metadata
# prefer free formats but also get other formats as necessary for maximum quality
-f 'bestvideo[fps<=30][height<=1440][ext=webm]+bestaudio[ext=webm]/bestvideo[fps<=30][height<=1440][ext=webm]+bestaudio[ext=m4a]/bestvideo[fps<=30][height<=1440][ext=mp4]+bestaudio[ext=m4a]/best'
# custom naming for files that makes more sense to me
@sturmen
sturmen / my-ublock-static-filters.txt
Last active Nov 28, 2018
sturmen's uBlock Origin filters
View my-ublock-static-filters.txt
androidpolice.com###comment-policy
twitter.com##.js-wtf-module
facebook.com###homepage_panel_pagelet
##[id^="ac-lre-player-ph"]
##[class$="recvontent"]
slickdeals.net##.fpGridBox:has-text(Bank Advertiser)
View keybase,md
### Keybase proof
I hereby claim:
* I am sturmen on github.
* I am sturmen (https://keybase.io/sturmen) on keybase.
* I have a public key ASD9flhSNpM6cHMBocIgZZeR9fpdXZHMb72sPq8u6QqD_wo
To claim this, I am signing this object:
@sturmen
sturmen / mp4_to_webm.sh
Created May 12, 2017
Conversion Script from MP4 to WebM in good quality
View mp4_to_webm.sh
#!/bin/sh
set -ex
for i in *.mp4; do
ffmpeg -y -i "$i" -c:v libvpx-vp9 -pass 1 -b:v 2M -crf 30 -threads 8 -speed 4 \
-pix_fmt yuv420p -tile-columns 6 -frame-parallel 1 \
-an -f webm /dev/null
ffmpeg -i "$i" -c:v libvpx-vp9 -pass 2 -b:v 2M -crf 30 -threads 8 -speed 2 \