Skip to content

Instantly share code, notes, and snippets.

View alexrinass's full-sized avatar

Alexander Rinass alexrinass

View GitHub Profile
@alexrinass
alexrinass / gist:960729
Created May 7, 2011 18:50
Git+Kaleidoscope difftool configuration
[alias]
ksdiff = difftool
[diff]
tool = ksdiff
[difftool "ksdiff"]
cmd = "ksdiff $LOCAL $REMOTE"
[difftool]
@alexrinass
alexrinass / gist:960724
Created May 7, 2011 18:48
Git config aliases
[alias]
st = status -sb
ci = commit
co = checkout
ls = "log --oneline --decorate --color"
lsg = "log --oneline --decorate --color --graph"
untrack = "rm --cached --"
unstage = "reset HEAD --"
@alexrinass
alexrinass / addgitrepo
Created May 7, 2011 18:46
Create a new shared git repo on linux
#/bin/sh
#
# Script to create an empty Git-Repository.
#
GIT_BASEPATH=/var/cache/git
SCRIPT_NAME="`basename $0`"
PROJECT_NAME="$1"
if [ -z "$PROJECT_NAME" ]; then
@alexrinass
alexrinass / index.html
Created May 7, 2011 12:36
HTML5 Base template
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf8" />
<meta name="DC.Title" content="" />
<meta name="DC.Description" content="" />
<meta name="description" content="" />
<meta name="DC.Author" content="" />
<meta name="DC.Publisher" content="" />
<meta name="DC.Copyright" content="" />
@alexrinass
alexrinass / addsvnrepo
Created May 7, 2011 12:06
Creates a new SVN repo
#!/bin/sh
#
# Creates a Subversion repository under /var/lib/svn and imports the default
# SVN directory layout (trunk branches tags) as initial commit.
#
SCRIPT_NAME="`basename $0`"
SVN_REPOSITORY_PATH="/var/lib/svn"
SVN_HOOKS_PATH="/usr/local/share/subversion/repository-creation/hooks"
@alexrinass
alexrinass / svnadmin
Created May 7, 2011 12:00
SVN utils for linux server
#!/bin/sh
#
# Wrapper script to force correct umask for svnadmin.
# Put in /usr/local/sbin to override default svnadmin binary.
#
umask 002
/usr/bin/svnadmin "$@"
@alexrinass
alexrinass / macports-apache2-vhost.sh
Created May 7, 2011 11:55
Apache VirtualHost template for Macports
#!/bin/sh
cat <<EOF
<VirtualHost *:80>
ServerName alex.macbook
ServerAdmin webmaster@macbook
DocumentRoot "/opt/local/www/alex.macbook"
ErrorLog "logs/alex_macbook_error.log"
CustomLog "logs/alex_macbook_access.log" common
<IfModule mod_rewrite.c>
@alexrinass
alexrinass / mateup.sh
Created May 7, 2011 11:53
TextMate Bundles Updater/Installer
#!/bin/bash
#
# Update or checkout official TextMate bundles.
#
TEXTMATE_SUPPORT_DIR=~/Library/Application\ Support/TextMate
if [ -z $LC_CTYPE ]; then
export LC_CTYPE=en_US.UTF-8
fi
@alexrinass
alexrinass / .htaccess
Created May 7, 2011 11:35
Apache .htaccess template
# Error documents
ErrorDocument 404 /404.htm
ErrorDocument 403 /403.htm
#RedirectMatch permanent ^/somedir/?$ http://www.domain.com/
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteBase /
@alexrinass
alexrinass / print.css
Created May 7, 2011 11:34
CSS templates
@CHARSET "UTF-8";
body {
font: normal 1em/1.25em times new roman,arial,helvetica,sans-serif;
color: black;
background-color: white;
}
a {
color: #666;