I hereby claim:
- I am mslinn on github.
- I am mslinn (https://keybase.io/mslinn) on keybase.
- I have a public key whose fingerprint is CC79 299A EEF3 9D71 065A E9C5 7106 2721 5DEA F0F0
To claim this, I am signing this object:
wget -O /opt/ https://github.com/takezoe/gitbucket/releases/download/1.12/gitbucket.war | |
java -jar /opt/gitbucket.war |
function parse_git_branch { | |
ref="$(git symbolic-ref HEAD 2> /dev/null)" || return | |
echo "("${ref#refs/heads/}")" | |
} | |
PS1=$'\033]0;\h: \W\007\[\033[0;32m\]\u@\h \W \[\033[0;33m\]$(parse_git_branch) \[\033[38;5;77m\]\u25B6\[\033[0m\]\[\033[00m\] ' |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
set -eo pipefail | |
HIGHLIGHT="\e[01;34m" | |
NORMAL='\e[00m' | |
if [ -z "$2" ]; then | |
echo "Usage: $(basename $0) dirPattern command" | |
echo " Where dirPattern can be an absolute or relative path. If wildcards are used, enclose the dirPattern in single quotes" |
#!/bin/bash | |
# From ScalaCourses.com Introduction to Play Framework with Scala course | |
# Execute a command in all git directories below current directory or specified directory | |
# Skips directories that contain a file called .ignore | |
# | |
# Usage: | |
# foreach . git pull | |
# foreach . git grep "word or phrase" |
#!/bin/bash | |
# From ScalaCourses.com Introduction to Play Framework with Scala course | |
if [ -z "$1" ]; then | |
echo "Clone an Activator template and initialize a Git repository for the new project" | |
echo "Usage: $(dirname $0) templateName [repoName]" | |
echo "repoName defaults to templateName if not specified" | |
exit -1 | |
fi |
object BlendedEnums extends App { | |
import Day._ | |
trait EnumLike[T] extends Ordered[T] { | |
def name: String | |
def compare(other: T): Int | |
def ordinal: Int |
#!/bin/bash | |
# Installs specified Scala version, and enables colorized REPL | |
SCALA_VERSION=2.11.4 | |
if [ "$1" ]; then SCALA_VERSION=$1; fi | |
set -e | |
case "$OSTYPE" in |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0' | |
} | |
} | |
allprojects { |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0' | |
} | |
} | |
allprojects { |