Commits

Anonymous committed 99c513a

current state.

Comments (0)

Files changed (9)

+#!/bin/sh
+export GTK2_RC_FILES=/usr/share/themes/Simple/gtk-2.0/gtkrc
+exec /usr/bin/firefox "$@"
 # (hibernate to RAM / disc)
 #
 
-set-keyboard-rate
+set-x-keyboard-rate

backup_via_dar.sh

 # For More info see here:
 # http://dar.linux.free.fr/doc/mini-howto/dar-differential-backup-mini-howto.en.html
 
-STORE_TO=/mnt/disk3/$USER/current.backups/
+STORE_TO=/mnt/secure+/$USER/current.backups/
 BACKUP_FILENAME=`hostname``date +_%Y-%m-%d`
 
 mkdir -p $STORE_TO
 
 sudo dar -c $STORE_TO$BACKUP_FILENAME \
+    --min-digits 2 \
     -Z "*.gz" -Z "*.bz2" -Z "*.zip" -Z "*.png" \
-    -m 256 -y \
+    -m 256 \
     -X / \
     -R / \
     -v \
+    -y \
     -g home/$USER/ \
     -P home/$USER/enc \
     -P home/$USER/tmp \
-    -g disk2/$USER/ \
+    -g mnt/disk2/$USER/ \
+    -g mnt/secure+/$USER/ \
+    -P mnt/secure+/$USER/current.backups/ \
+    -P mnt/secure+/$USER/.cache \
     -g etc/
 
-dar -t $STORE_TO$BACKUP_FILENAME
+# dar -t $STORE_TO$BACKUP_FILENAME
 import logging
 
 #~~~~~~~~~~~~~~~~ settings ~~~~~~~~~~~~~~~~~~~~
-browsers = {'firefox': ('/usr/bin/firefox-bin', []),
-#            'chromium': ('/usr/bin/chromium', ['--no-sandbox']),
-            'chromium': ('/usr/bin/chromium', []),
-            'google-chrome': ('/usr/bin/google-chrome', []),
-            }
+#os.putenv('GTK2_RC_FILES', '/usr/share/themes/Simple/gtk-2.0/gtkrc')
+browsers = {
+    'firefox': (os.path.expanduser('~/bin/_firefox'), []),
+    'chromium': ('/usr/bin/chromium', []),
+    'google-chrome': ('/usr/bin/google-chrome', []),
+    }
 saveto = "~/.lastbrowser"
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+import os
+import pwd
+from fabric.api import task, env, local
+
+pwinfo = pwd.getpwuid(os.getuid())
+current_user = pwinfo.pw_name
+homedir = pwinfo.pw_dir
+
+env.store_to = '/mnt/secure+/%s/current.backups' % current_user
+
+env.backup_dirs = [
+    homedir,
+    '/mnt/secure+/avk',
+    '/etc']
+
+env.backup_exclude_dirs = [
+    env.store_to,
+    '/mnt/secure+/%s/.cache' % current_user,
+    '%s/enc' % homedir,
+    '%s/tmp' % homedir]
+
+
+env.options = ['--no-encryption', '--volsize=2048']
+env.hostname = os.uname()[1]
+
+@task
+def external_drive():
+    env.store_to = '/mnt/ext2/%s/current.backups' % current_user
+
+
+@task
+def backup(mode='full'):
+    for srcdir in env.backup_dirs:
+        dstdir = env.store_to + '/backup_' + env.hostname + srcdir
+        if not os.path.exists(dstdir):
+            os.makedirs(dstdir)
+        options = list(env.options)
+        for ignore_dir in env.backup_exclude_dirs:
+            if ignore_dir.startswith(srcdir):
+                options += ['--exclude %s' % ignore_dir]
+        cmd = 'duplicity {mode} {options} {srcdir} {target_url}'.format(
+            mode=mode,
+            options=' '.join(options),
+            srcdir=srcdir,
+            target_url='file://'+dstdir)
+        if pwd.getpwuid(os.stat(srcdir).st_uid).pw_name != current_user:
+            cmd = "sudo %s" % cmd
+        local(cmd)
+
+@task
+def incr_backup():
+    backup('incr')
-GTK2_RC_FILES=/usr/share/themes/Simple/gtk-2.0/gtkrc ~/bin/browser.py firefox --blank
+~/bin/browser.py firefox --blank
 # ~/bin/browser.py firefox --blank

notmuch-simpletag

 notmuch tag +customers "(from:david@tagvillage.com or from:ideacentrics@yahoo.com) and not tag:customers"
 notmuch tag +customers from:kevin@prizewheel.com and not tag:customers
 notmuch tag +customers from:jw@print-science.com and not tag:customers
+notmuch tag +customers from:kevin.feltner@gmail.com and not tag:customers
 
+# family
+notmuch tag +family from:koval.natasha@gmail.com and not tag:family
+
+# bike
+notmuch tag +bike from:Lodewijk.De.Meulemeester@ahlers.com and not tag:bike
+
+
+# ignore some unread
+notmuch tag -unread from:htreports@host-tracker.com and tag:unread
 echo "Done."
+#!/bin/sh
+xrdb -remove Emacs.foreground
+xrdb -remove Emacs.background
+xrdb -remove Emacs.fringe.attributeBackground
+xrdb -remove Emacs.fringe.attributeForeground
+xrdb -remove Emacs.pointerColor
+xrdb -remove Emacs.cursorColor
+xrdb -merge ~/.Xresources

set-x-desktop-wallpaper

 FILE="$USER/img_1517.jpg"
 FILE="$USER/img_0387.jpg"
 FILE="$USER/dsc00997.jpg"
+FILE="/home/$USER/photo/2013.03.10/IMG_0932.JPG"
+#FILE="/home/$USER/photo/2013.03.10-more/IMG_3897.JPG"
+FILE="/home/$USER/photo/2013.03.24/IMG_0992.JPG"
+#FILE="/home/$USER/photo/2013.03.10/IMG_0945.JPG"
 # 
 #FILE="caedes1/LANJOCKEY-1146248922.jpg"
 #FILE="caedes1/velvet_-1152307256.jpg"
 #FILE="caedes1/Valle-1142548142.jpg"
-FILE="caedes1/Cain-1142638975.jpg"
+#FILE="caedes1/Cain-1142638975.jpg"
 #FILE="caedes1/gs208103-1111547085.jpg"
-FILE="caedes1/busybottle-1301204710.jpg"
-#feh --bg-scale ~/Pictures/backgrounds/$FILE
+#FILE="caedes1/busybottle-1301204710.jpg"
+#feh --bg-scale $FILE
+feh --bg-fill $FILE
+#echo feh --bg-scale $FILE
 #feh --bg-fill ~/Pictures/backgrounds/$FILE
-fbsetroot -mod 4 4 -fg grey20 -bg rgb:6/6/5c
+#fbsetroot -mod 4 4 -fg grey20 -bg rgb:6/6/5c
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.