Skip to content

Instantly share code, notes, and snippets.

View rainkinz's full-sized avatar
🏠
Working from home

Brendan Grainger rainkinz

🏠
Working from home
View GitHub Profile
@rainkinz
rainkinz / gist:4ee2fb626e96e803ec902d0d7e7e3ef4
Created January 28, 2019 16:50 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
sudo su -
# Kernels older than 3.10 lack some of the features required to run Docker containers.
uname -r
3.11.0-15-generic
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list
{
"indent" : {
"value": " ",
"ArrayExpression": 1,
"AssignmentExpression": 1,
"BinaryExpression": 1,
"ConditionalExpression": 1,
"CallExpression": 1,
"CatchClause": 1,
"ConditionalExpression": 1,
@rainkinz
rainkinz / SchemaTester.java
Created April 8, 2016 19:26 — forked from karthikshiraly/SchemaTester.java
Function testing for Solr 1.4 schema.xml
/*
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);
@rainkinz
rainkinz / knife cheat
Created December 21, 2015 21:27 — forked from ipedrazas/knife cheat
Hello!
# 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

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: