Skip to content

Instantly share code, notes, and snippets.

@mlsmith
mlsmith / keybase.md
Created January 17, 2018 05:11
Keybase proof

Keybase proof

I hereby claim:

  • I am mlsmith on github.
  • I am mlsmith (https://keybase.io/mlsmith) on keybase.
  • I have a public key whose fingerprint is 1291 8C7F E346 5090 6C31 F400 522C C11C 2EE2 1C61

To claim this, I am signing this object:

@mlsmith
mlsmith / lnx_cheatsheet.md
Created August 15, 2017 18:08
Linux Cheatsheet

Linux Cheatsheet

Just a list of commands that make life a little easier in linux varients particularly MacOS X

System info

Get number of processors

getconf _NPROCESSORS_ONLN

@mlsmith
mlsmith / iterm2-solarized.md
Created November 7, 2016 23:41 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font (OS X / macOS)

Solarized

@mlsmith
mlsmith / gist:c6f96bf26f91ae03160a60b958d64c8b
Last active October 25, 2019 11:10
Install FFMPEG on Mac OS X with x265
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265
# Streaming with FFMPEG
# https://trac.ffmpeg.org/wiki/StreamingGuide
ffmpeg -f avfoundation -i "1:0" -c:v libx265 -preset fast -c:a libfdk_aac -b:a 160k test.mkv
@mlsmith
mlsmith / gist:e1a4e70df69c04f12e72ab075c0a1deb
Created October 10, 2016 18:35
Create a dump of a remote postgres database
pg_dump -h remote_address -Fc -o -U db_username remote_db_name > file.dump
-h = host
-Fc = custom format archive
-U = DB username
-o = dump object identifiers (foreign keys)