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 org.apache.curator.framework.CuratorFramework; | |
import org.apache.curator.framework.CuratorFrameworkFactory; | |
import org.apache.curator.framework.recipes.locks.InterProcessLock; | |
import org.apache.curator.framework.recipes.locks.InterProcessMutex; | |
import org.apache.curator.retry.ExponentialBackoffRetry; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
public class MutexExample { |
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
$ brew upgrade -v | |
==> Upgrading 2 outdated packages, with result: | |
serf 1.2.1, subversion 1.7.10 | |
==> Upgrading serf | |
==> Downloading http://serf.googlecode.com/files/serf-1.2.1.tar.bz2 | |
Already downloaded: /Library/Caches/Homebrew/serf-1.2.1.tar.bz2 | |
tar xf /Library/Caches/Homebrew/serf-1.2.1.tar.bz2 | |
==> ./configure --prefix=/usr/local/Cellar/serf/1.2.1 --with-apr=/usr/local/Library/ENV/4.3 | |
./configure --prefix=/usr/local/Cellar/serf/1.2.1 --with-apr=/usr/local/Library/ENV/4.3 | |
checking for chosen layout... Serf |
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
# User specific environment and startup programs | |
export PATH=$HOME/bin:$PATH | |
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH | |
export VIRTUAL_ENV_DISABLE_PROMPT=1 | |
source $HOME/.python-venv/bin/activate |