Skip to content

Instantly share code, notes, and snippets.

@jaysonrowe
jaysonrowe / backup
Created September 6, 2013 01:47
backup script
#!/bin/sh
LOG=/var/log/backup.log
echo "*** $(date -R) ***" >> $LOG
rsync -av --delete /home/jayson /storage/backup
rsync -av --delete /home/jayson /data/backup
@jaysonrowe
jaysonrowe / trim
Created September 4, 2013 03:38
trim script
#!/bin/sh
LOG=/var/log/trim.log
echo "*** $(date -R) ***" >> $LOG
fstrim -v /boot >> $LOG
fstrim -v / >> $LOG
fstrim -v /home >> $LOG
@jaysonrowe
jaysonrowe / fonts.conf
Last active December 22, 2015 06:39
fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
<edit mode="assign" name="hinting">
! 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
sudo fstrim -v /
VBoxManage modifyhd Lubuntu.vdi --compact
@jaysonrowe
jaysonrowe / compact
Last active December 21, 2015 03:59
VBoxManage modifyhd <Filename of vdi> --compact
VBoxManage storageattach Lubuntu --storagectl "SATA" --port 0 --discard on
VBoxManage storagetattach <VM name> --storagectl "SATA-Controller" --port <port number of disk image> --discard on
! 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-*-*-*-*-*-*-*