Skip to content

Instantly share code, notes, and snippets.

@zemanel
zemanel / flv2mp4.sh
Last active August 29, 2015 14:15
Bash script for converting FLV videos to MP4 for use in Automator
# Bash script for converting FLV videos to MP4
# Can be made to work with any ext http://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash
for FILE in "$@"
do
FILE_NO_EXT=$(basename "$FILE" .flv)
OUT_DIR=$(dirname "$FILE")
FILE_OUT="${OUT_DIR}/${FILE_NO_EXT}.mp4"
FILE_OUT_TEMP="${OUT_DIR}/${FILE_NO_EXT}-converting.mp4"
echo "FILE: ${FILE}"
@zemanel
zemanel / CloudAppSelectAllItems.js
Last active December 13, 2015 20:59
Check all list items on http://getcloudapp.com for deletion
/*
* Checks all list items on http://getcloudapp.com upload list,
* which is useful for multiple item deletion (AKA nuke the crap of all the uploads)
*
* License:
* José Moreira, in 2013 and beyond, doesn't care what you do with this piece of code.
*
*/
(function(){
@zemanel
zemanel / gist:1329673
Created November 1, 2011 02:27
Starcraft2 Golden Rules
1) Never get supply blocked ever
2) Never have more than 500 minerals or 150 gas during first 8 minutes
3) Always produce out of all your building and don't queue stuff
4) Don't play blindly - scout and scan if you dont know whats going on
5) Try to get an expo before 8 minute and 2nd before 10th