This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl ifconfig.me |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo FILE %1 BINARY > "%~n1.cue" | |
echo TRACK 01 MODE1/2352 >> "%~n1.cue" | |
echo INDEX 01 00:00:00 >> "%~n1.cue" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df – displays disk usage information based on file system (ie: entire drives, attached media, etc) | |
At the command prompt, type: | |
df -h | |
The -h flag is for ‘human readable form’ meaning return results in the familiar megabyte/gigabyte format. You should see something like this: | |
$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/disk0s2 74G 52G 22G 70% / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
diskutil info / | awk '/Free Space/ { print $4 $5, "free before"}' | |
sudo rm -rf ~/Library/Caches/* | |
sudo rm -rf /Library/Caches/* | |
sudo rm -rf /System/Library/Caches/* | |
diskutil info / | awk '/Free Space/ { print $4 $5, "free after"}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# [sudo] gem install mechanize | |
# ruby tumblr-photo-ripper.rb | |
require 'rubygems' | |
require 'mechanize' | |
# Your Tumblr subdomain, e.g. "jamiew" for "jamiew.tumblr.com" | |
site = "thoughtjoy" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dumpcl: | |
clang -framework OpenCL dumpcl.c -o dumpcl && ./dumpcl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
#$((2.77+(i*60)-0.5)) | |
#enable brace expansion so padding 0s are added | |
setopt brace_ccl | |
for i in {05..22} | |
do ffmpeg -i s07e21.mkv -acodec copy -ss $(((i*59.5)+2.77)) -t 00:01:00 pt_$i.mp4 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 $1 |