Skip to content

Instantly share code, notes, and snippets.

@celeduc
celeduc / keybase.md
Created August 11, 2015 08:17
keybase.md

Keybase proof

I hereby claim:

  • I am celeduc on github.
  • I am celeduc (https://keybase.io/celeduc) on keybase.
  • I have a public key whose fingerprint is 7D40 DDE6 C41F DAE3 D83D 4A3F A24D 5549 9422 A0EA

To claim this, I am signing this object:

@celeduc
celeduc / environment.sh
Created March 14, 2011 18:46
Using JRuby, put data into HBase and pull it back out, using HBase 0.20
export JRUBY_CLASSPATH="/usr/share/maven-repo/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/usr/share/maven-repo/log4j/log4j/1.2.15/log4j-1.2.15.jar"
export HADOOP_CLASSPATH="/src/taproot/server/lib/InvPocTransform.jar:/usr/lib/hadoop-0.20/hadoop-core.jar:/usr/lib/hbase/hbase.jar:/usr/lib/hbase/lib/zookeeper.jar:/usr/lib/hbase/lib/guava-r05.jar:$HADOOP_CLASSPATH"
@celeduc
celeduc / gist:3720716
Created September 14, 2012 08:19
chef-jenkins crapout
. I tried both RightImage_Ubuntu_10.04_x64_v5.7 and RightImage_Ubuntu_10.04_i386_v5.7, and both of them hang while doing post-installation configuration of Jenkins. I'm not sure what it's hung up on, and not sure where to look.
3327 ? S 0:00 apt-get -q -y install jenkins=1.481
3520 ? S 0:00 /usr/bin/dpkg --status-fd 76 --configure daemon jenkins
3523 ? S 0:00 /bin/sh /var/lib/dpkg/info/jenkins.postinst configure
/var/log/install:
I, [2012-09-14T07:39:41.760781 #980] INFO -- : 07:39:41: Setting up jenkins (1.481) ...
I, [2012-09-14T07:39:41.760840 #980] INFO -- : 07:39:41: * Starting Jenkins Continuous Integration Server jenkins
I, [2012-09-14T07:39:41.774541 #980] INFO -- : SEND b1 [push v15] (999 bytes) <70399240001:7be735a0dc52a58d105b2422aac9bbf6> /auditor/update_entry, persistent
@celeduc
celeduc / bitcoin-setup.sh
Created May 19, 2011 02:16
Bitcoin setup for Ubuntu 10.10 / 11.04
#!/bin/bash
sudo apt-get install python-pyopencl subversion
wget http://iweb.dl.sourceforge.net/project/bitcoin/Bitcoin/bitcoin-0.3.21/bitcoin-0.3.21-linux.tar.gz
tar xvf bitcoin-0.3.21-linux.tar.gz
svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
cd python-jsonrpc/
sudo python setup.py install
cd ..
wget --no-check-certificate https://github.com/m0mchil/poclbm/raw/master/BitcoinMiner.cl
wget --no-check-certificate https://github.com/m0mchil/poclbm/raw/master/BitcoinMiner.py
#!/bin/bash
cd ~/ruby-build
git fetch ; git pull origin master
sudo ./install.sh
cd ~
rbenv install 1.9.3-p374
rbenv global 1.9.3-p374
rbenv exec gem update --system
gem install rails
rbenv rehash
@celeduc
celeduc / gist:5364870
Created April 11, 2013 16:25
Github sync fails on JIRA OnDemand
Sync Failed: There was a SQL exception thrown by the Active Objects library: Database: - name:PostgreSQL - version:8.4.8 - minor version:4 - major version:8 Driver: - name:PostgreSQL Native Driver - version:PostgreSQL 8.4 JDBC4 (build 702) org.postgresql.util.PSQLException: The column name * was not found in this ResultSet.
I1012 10:36:36.552116 core/blockchain.go:975] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 22.407825ms. #2425548 [663c7c14 / 663c7c14]
unexpected fault address 0x204979bc00
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0x204979bc00 pc=0x406fafb]
goroutine 2932477 [running]:
runtime.throw(0x48ecf4b, 0x5)
/usr/local/Cellar/go/1.7.1/libexec/src/runtime/panic.go:566 +0x95 fp=0xc52ec0afe0 sp=0xc52ec0afc0
runtime.sigpanic()
/usr/local/Cellar/go/1.7.1/libexec/src/runtime/sigpanic_unix.go:27 +0x288 fp=0xc52ec0b038 sp=0xc52ec0afe0
Verifying that "celeduc.id" is my Blockstack ID. https://onename.com/celeduc
@celeduc
celeduc / kovan-faucet
Created November 28, 2017 16:49
kovan-faucet
0x00C8Bc664147389328Cb56f0b1EDc391c591191f
@celeduc
celeduc / debug.js
Created December 8, 2017 14:44
How to watch a solidity event
// a bonded verifier should be able to publish a verification
it('should let a bonded verifier publish a verification', async function(){
var debugEvent = verifierDb.Debug();
debugEvent.watch((err, e) => {
console.log('verifierRegistry.address:');
console.log(verifierRegistry.address);
console.log('verifier.address:');
console.log(verifier.address);
console.log('verifier1:');