Skip to content

Instantly share code, notes, and snippets.

/*
ASCIIMathML.js
==============
This file contains JavaScript functions to convert ASCII math notation
and LaTeX to Presentation MathML. Simple graphics commands are also
translated to SVG images. The conversion is done while the (X)HTML
page loads, and should work with Firefox/Mozilla/Netscape 7+ and Internet
Explorer 6/7 + MathPlayer (http://www.dessci.com/en/products/mathplayer/) +
Adobe SVGview 3.03 (http://www.adobe.com/svg/viewer/install/).
cap production invoke COMMAND="zcat current/log/production.log-20090303.gz | grep somestring"
rsync -avz --delete --delete-excluded --progress --exclude=/trashbox --exclude=Thumbs.db --exclude=.DS_Store --link-dest=/mnt/usbdisk1/2009-07-28/ /mnt/array1/Shared/ /mnt/usbdisk1/2009-07-30/
env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
# Works with Integrity version's >= 0.2.0 and < 0.2.9
desc "Will build the latest commit for any git project that has already been built and the latest commit has not already been built"
task :build_new_commits do
require "init"
Integrity.log("Checking for new commits at #{Time.now}")
Integrity::Project.all.each do |project|
# Don't build if project is just being set up, or a build of 'HEAD' is already outstanding or the latest commit has already
# been built.
unless project.blank? ||
#!/bin/sh
#
# An example hook script for the "post-receive" event.
#
# The "post-receive" script is run after receive-pack has accepted a pack
# and the repository has been updated. It is passed arguments in through
# stdin in the form
# <oldrev> <newrev> <refname>
# For example:
# aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
@mocoso
mocoso / .gitignore
Created August 12, 2010 05:26
Download sales from RomanCart
data.csv
config.yml
@mocoso
mocoso / My Vibrant Ink.thTheme
Created September 23, 2010 08:55
My Vibrant Ink Textmate Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Vibrant Ink</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@mocoso
mocoso / after_use
Created February 17, 2011 08:55
Save this to ~/.rvm/hooks/ to tweak the GC (reducing the number of times it runs) for REE under RVM
echo "RVM - using $rvm_ruby_string"
case "$rvm_ruby_string" in
ree*)
export RUBY_GC_MALLOC_LIMIT=50000000
export RUBY_HEAP_MIN_SLOTS=1250000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_HEAP_SLOTS_INCREMENT=500000
echo "Garbage collection tweaked"
;;
@mocoso
mocoso / default.rb
Created July 8, 2011 14:14
Audit recipe to keep an eye on EngineYard's cloud updates
# If you use EngineYard cloud you will be aware that they change their 'main'
# recipes on a regular basis and that EngineYard provide no information about
# what they have changed.
#
# This can make it difficult to keep your application's environment stable.
#
# Add a personalised version of this recipe to your custom recipes and your
# custom recipes will fail if EngineYard have changed the versions of (or removed)
# any of software you've told your audit recipe to check.
#