Skip to content

Instantly share code, notes, and snippets.

jaysonrowe / backup
Created September 6, 2013 01:47
backup script
View backup
echo "*** $(date -R) ***" >> $LOG
rsync -av --delete /home/jayson /storage/backup
rsync -av --delete /home/jayson /data/backup
jaysonrowe / trim
Created September 4, 2013 03:38
trim script
View trim
echo "*** $(date -R) ***" >> $LOG
fstrim -v /boot >> $LOG
fstrim -v / >> $LOG
fstrim -v /home >> $LOG
jaysonrowe / fonts.conf
Last active December 22, 2015 06:39
View fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<match target="font">
<edit mode="assign" name="rgba">
<edit mode="assign" name="hinting">
View .Xresources
! gerneral xterm settings -----
XTerm*utf8: 1
XTerm*pointerColor: white
XTerm*pointerColorBackground: black
XTerm*cursorColor: yellow
XTerm*cursorBlink: true
XTerm*selectToClipboard: true
XTerm*SaveLines: 9000
XTerm*ScrollBar: false
XTerm*visualbell: true
View fstrim
sudo fstrim -v /
View compact-specific-machine
VBoxManage modifyhd Lubuntu.vdi --compact
jaysonrowe / compact
Last active December 21, 2015 03:59
View compact
VBoxManage modifyhd <Filename of vdi> --compact
View discard-specific-machine
VBoxManage storageattach Lubuntu --storagectl "SATA" --port 0 --discard on
View discard
VBoxManage storagetattach <VM name> --storagectl "SATA-Controller" --port <port number of disk image> --discard on
View .Xdefaults
! xscreensaver ---------------------------------------------------------------
!font settings
xscreensaver.Dialog.headingFont: -*-dina-bold-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.bodyFont: -*-dina-medium-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.labelFont: -*-dina-medium-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.unameFont: -*-dina-medium-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.buttonFont: -*-dina-bold-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.dateFont: -*-dina-medium-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.passwd.passwdFont: -*-dina-bold-r-*-*-10-*-*-*-*-*-*-*