As configured in my dotfiles.
start new:
tmux
start new with session name:
require 'spec_helper' | |
describe Mongoid::Relations::Referenced::ManyToMany do | |
before(:all) do | |
Mongoid.raise_not_found_error = true | |
end | |
before do | |
[ |
#/usr/bin/env ruby | |
# encoding: utf-8 | |
APP_ROOT=File.expand_path('../../', __FILE__) | |
class Chain | |
def initialize(*procs) | |
@chain = procs | |
end |
import org.apache.lucene.analysis.core.WhitespaceAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field; | |
import org.apache.lucene.document.TextField; | |
import org.apache.lucene.index.*; | |
import org.apache.lucene.store.Directory; | |
import org.apache.lucene.store.RAMDirectory; | |
import org.apache.lucene.util.BytesRef; | |
import org.apache.lucene.util.Version; |
As configured in my dotfiles.
start new:
tmux
start new with session name:
2014-10-25 16:00:53 -0400 | |
./configure | |
--disable-debug | |
--disable-dependency-tracking | |
--prefix=/usr/local/Cellar/rtorrent/0.9.4_1 | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
/private/tmp/rtorrent-uS8ouH/rtorrent-0.9.4/missing: Unknown `--is-lightweight' option |
2014-12-05 12:38:36 -0500 | |
make | |
CMAKE_BUILD_TYPE=RelWithDebInfo | |
CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/neovim/HEAD" | |
install | |
mkdir -p .deps/build/third-party | |
cd .deps/build/third-party && \ | |
cmake -G 'Unix Makefiles' \ |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'bundler/setup' | |
require 'v8' | |
require 'libuv' | |
require 'pry' | |
# class Global |
# knife cheat | |
## Search Examples | |
knife search "name:ip*" | |
knife search "platform:ubuntu*" | |
knife search "platform:*" -a macaddress | |
knife search "platform:ubuntu*" -a uptime | |
knife search "platform:ubuntu*" -a virtualization.system | |
knife search "platform:ubuntu*" -a network.default_gateway |
/* | |
This class uses Solr 1.4 classes to load its schema.xml and run input text through the analyzers defined | |
in it. | |
*/ | |
public class SchemaTester { | |
public static void main(String[] args) { | |
try { | |
InputStream solrCfgIs = new FileInputStream( | |
"solr/conf/solrconfig.xml"); | |
SolrConfig solrConfig = new SolrConfig(null, solrCfgIs); |