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 | |
[ -z "$1" ] && ( | |
echo "usage: " | |
echo " eclair-cli help" | |
) && exit 1 | |
URL="http://localhost:8080" | |
CURL_OPTS="-sS -X POST -H \"Content-Type: application/json\"" |
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
eclair.bitcoind.rpcport=8332 | |
eclair.bitcoind.rpcuser = "bitcoinrpc" | |
eclair.bitcoind.rpcpassword = "XXXXX" |
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
package fr.acinq.protos | |
import java.io.{BufferedWriter, File, FileWriter} | |
import akka.actor.{Actor, ActorLogging, ActorRef, ActorSystem, LoggingFSM, Props, Stash} | |
// @formatter:off | |
sealed trait NewState | |
sealed trait NewData |
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
val start = Platform.currentTime | |
Await.result(expensiveCall(), timeout) | |
val duration = Platform.currentTime - start | |
val start = Platform.currentTime | |
val future = expensiveCall() | |
future.onComplete { | |
case Success(s) => { | |
val duration = Platform.currentTime - start | |
... |
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
val start = Platform.currentTime | |
val future = ... | |
future.onComplete { | |
case Success(s) => { | |
val duration = Platform.currentTime - start | |
... | |
} | |
case Failure(t) => ... | |
} |
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
zselect * from balhc where toto = '10001365268' | |
select * from balhc where toto = '1,00014E+11' | |
select * from balhc where toto = '1,00015E+11' | |
select * from balhc where toto = '1,00016E+11' | |
select * from balhc where toto = '1,00016E+11' | |
select * from balhc where toto = '1,00016E+11' | |
select * from balhc where toto = '1,00016E+11' | |
select * from balhc where toto = '1,00017E+11' | |
select * from balhc where toto = '1,00017E+11' | |
select * from balhc where toto = '1,00018E+11' |
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
package com.mfglabs.jclouds | |
import org.jclouds.compute.ComputeServiceContext | |
import scala.collection.JavaConversions._ | |
import org.jclouds.logging.slf4j.config.SLF4JLoggingModule | |
import org.jclouds.ContextBuilder | |
import org.jclouds.ec2.domain.InstanceType | |
import org.jclouds.predicates.{InetSocketAddressConnect, RetryablePredicate} | |
import java.util.concurrent.TimeUnit | |
import com.google.common.net.HostAndPort |
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
package contrib.curator; | |
import com.netflix.curator.framework.CuratorFramework; | |
import com.netflix.curator.framework.CuratorFrameworkFactory; | |
import com.netflix.curator.retry.ExponentialBackoffRetry; | |
import com.netflix.curator.test.TestingServer; | |
import org.apache.zookeeper.KeeperException; | |
import org.apache.zookeeper.data.Stat; | |
import java.io.IOException; |
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
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 10/13/2011 | |
#################################### | |
sudo apt-get update | |
sudo apt-get upgrade |