Home‎ > ‎Projects‎ > ‎

One-liners

bash

# retrieve youtube titles from text file of youtube links
for x in $(cat youtubevids.txt); do TITLE=$(curl -s "$x" | grep -m2 "title=" | grep "json\" title" | cut -d \" -f 8); echo -e "$TITLE\n$x\n" ; done

# formatted
for x in $(cat youtubevids.txt); do TITLE=$(curl -s "$x" | grep -m2 "title=" \
| grep "json\" title" | cut -d \" -f 8); echo -e "$TITLE\n$x\n" ; done

#time-lapse record your Mac screen using Terminal.app and Quicktime
while [ 1 ];do vardate=$(date +%d\-%m\-%Y\_%H.%M.%S); screencapture -t jpg -x ~/Desktop/ScreenRecord/$vardate.jpg; sleep 1; done

source: http://www.reddit.com/r/mac/comments/wshn4/another_way_to_timelapse_record_your_mac_screen/

Comments