Skip to content

Instantly share code, notes, and snippets.

@enblanco
enblanco / appify.sh
Created November 14, 2010 09:00 — forked from subtleGradient/appify
Create the simplest possible mac app from a shell script.
#!/usr/bin/env bash
#
# url : https://gist.github.com/672684
# version : 2.0.2
# name : appify
# description : Create the simplest possible mac app from a shell script.
# usage : cat my-script.sh | appify MyApp
# platform : Mac OS X
# author : Thomas Aylott <oblivious@subtlegradient.com>
@enblanco
enblanco / colors.sh
Created January 3, 2011 15:32
Prints a color table of 8bg * 8fg * 2 states (regular/bold)
#!/bin/bash
#
# Description:
#
# Prints a color table of 8bg * 8fg * 2 states (regular/bold)
#
echo
echo Table for 16-color terminal escape sequences.
echo Replace ESC with \\033 in bash.
@enblanco
enblanco / divshare.js
Created January 8, 2011 02:17
One-click download from a page with a divshare player
javascript:fvalue=document.divplaylist.src.match(/\d+/);sposition=document.divplaylist.src.search('-');svalue=document.divplaylist.src.substring(sposition+1);location.href='http://pstoragestart2.divshare.com/launch.php?f='+fvalue+'&s='+svalue;
@enblanco
enblanco / hack.sh
Created December 1, 2012 15:01 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@enblanco
enblanco / gist:6946724
Last active December 25, 2015 08:29
Convert mp4 and flv video to mp3 with VLC
for file in /path/to/directory/*.flv; do /Applications/VLC.app/Contents/MacOS/VLC -I dummy "$file" --sout="#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst=\"$(echo "$file" | sed 's/\.[^\.]*$/.mp3/')\"}" vlc://quit; done
@enblanco
enblanco / gist:7d8355d381d5f4af838d
Created October 16, 2014 15:32
Find direct download links for songs using Google
?intitle:index.of?mp3 songname
@enblanco
enblanco / gist:837b129f4ea484a26929
Created February 22, 2015 12:25
Svpply bookmarklet
javascript:void((function()%7Bvar%20hsb=document.createElement('script');hsb.setAttribute('src','https://svpply.com/bookmarklet/loader/svpk_f9fa00cb9637ad9f29ec5f90b8edec88');hsb.setAttribute('type','text/javascript');document.getElementsByTagName('head')%5B0%5D.appendChild(hsb);%7D)());
@enblanco
enblanco / gist:a303ed9992ca426dd505cf10e606b8e5
Created May 5, 2016 09:28
Download recursively all MP3 from a URL
wget -r -A.mp3 http://target.url
@enblanco
enblanco / terminal-background-color
Last active September 3, 2018 15:44
Change Terminal Background color in OSX from the command line
osascript -e 'tell application "Terminal" to set background color of window 1 to {65535, 33667, 49601}'
diff -rq -x '.*' folder_1 folder_2
#-r: recursive
#-q: --brief Output only whether files differ.
#-x '-*' ignore hidden files