Skip to content

Instantly share code, notes, and snippets.

View roderik's full-sized avatar

Roderik van der Veer roderik

View GitHub Profile
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
#export GIT_PS1_SHOWDIRTYSTATE=true
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
#/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
#!/bin/bash
COL_NORM="$(tput sgr0)"
COL_RED="$(tput setaf 1)$(tput bold)"
COL_GREEN="$(tput setaf 2)$(tput bold)"
if [ -z "$1" ]
then
echo "${COL_RED}No branch defined${COL_NORM}"
echo "Usage: git publish [branch]"
#!/bin/bash
rhost=$1
shift
port=$1
if [ "$port" == "" ]; then
pstring="ssh $rhost"
else
pstring="ssh $rhost -p $port"
[pack]
threads = 0
[color]
ui = auto
[apply]
whitespace = nowarn
[alias]
cp = cherry-pick
co = checkout
ci = commit
kern.sysv.shmmax=524288000
kern.sysv.shmseg=16
kern.sysv.shmall=131072000
kern.maxprocperuid=1024
net.inet.tcp.mssdflt=1460
net.inet.tcp.sendspace=262144
net.inet.tcp.recvspace=262144
net.inet.udp.recvspace=74848
net.inet.udp.maxdgram=65535
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<templates>
<template autoinsert="false" context="java" deleted="false" description="FileField" enabled="true" name="ff"> {
FileField ff = new FileField(this, ${var});
addField(ff, true);
}
</template>
<template autoinsert="true" context="java" deleted="false" description="Getter and Setter for FileField" enabled="true" name="gsff"> public void set${field}(File file) {
getFieldAt(${var}, FileField.class).setValue(file);
}
echo 'export PATH="/opt/local/bin:$PATH"' >> /etc/bashrc
export PATH="/opt/local/bin:$PATH"
port -v selfupdate
port upgrade outdated
if [ ! -f /opt/local/bin/gist.sh ]; then
/opt/local/bin/curl http://github.com/gmarik/gist.sh/raw/master/gist.sh > gist.sh
mv gist.sh /opt/local/bin/
chmod a+x /opt/local/bin/gist.sh
fi
port install bash-completion git-core
echo '
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion