This file contains 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 | |
VIDEOS=~/Videos/WCW/1/ | |
find "$VIDEOS" -name '*.MP4' -exec sh -c 'ffmpeg -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.MP4}.webm"' {} \; | |
find "$VIDEOS" -name '*.mp4' -exec sh -c 'ffmpeg -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mp4}.webm"' {} \; | |
find "$VIDEOS" -name '*.MPG' -exec sh -c 'ffmpeg -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.MPG}.webm"' {} \; | |
find "$VIDEOS" -name '*.mpg' -exec sh -c 'ffmpeg -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mpg}.webm"' {} \; | |
find "$VIDEOS" -name '*.MOV' -exec sh -c 'ffmpeg -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.MOV}.webm"' {} \; | |
find "$VIDEOS" -name '*.mov' -exec sh -c 'ffmpeg -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mov}.webm"' {} \; | |
find "$VIDEOS" -name '*.DV' -exec sh -c 'ffmpeg -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.DV}.webm"' {} \; | |
find "$VIDEOS" -name '*.dv' -exec sh -c 'ffmpeg -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.dv}.webm"' |
This file contains 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 | |
VIDEOS=~/Desktop/Wedding/ | |
find "$VIDEOS" -name '*.mp4' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mp4}.webm"' {} \; | |
find "$VIDEOS" -name '*.mkv' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mkv}.webm"' {} \; | |
find "$VIDEOS" -name '*.avi' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.avi}.webm"' {} \; | |
find "$VIDEOS" -name '*.AVI' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.AVI}.webm"' {} \; | |
find "$VIDEOS" -name '*.MPG' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.MPG}.webm"' {} \; | |
find "$VIDEOS" -name '*.wmv' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.wmv}.webm"' {} \; | |
find "$VIDEOS" -name '*.MOV' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.MOV}.webm"' {} \; | |
find "$VIDEOS" -name '*.mov' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mov} |
This file contains 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
mplayer -noframedrop -dumpfile wtan.asf -dumpstream mms://63.246.156.74/wtan |
This file contains 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 | |
IMAGE=~/Videos/Revolutionary\ Road\ Radio\ Show/RevolutionStar.jpg | |
AUDIO=~/Videos/Revolutionary\ Road\ Radio\ Show/2014-11-21_rev_rd-_141110.mp3 | |
avconv -loop 1 -i "$IMAGE" -i "$AUDIO" -shortest -c:v libx264 -c:a copy "${AUDIO}.mkv" |
This file contains 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/sh | |
NOW=$(date +"%b-%d-%y") | |
STREAM="mms://63.246.156.74/wtan" | |
WORKINGDIR="/home/user/Videos/" | |
FILENAME="${WORKINGDIR}revolutionary_road_radio_show_$NOW" | |
IMAGE="${WORKINGDIR}The Revolutionary Road/RevolutionStar.jpg" | |
DURATION="3600" | |
#cd $WORKINGDIR | |
rm -rf "${FILENAME}.wma" |
This file contains 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
sql.execute(""" | |
CREATE TABLE IF NOT EXISTS `GoogleContacts` ( | |
`id` bigint(18) NOT NULL AUTO_INCREMENT, | |
`Name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`Given Name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`Additional Name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`Family Name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`Yomi Name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`Given Name Yomi` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`Additional Name Yomi` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, |
This file contains 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
# mongoimport -d voters -c flvoterimport --type tsv --file ALA_20120402.txt --fieldFile flvoterfields.txt | |
unzip -p fla_20120402.zip | mongoimport -d voters -c flvoterimportall --type tsv --fieldFile flvoterfields.txt | |
iconv -f UTF-16LE -t UTF-8 stpetegreens.csv | mongoimport -d voters -c stpetegreens --type csv --headerline | |
iconv -f UTF-16LE -t UTF-8 pinellasgreens.csv | mongoimport -d voters -c pinellasgreens --type csv --headerline |
This file contains 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
dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev | cut -b -32 |