Skip to content

Instantly share code, notes, and snippets.

View samuelspiza's full-sized avatar

Samuel Spiza samuelspiza

  • Germany
View GitHub Profile
[settings]
skip.git = false
skip.hg = false
[workspaces]
# List of the workspaces to search. '~' will be expanded.
;workspace0 = ~/workspace
;foo = C:/workspace
;bar = /home/user/workspace
@samuelspiza
samuelspiza / flashcookies.bat
Created December 22, 2009 11:26
Purge Flash cookies.
@ECHO off
REM Remove Flash cookies in Windows. Can be auto started on System start up.
SET FLASH=Macromedia\"Flash Player"
RD /S /Q %APPDATA%\%FLASH%\#SharedObjects
RD /S /Q %APPDATA%\%FLASH%\macromedia.com\support\flashplayer\sys
DEL /S /Q /F %LOCALAPPDATA%\Temp\DDMCache\*.*
@samuelspiza
samuelspiza / git-archive.sh
Created March 1, 2010 16:14
Archive bare git repos in tarballs.
#!/bin/sh
for i in `ls | grep .git`
do
"tar" "czf" "${i/.git/.tar.gz}" "$i"
done
exit 0
@samuelspiza
samuelspiza / git-diff-wrapper.sh
Created March 1, 2010 16:23
External visual diff for git.
#!/bin/sh
# http://stackoverflow.com/questions/255202/
# > how-do-i-view-git-diff-output-with-visual-diff-program
# by VonC - http://stackoverflow.com/users/6309/vonc
# diff is called by git with 7 parameters:
# path old-file old-hex old-mode new-file new-hex new-mode
# Specify this script globaly as diff.external:
@samuelspiza
samuelspiza / merge-conflict.sh
Created March 2, 2010 21:29
Creating a git repo with a merge conflict for testing purposes.
#!/bin/sh
# Creating a git repo with a merge conflict for testing purposes.
mkdir merge
cd merge
git init
echo "BASE" > conflict.txt
git add conflict.txt
git commit -m "Initial commit"
@samuelspiza
samuelspiza / check-mp3-backup.bat
Created March 28, 2010 15:38
Check if all files downloaded with Amazon MP3-Downloader are backuped.
@ECHO off
SET /P destination=compare to folder in:
python %USERPROFILE%\bin\check-mp3-backup.py -d%destination%
{
"7zipportable": "4.65 Rev 3",
"irfanview": "427",
"java": "21",
"kdiff3": "0.9.95",
"keepassportable": "1.17",
"launchy": "2.5",
"firefoxportable": "3.6.8",
"thunderbird": "3.1.2",
"notepadpp": "5.7",
@samuelspiza
samuelspiza / .uniload-cred.conf
Created November 18, 2010 13:49
Example configuration for uniload.
[uniload]
# WARNING!!!
# uniload overrides files in the given path without warning. Test your
# configuration first by running uniload in test mode which gives a preview
# without any actual operations on the filesystem.
#
# Run testmode by starting uniload with option "-t":
#
# $ uniload.py -t
#