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
require 'formula' | |
class GfortranPkgDownloadStrategy <CurlDownloadStrategy | |
def stage | |
# The 4.2.4 compiler is distributed as a OS X 10.5 | |
# package- a single flat xar archive instead of a | |
# bundle. | |
safe_system "/usr/bin/xar -xf #{@tarball_path}" | |
chdir |
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
#!/usr/bin/env python | |
import getpass | |
import urllib, urllib2 | |
import base64 | |
import json | |
import time | |
def fetch(uri, username='', password='', data=None): |
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
import java.io.IOException; | |
import java.util.List; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import junit.framework.TestCase; | |
import com.basho.riak.client.IRiakObject; | |
import com.basho.riak.client.builders.RiakObjectBuilder; |
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
# Run this from trunk/client | |
# to run mirth standalone, without having to do any strange | |
# webstart foo | |
SERVER_EXT=dist/extensions | |
java -cp dist/mirth-client.jar:lib/mirth-client-core.jar:lib/dicom-shared.jar:lib/file-shared.jar:lib/jdbc-shared.jar:lib/js-shared.jar:lib/smtp-shared.jar:lib/vm-shared.jar:lib/doc-shared.jar:lib/http-shared.jar:lib/jms-shared.jar:lib/mllp-shared.jar:lib/tcp-shared.jar:lib/ws-shared.jar:lib/mirth-crypto.jar:lib/mirth-vocab.jar:lib/bcprov-jdk16-144.jar:lib/commons-codec-1.5.jar:lib/commons-collections-3.2.1.jar:lib/commons-httpclient-3.0.1.jar:lib/commons-io-2.1.jar:lib/commons-lang-2.6.jar:lib/commons-logging-1.1.1.jar:lib/databinding-0.8.0.jar:lib/hapi-1.1.jar:lib/l2fprod-common-sheet.jar:lib/log4j-1.2.15.jar:lib/looks-2.3.1.jar:lib/not-yet-commons-ssl-0.3.11.jar:lib/rhino-1.7r3pre.jar:lib/swingx-1.6.jar:lib/wizard.jar:lib/xercesImpl-2.9.1.jar:lib/xpp3_min-1.1.4c.jar:lib/xstream-1.3.jar:$SERVER_EXT/vm/vm-client.jar:$SERVER_EXT/smtp/smtp-client.jar:$SERVER_EXT/rulebuilder/rulebu |
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
require 'riak' | |
client = Riak::Client.new(:protocol => 'pbc') | |
map_phase = <<-EOF | |
function(v) { | |
var m = v.values[0].data.toLowerCase().match(/\\w*/g); | |
var r = []; | |
for(var i in m) { | |
if(m[i] != '') { | |
var o = {}; |
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
# Passing a list of files to mHealth | |
for i in `find . -name "*.hl7"` | |
do | |
curl -X PUT -H "Content-Type: application/octet-stream" -i 'http://localhost:9292/v2/health/data/hl7?oauth_token=4b5f64eb-0679-4521-97be-a705fd2615c0' --data-binary @$i | |
done | |
# rename extension for files in current (and all sub) directories. | |
for i in `find . -name "*.txt"` | |
do | |
mv "$i" "${i%.txt}.hl7" |
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
public class Triangle { | |
private int a, b, c; | |
public Triangle( int a, int b, int c ) { | |
this.a = a; | |
this.b = b; | |
this.c = c; |
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
2012-03-06 11:09:24 =ERROR REPORT==== | |
Error loading "erlang_js_drv": "dlopen(/Users/randy/dev/views/riak/dev/dev1/lib/erlang_js-1.0.1/priv/erlang_js_drv.so, 2): Symbol not found: _begin_request\n Referenced from: /Users/randy/dev/views/riak/dev/dev1/lib/erlang_js-1.0.1/priv/erlang_js_drv.so\n Expected in: flat namespace\n in /Users/randy/dev/views/riak/dev/dev1/lib/erlang_js-1.0.1/priv/erlang_js_drv.so" | |
2012-03-06 11:09:24 =CRASH REPORT==== | |
crasher: | |
initial call: supervisor:erlang_js_sup/1 | |
pid: <0.243.0> | |
registered_name: erlang_js_sup | |
exception exit: {bad_return_value,{error,{load_error,"Failed to load spidermonkey_drv.so"}}} | |
in function gen_server:init_it/6 | |
in call from proc_lib:init_p_do_apply/3 |
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
cc -o prlink.o -c -m32 -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../pr/include -I../../../pr/include/private -I/Developer/Headers/FlatCarbon prlink.c | |
prlink.c:48:27: error: CodeFragments.h: No such file or directory | |
prlink.c:49:23: error: TextUtils.h: No such file or directory | |
prlink.c:50:19: error: Types.h: No such file or directory | |
prlink.c:51:21: error: Aliases.h: No such file or directory | |
prlink.c:52:19: error: CFURL.h: No such file or directory | |
prlink.c:53:22: error: CFBundle.h: No such file or directory | |
prlink.c:54:22: error: CFString.h: No such file or directory | |
prlink.c:55:26: error: CFDictionary.h: No such file or directory | |
prlink.c:56:20: error: CFData.h: No such file or directory |
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
root@server-55:/srv/api/current# curl 'http://<redacted>:8098/stats' | python -mjson.tool | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
102 3284 102 3284 0 0 23144 0 --:--:-- --:--:-- --:--:-- 24147 | |
{ | |
"basho_metrics_version": "1.0.0", | |
"basho_stats_version": "1.0.1", | |
"bitcask_version": "1.3.0", | |
"cluster_info_version": "1.2.0", | |
"connected_nodes": [ |
OlderNewer