Skip to content

Instantly share code, notes, and snippets.

View roderik's full-sized avatar

Roderik van der Veer roderik

View GitHub Profile
#!/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"
#!/bin/bash
if [ "$1" == "" ]; then
echo "no project given. usage: update-project [projectname] [hostname]"
exit 1
fi
if [ "$2" == "" ]; then
echo "no hostname given. usage: update-project [projectname] [hostname]"
exit 1
[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
<?php
include('hkit.class.php');
$hKit = new hKit;
$result = $hKit->getByURL('hcard', 'http://microformats.org/');
?>
set newline to ASCII character 10
tell application "Mail"
using terms from application "Mail"
set selectedMails to selection
repeat with eachMessage in selectedMails
set the selected_message to item 1 of eachMessage
set message_id to urlencode(the message id of eachMessage) of me
set message_body to content of eachMessage
set theSubject to the subject of the eachMessage & " (From " & the sender of the eachMessage & ")"