Skip to content

Instantly share code, notes, and snippets.

@thanksdanny
thanksdanny / LC_CTYPE.txt
Created December 27, 2016 07:46 — forked from jampajeen/LC_CTYPE.txt
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@justinholmes
justinholmes / disruptor.scala
Created September 21, 2012 21:19
Scala disruptor trade example into MongoDB and Project Voldemort
import com.lmax.disruptor.dsl.Disruptor
import java.util.concurrent.Executors
import com.lmax.disruptor._
import com.mongodb.casbah.Imports._
import voldemort.client._
object Main {
val bootstrapUrl = "tcp://localhost:6666"
val factory = new SocketStoreClientFactory(new ClientConfig().setBootstrapUrls(bootstrapUrl));
val client = factory.getStoreClient[String, String]("test");
@ajsutton
ajsutton / BackgroundLogger.java
Created September 26, 2011 20:13
Disruptor Example of Background Logging
import com.lmax.disruptor.RingBuffer;
import com.lmax.disruptor.dsl.Disruptor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class BackgroundLogger
{
private static final int ENTRIES = 64;