Skip to content

Instantly share code, notes, and snippets.

View roderik's full-sized avatar

Roderik van der Veer roderik

View GitHub Profile
set newline to ASCII character 10
tell application "Mail"
using terms from application "Mail"
set _imap_accts to every imap account
set _count to 0
repeat with _acct in _imap_accts
try
set _flagbox to mailbox "[Gmail]/Starred" of _acct
set _count to _count + (count messages of _flagbox)
*/5 * * * * osascript ~/Library/Scripts/Applications/Mail/AutoStarredMailToThings.scpt
-webkit-background-clip: padding-box;
@roderik
roderik / bashrc
Created November 10, 2010 10:03
OSX bashrc file for kDeploy install
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
## editor
if [ -f /usr/local/bin/mate ]; then
export EDITOR='mate'
export GIT_EDITOR='mate -wl1'
fi
@roderik
roderik / apc.ini
Created November 10, 2010 12:52
php.ini apc
[apc]
extension="/usr/local/Cellar/apc/3.1.4/apc.so"
apc.enabled=1
apc.shm_segments=1
apc.shm_size=64
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
@roderik
roderik / tomcat.conf
Created November 10, 2010 16:34
tomcat.conf
export DISPLAY=:2
export JAVA_OPTS="-server -Xmx512m -XX:+AggressiveHeap -Djava.awt.headless=true"
@roderik
roderik / httpd.conf
Created November 10, 2010 16:41
httpdconf
<IfModule jk_module>
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /tmp/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat "%w %V %T"
</IfModule>
Include /etc/apache2/conf/projects.d/namevirtualhosts
Include /etc/apache2/conf/projects.d/[^.#]*.conf
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the
# PostgreSQL documentation for a complete description
# of this file. A short synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The '=' is optional.) White space may be used. Comments are introduced
# with '#' anywhere on a line. The complete list of option names and
@roderik
roderik / gist:766053
Created January 5, 2011 08:22
Crash Log Sparrow
Process: Sparrow [5172]
Path: /Applications/Sparrow.app/Contents/MacOS/Sparrow
Identifier: com.sparrowmailapp.sparrow
Version: 1.0beta7 (456)
Code Type: X86-64 (Native)
Parent Process: launchd [153]
Date/Time: 2011-01-05 09:22:14.750 +0100
OS Version: Mac OS X 10.6.5 (10H574)
Report Version: 6