Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am famicoman on github.
  • I am famicoman (https://keybase.io/famicoman) on keybase.
  • I have a public key whose fingerprint is B99E 806C C385 DE52 2485 906B 1619 AE4D 7CF2 A8F7

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am Famicoman on github.
* I am famicoman (https://keybase.io/famicoman) on keybase.
* I have a public key whose fingerprint is 57FD 6B1B 3A99 91F9 FD46 7AB1 DFE6 C3F2 6A87 3E51
To claim this, I am signing this object:
@Famicoman
Famicoman / twit-hd-downloader.sh
Created July 30, 2014 11:34
Twit HD Downloader
#!/bin/bash
#Usage: ./twit-hd-downloader.sh $mostRecentEpisodeNumber
#Use 3 digit episode number
#Will likely break for episode numbers < 100
for i in $(eval echo {$1..0})
do
wget -c -nc -e robots=off "http://twit.cachefly.net/video/twit/twit0$i/twit0$i""_h264m_1280x720_1872.mp4"
sleep 3s
done
#!/bin/bash
# Total directory size
du -ch | grep total
@Famicoman
Famicoman / tpb-ripper.sh
Created October 7, 2012 19:00
ThePirateBay User Magnet Link Ripper
#!/bin/bash
#Rips all the magnet links for a TPB User
#Usage: ./tpb-ripper.sh $user $numpages
#Where $user is the user and $numpages is the # pages for their profile
for i in {0..$2}
do
curl "http://thepiratebay.se/user/$1/$i/3" | grep -o 'magnet.*\0"' | sed 's/\(.*\)./\1/'
done
@Famicoman
Famicoman / defconvid-downloader.sh
Created August 21, 2012 17:41
Def Con Video Downloader
#!/bin/bash
#Usage: ./defconvid-downloader.sh $id
#Where $id is the conference number
wget -c -nc -e robots=off --wait 5 -i -- `curl "http://defcon.org/html/links/dc-archives/dc-$1-archive.html" | grep -o "https.*\.m4v" | sed 's/ \+/%20/g'`
@Famicoman
Famicoman / rename.sh
Created August 19, 2012 02:38
File Renamer
#!/bin/bash
#Converts file names to something more ftp friendly
#Strips symbols, converts spaces to underscores, uppercase to lowercase
ls | while read -r FILE
do
mv -v "$FILE" `echo $FILE | tr ' ' '_' | tr -d '[{}(),\!:?~@#$%^&*+=;<>|]' | tr -d "\'" | tr '[A-Z]' '[a-z]' | sed 's/_-_/_/g'`
done
@Famicoman
Famicoman / rev3-downloader.sh
Last active October 8, 2015 19:48
Revision3 Downloader
#!/bin/bash
#Usage: ./rev3-downloader.sh $id
#Where $id is found at http://revision3.com/$id for each show
#NOTE: The 'q' var is quality. Some shows may miss episodes in the quality you want. Always go back and check numbering for holes.
q=hd720p30.h264.mp4; wget -c -i -- `curl "http://revision3.com/$1/episodePage?&limit=1000" | grep -i $1-- | sed 's%^.*src="%%' | sed 's%images/shows%web%' | sed 's%medium.thumb.jpg".*%'$q'%'`
@Famicoman
Famicoman / good-downloader.sh
Created August 17, 2012 15:56
Good.net Downloader
#!/bin/bash
#Usage: ./good-downloader.sh $url
wget -c -nc -e robots=off --wait 5 -nH --cut-dirs=2 -r -np -R rejlist --reject "info","index.html*" $1