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 | |
# Script to upload MBOX file to Gmail IMAP | |
# note: this script requires the python GMail IMAP Upload script, "imap_upload.py" | |
if [ $# -eq 1 ] || [ $# -eq 2 ]; then | |
# for convenience, assume one GMail user/passwd if no. of command | |
# line arguments = 1 or 2 | |
[email protected] | |
PASSWD=somePassword |
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 [ $# -lt 1 ]; then | |
echo "Usage: $0 FILENAME" | |
exit 1 | |
fi | |
# 1) convert file to unix line endings | |
# 2) converts tab characters to 4 spaces | |
# 3) collapse multi-line c-style comments, then strip them from source |
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
# Strip C comments | |
# by Stewart Ravenhall <[email protected]> -- 4 October 2000 | |
# Un-Korn-ized by Paolo Bonzini <[email protected]> -- 24 November 2000 | |
# Strip everything between /* and */ inclusive | |
# Copes with multi-line comments, | |
# disassociated end comment symbols, | |
# disassociated start comment symbols, | |
# multiple comments per line |
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 | |
for FILE in $(find . -type f -regex '.*\.rar$'); do | |
mv $FILE . | |
done |
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 | |
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ | |
--user-agent="Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10" \ | |
> /dev/null 2>&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
#!/bin/bash | |
/Applications/Firefox.app/Contents/MacOS/firefox-bin -ProfileManager > /dev/null 2>&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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/ext-core/3.1.0/ext-core.js"></script> | |
<script> | |
Ext.onReady(function() { | |
Ext.get("wrapper").on({ | |
drop: function(e) { | |
e.preventDefault(); | |
var dt = e.browserEvent.dataTransfer, |
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
// ExpressJS - Hello World! example | |
var express = require('express'), | |
app = express.createServer(); | |
app.get('/', function(req, res) { | |
res.redirect('/hello/world'); | |
}); | |
app.get('/hello/world', function(req, res) { | |
res.send('Hello World'); |
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 | |
RUBY_HEAD=1.9.3 | |
# ------- NOTE: RUN THE rvm-installer.sh SCRIPT FIRST ------- | |
# notes: | |
# - --with-gcc=clang required for OSX Lion | |
# - readline required to fix forward-delete in irb (see http://anthonymcook.com/post/9304734590/get-the-delete-key-working-in-irb-on-osx-with-two-lines) | |
rvm install $RUBY_HEAD --with-gcc=clang --with-readline-dir=`brew --prefix readline` |
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
SingTel: | |
Telephone No: *99# | |
APN = internet | |
username = <leave blank> | |
password = <leave blank> | |
(OR) | |
username = 65IDEAS | |
password = ideas | |
OlderNewer