This file contains hidden or 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 | |
# incrementally backup $HOME using rsync | |
SOURCE="$HOME/" | |
DEST="/media/Dragis_HDD/homebackup/" | |
KEEP=5 # how many backups besides the current one should be kept | |
EXCLUDEFROM="$SOURCE/.backup_excludes" | |
NICENESS=10 | |
LOGFILE="$DEST/.lastbackup.log" |
This file contains hidden or 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
::grep | |
echo findstr %1 %2 %3 %4 %5 > %systemroot%\grep.cmd | |
::ifconfig | |
echo IF "%1"=="-a" (ipconfig /all) ELSE (ipconfig %1) > %systemroot%\ifconfig.cmd | |
::man | |
echo %1 /?> %systemroot%\man.cmd | |
::ls | |
echo IF "%1"=="-a" (dir) ELSE (IF "%1"=="-al" (dir) ELSE (dir %1 %2 %3 %4 %5)) > %systemroot%\ls.cmd |
This file contains hidden or 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
[vmware-tools] | |
name=VMware Tools for Red Hat Enterprise Linux $releasever - $basearch | |
baseurl=http://packages.vmware.com/tools/esx/latest/rhel6/$basearch | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub | |
#Provides: | |
#vmware-tools-esx | |
#vmware-tools-esx-nox |
This file contains hidden or 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
sed -n '/pattern1/,/pattern2/p' |
This file contains hidden or 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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Disabled</key> | |
<false/> | |
<key>Label</key> | |
<string>com.username.somethingsomething</string> | |
<key>ProgramArguments</key> | |
<array> |
This file contains hidden or 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 | |
#Parses 1st and 2nd argument as directory paths and compares MD5 sums recursively | |
#Usage: ./comparator.sh /mount/directory /other_mount/directory | |
find "$1" -type f | while read filename; do | |
name="${filename#$1*}" | |
sum1="$(md5 -q "$1$name")" | |
sum2="$(md5 -q "$2$name")" |
This file contains hidden or 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
<!-- WEBKIT SAMPLE --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<style type="text/css"> | |
#box div | |
{ | |
position: absolute; |
NewerOlder