This file contains hidden or 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
| app = node[:rails][:app] | |
| rails_base app[:name] do | |
| ruby_ver app[:ruby_ver] | |
| gemset app[:gemset] | |
| end | |
| %w{config log pids cached-copy bundle system}.each do |dir| | |
| directory "#{app[:app_root]}/shared/#{dir}" do | |
| owner app[:deploy_user] |
This file contains hidden or 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 final class ResultFuture implements Future<Result> { | |
| private final CountDownLatch latch = new CountDownLatch(1); | |
| private Result value; | |
| @Override | |
| public boolean cancel(boolean mayInterruptIfRunning) { | |
| return false; | |
| } | |
| @Override |
This file contains hidden or 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
| http://n3t.awardspace.us/content/tcpdump-url-extraction | |
| #!/bin/bash | |
| # | |
| # reset variables | |
| myhost=""; | |
| myurl=""; | |
| tcpdump -s 0 -w - -l $@ | strings | |
This file contains hidden or 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
| module Main where | |
| import Prelude hiding (mapM_) | |
| import Control.Concurrent (forkIO) | |
| import Control.Concurrent.STM (STM,atomically) | |
| import Control.Concurrent.STM.TQueue | |
| ( TQueue | |
| , newTQueue | |
| , readTQueue | |
| , writeTQueue ) |
This file contains hidden or 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
| sudo apt-get install -y bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev | |
| curl ftp://ftp.nominum.com/pub/nominum/dnsperf/2.0.0.0/dnsperf-src-2.0.0.0-1.tar.gz -O | |
| tar xfvz dnsperf-src-2.0.0.0-1.tar.gz | |
| cd dnsperf-src-2.0.0.0-1 | |
| ./configure | |
| make | |
| sudo make install |