This file contains 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 | |
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]" |
This file contains 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 | |
rhost=$1 | |
shift | |
port=$1 | |
if [ "$port" == "" ]; then | |
pstring="ssh $rhost" | |
else | |
pstring="ssh $rhost -p $port" |
This file contains 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 | |
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 |
This file contains 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
[pack] | |
threads = 0 | |
[color] | |
ui = auto | |
[apply] | |
whitespace = nowarn | |
[alias] | |
cp = cherry-pick | |
co = checkout | |
ci = commit |
This file contains 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
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 |
This file contains 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" 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); | |
} |
This file contains 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
echo 'export PATH="/opt/local/bin:$PATH"' >> /etc/bashrc | |
export PATH="/opt/local/bin:$PATH" | |
port -v selfupdate | |
port upgrade outdated |
This file contains 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
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 |
This file contains 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
<?php | |
include('hkit.class.php'); | |
$hKit = new hKit; | |
$result = $hKit->getByURL('hcard', 'http://microformats.org/'); | |
?> |
This file contains 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
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 & ")" |