Skip to content

Instantly share code, notes, and snippets.

View arnaudsj's full-sized avatar

Sébastien Arnaud arnaudsj

View GitHub Profile
on run
getBitLyURL()
end run
on getBitLyURL()
set BitLyLogin to "bitlyapidemo"
set BitLyApiKey to "R_0da49e0a9118ff35f52f629d2d71bf07"
tell application "Camino"
set bkmkTab to current tab of front browser window
arnaudsj@andromeda ~/mysql-5.0.77/sql-bench
21:19:38 $ ./run-all-tests
Benchmark DBD suite: 2.15
Date of test: 2009-04-05 21:19:44
Running tests on: Linux 2.6.28-ARCH x86_64
Arguments:
Comments:
Limits from:
Server version: MySQL 5.0.77/
Optimization: None
pkgname=rabbitmq
pkgver=1.5.4
pkgrel=0
pkgdesc="Highly reliable and performant enterprise messaging implementation of AMQP written in Erlang/OTP"
arch=(i686 x86_64)
url="http://rabbitmq.com"
license=('MPL')
depends=(erlang)
source="http://www.rabbitmq.com/releases/${pkgname}-server/v${pkgver}/${pkgname}-server-generic-unix-${pkgver}.tar.gz"
install=rabbitmq.install
-module(date_util).
-compile(export_all).
epoch() ->
now_to_seconds(now())
.
epoch_hires() ->
now_to_seconds_hires(now())
.
# Bash ~/.profile extract to display current git branch
# For Example:
# [email protected] ~/Development/MyProject
# 10:17:39 ^master $
function parse_git_branch
{
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
# (Prerequesite) Install soaplib by running: easy_install soaplib
from soaplib.client import make_service_client
from soaplib.wsgi_soap import SimpleWSGISoapApp
from soaplib.service import soapmethod
from soaplib.serializers.primitive import String, Integer, Array
class JiraSOAPService(SimpleWSGISoapApp):
@soapmethod(String, String, _outVariableName="loginReturn", _returns=String)
def login(self,username,password):
1) Install MongoDB and launch it:
21:44:59 ^ $ /opt/local/bin/mongod --dbpath=/opt/mongo-data/
Wed Aug 19 21:45:10 Mongo DB : starting : pid = 6578 port = 27017 dbpath = /opt/mongo-data/ master = 0 slave = 0 32-bit
** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data
** see http://blog.mongodb.org/post/137788967/32-bit-limitations for more
Wed Aug 19 21:45:10 db version v0.9.8, pdfile version 4.4
Wed Aug 19 21:45:10 git version: nogitversion
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness
<?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>Label</key>
<string>org.mongodb.mongod</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/mongod</string>
# coding=utf-8
# Google async translate demo using Tornado
# Author: Sébastien Arnaud ([email protected])
# License: Creative Commons Attribution-Share Alike 3.0 United States License (http://creativecommons.org/licenses/by-sa/3.0/us).
import tornado.httpclient as httpclient
import tornado.ioloop as ioloop
import urllib
import simplejson as json