Skip to content

Instantly share code, notes, and snippets.

# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@mononite
mononite / jargrep.sh
Created August 6, 2013 06:36
A script which is used to find class or package by name from jar files.
#!/bin/bash
# usage: jargrep.sh <name> [path ...], name can be package name or class name
# example: jargrep.sh org.apache.commons, jargrep.sh TypeSafeMatcher ~/.m2
# The minimum size of a zip file is 22 bytes. http://en.wikipedia.org/wiki/Zip_(file_format)
if [ $# -lt 1 ]; then
echo "Usage: $0 name [path ...]";
exit 2;
fi
@mononite
mononite / init.gradle
Last active December 17, 2015 13:39
Create default directory layout for an empty project.
// $ gradle initLayout
// $ gradle initLayout -PapplyPlugins=java,groovy
projectsEvaluated {
rootProject.allprojects {
tasks.withType(Compile) {
options.compilerArgs << "-Xlint:unchecked"
}
if (!tasks.findByName('initLayout')) {
[Solarized Dark]
text(bold)=839496
magenta(bold)=6c71c4
text=839496
white(bold)=fdf6e3
green=859900
red(bold)=cb4b16
green(bold)=586e75
black(bold)=073642
red=dc322f