Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<dummy/>
#!/bin/bash
usage() {
cat <<"EOF"
$0 [--dry-run] <svn_dir> <replacement_dir>
This script replaces the contents of <svn_dir> with the contents of <replacement_dir>,
where <replacement_dir> is not an svn directory.
Copyleft 2010, Rowan Rodrik van der Molen <rowan@bigsmoke.us>
XTerm*background: black
XTerm*Foreground: Grey
XTerm*faceName: Liberation Mono
XTerm*faceSize: 10
XTerm*on2Clicks: regex [^ \n]+
XTerm*bellIsUrgent: true
#!/bin/bash
HAL_FILE=/etc/hal/fdi/policy/99-x11-synaptics.fdi
VERBOSITY_LEVEL=2
usage()
{
cat <<EOF
Usage: $0 options
@bigsmoke
bigsmoke / rsync-full-system-backup.sh
Created August 12, 2009 20:37
rsync system backup example
rsync --archive --numeric-ids --hard-links --sparse \
--verbose --progress --human-readable \
--exclude-from=- \
/ rsync-server::share <<"EOF"
/proc/*
/sys/*
/mnt/*/*
EOF
<?xml version='1.0' standalone='yes'?>
<!DOCTYPE dummy [
<!ELEMENT dummy EMPTY >
]>
<!--
- Name: dummy.xml
- Usage: A valid dummy XML file; it contains an empty root tag.
- Author: Rowan Rodrik van der Molen
-->
#!/bin/bash
#
# linksafe is copyleft 2009 by Rowan Rodrik van der Molen and released under the General Public Licence v.3
usage() {
cat <<EOF
Usage: $0 [OPTIONS] <source_dir> <destination_superdir>
$0 --help
For every file in <source_path>, this script creates a hardlink in a timestamped subdir of <destination_superdir>.