Skip to content

Instantly share code, notes, and snippets.

View zoharbabin's full-sized avatar

Zohar Babin zoharbabin

View GitHub Profile
@zoharbabin
zoharbabin / concat-mts-files.sh
Created May 7, 2017 05:03 — forked from jbuchbinder/concat-mts-files.sh
Concatenate MTS AVCHD files under Linux
#!/bin/bash
## Solution from: http://stackoverflow.com/questions/26150533/join-avchd-mts-files-on-linux
## ffmpeg -i "concat:00000.MTS|00001.MTS|00002.MTS" -c copy output.m2ts
## File with .m2ts extension, etc
OUT="$1"; shift
## Format : "concat:00000.MTS|00001.MTS|00002.MTS"
IN="concat:$1"; shift
@zoharbabin
zoharbabin / gist:3cdda60f0fae508f523b23cf276b1b8a
Created January 26, 2017 09:20 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*