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
[repositories] | |
bintray-sbt-plugin-releases: http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] |
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
### Keybase proof | |
I hereby claim: | |
* I am rubbish on github. | |
* I am rubbish (https://keybase.io/rubbish) on keybase. | |
* I have a public key whose fingerprint is C7BC CE2D 93E3 0D76 C0DD D7D2 7E5C 9BF6 C8F5 5752 | |
To claim this, I am signing this object: |
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
#!/bin/sh | |
for dir in `find . -maxdepth 2 -name '.git' -type d`; do | |
echo $dir | |
git --git-dir=$dir --work-tree=$dir/.. "$@" | |
done |
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
#!/bin/sh | |
for dir in `find . -maxdepth 2 -name '.git' -type d`; do | |
echo $dir | |
git --git-dir=$dir "$@" | |
done |
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
#!/bin/sh | |
set -e | |
for i in `seq 10`; do | |
echo "-----------" | |
sbt "test" | |
done |
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
(defvar curl-history nil) | |
(defun curl () | |
(interactive) | |
(mine-command-line-tool "curl" curl-history 'curl-history)) |
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
(defun mine-command-line-tool (command &optional history history-symbol) | |
(let* ((rest-of-command (read-from-minibuffer (concat command " ") (car history) nil nil history-symbol)) | |
(command-with-args (append (split-string command) (split-string rest-of-command))) | |
(args (cdr command-with-args)) | |
(command (car command-with-args)) | |
(name (mapconcat 'identity command-with-args " ")) | |
(buffer-name (concat "*" name "*")) | |
(buffer (get-buffer-create buffer-name))) | |
(switch-to-buffer buffer) | |
(apply 'make-comint-in-buffer name buffer command nil args))) |
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
(defun mine-set-sbt-keys-if-possible () | |
(if (sbt:find-root) | |
(progn | |
(local-set-key (kbd "C-c s s") 'mine-sbt-switch) | |
(local-set-key (kbd "C-c s c") 'mine-sbt-compile) | |
(local-set-key (kbd "C-c s k") 'mine-sbt-console) | |
(local-set-key (kbd "C-c s l") 'mine-sbt-last) | |
(local-set-key (kbd "C-c s r") 'mine-sbt-run) | |
(local-set-key (kbd "C-c s t") 'mine-sbt-test) | |
(local-set-key (kbd "C-c s o") 'mine-sbt-test-only-current-test) |
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
#!/bin/bash | |
echo -n "before: " | |
boot2docker ssh date | |
boot2docker ssh sudo ntpclient -s -h pool.ntp.org | |
echo -n "after: " | |
boot2docker ssh date |
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
#!/bin/sh | |
# Cleanup docker files: untagged containers and images. | |
# | |
# Use `docker-cleanup -n` for a dry run to see what would be deleted. | |
# adapted from https://github.com/blueyed/dotfiles/blob/master/usr/bin/docker-cleanup | |
# NOTE: i had to change the xargs | |
untagged_containers() { | |
# Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1. |