This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### ABOUT: See: http://gist.github.com/366269 | |
### Runs rsync, retrying on errors up to a maximum number of tries. | |
### On failure script waits for internect connection to come back up by pinging google.com before continuing. | |
### | |
### Usage: $ ./rsync-retry.sh source destination | |
### Example: $ ./rsync-retry.sh [email protected]:~/* ~/destination/path/ | |
### | |
### INPORTANT: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Section to timed between START an FINISH... | |
START=$SECONDS | |
echo "sleep 30s" | |
sleep 30s | |
FINISH=$SECONDS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## incremental rsync backup script | |
## run hourly via cron, will take a back up every 24hrs for up to 7days. | |
## efficent use of space using hard links | |
## can handle computers been turned on / off | |
## executes n backup processes in parallel | |
# ------------- computers to backup ----------------------------------- | |
# IP Address or fully qualified names here + remote backup directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Automatically sort TV Eppisodes/Series for XBMC Libary | |
# using Standard naming convention at http://wiki.xbmc.org/index.php?title=TV_Shows_(Video_Library) | |
# ie. /destination/directory/SERIES/SEASON NO./EPISODE | |
SOURCE=/source/directory | |
DEST=/destination/directory | |
############################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Usage: ./socks-retry server.example.com | |
## Use key authentication | |
# ----------------------------- ssh Options ------------------------------------------------ | |
PORT=2048 | |
# -------------------- Shouldn't need to change anything bellow ------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Possibly use dedicated user... | |
#useradd vmadmin | |
#passwd vmadmin | |
echo "Virtualbox VMguest setup script" | |
echo | |
echo -n "unique VM guestname: " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0"> | |
<info> | |
<title>Harvard Reference format (Adapted for UEL)</title> | |
<id>http://www.zotero.org/styles/harvard1</id> | |
<link href="http://www.zotero.org/styles/harvard1" rel="self"/> | |
<author> | |
<name>Julian Onions</name> | |
<email>[email protected]</email> | |
<name>Jason Martin</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set $* | |
case "$1" in | |
ibm/hotkey) | |
case "$4" in | |
00001004) | |
/usr/sbin/pm-suspend | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# gnome-shell-extension-weather-location-updater.sh is free software: you | |
# can redistribute it and/or modify it under the terms of the GNU General | |
# Public License as published by the Free Software Foundation, either version | |
# 3 of the License, or (at your option) any later version. | |
# | |
# gnome-shell-extension-weather-location-updater.sh is distributed in the hope | |
# that it will be useful, but WITHOUT ANY WARRANTY; without even the implied | |
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |