Μετάβαση στο περιεχόμενο

Scripts #1

Οκτωβρίου 29, 2010
tags:

Things to remember / keep

Backup tomboy notes:

#!/bin/bash
#backup tomboy notes
tar -zcf /home/kostas/.backups/tomboy`date +%Y.%m.%d`.tar.gz /home/kostas/.tomboy

.bin/.cue to .iso

#!/bin/bash
# convert .bin/.cue to .iso
bchunk “$1″bin $1cue $1iso

Blog downloader (possibly wrong?)

#!/bin/bash
echo ‘****Blog Downloader****’
echo ‘w. WordPress Blog’
echo ‘b. Google Blog’
echo ‘l. Livejournal Blog’
echo ‘***********************’
echo

mkdir ~/downloads/websites/$2; cd ~/downloads/websites/$2;
case $1 in
w) # WordPress
STR=”http://”$2″.wordpress.com”
wget -rH -Dfiles.wordpress.com,wordpress.com $STR
;;

b) # Blogspot
STR=”http://”$2″.blogspot.com”
wget -rH -Dblogspot.com -p $STR
;;

l) # Livejournal
STR=”http://”$2″.blogspot.com”
wget -rH -Dblogspot.com -p $STR
;;

esac
# download a blogspot blog with images within blogspot
#wget -rH -Dblogspot.com -p http://blah.blogspot.com

Run multiple dropbox accounts

#!/bin/bash
#Dropbox @ Office
HOME=$HOME/.dropbox-office ~/.dropbox-dist/dropbox

### my version
#!/bin/bash
#Dropbox @ kostas
HOME=$HOME/.dropbox-kostas ~/.dropbox-dist/dropbox

 

No comments yet

Υποβολή σχολίου

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Αλλαγή )

Twitter picture

You are commenting using your Twitter account. Log Out / Αλλαγή )

Facebook photo

You are commenting using your Facebook account. Log Out / Αλλαγή )

Connecting to %s

Follow

Get every new post delivered to your Inbox.