Skip to content

Instantly share code, notes, and snippets.

View sxlderek's full-sized avatar

Derek Chan sxlderek

View GitHub Profile
@sxlderek
sxlderek / ts-to-mp4.py
Last active April 24, 2017 14:28 — forked from nhtera/ts-to-mp4.py
Convert all videos .ts to .mp4 using ffmpeg
#!/usr/bin/python2.7
# Required ffmpeg
import os
import sys
walk_dir = os.getcwd()
count = 0
for root, subdirs, files in os.walk(walk_dir):
for file in files:
@sxlderek
sxlderek / .bash_profile
Last active December 31, 2016 17:55 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
export PATH="~/bin:/usr/local/bin/":$PATH
export EDITOR=/usr/bin/vim
export BLOCKSIZE=1k
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ll='ls -FGlAhpk' # Preferred 'ls' implementation
alias whatismyip='curl ip.appspot.com && ' # myip: Public facing IP Address
alias flushdns='dscacheutil -flushcache' # flushDNS: Flush out the DNS Cache