Skip to content

Instantly share code, notes, and snippets.

:account_a:
:access_key_id: ASDFASDFASDFASDF
:secret_access_key: ASFDSADFSADFSADFASDFSADFSAFD
:account_number: 1234-5678-1235
:account_b:
:access_key: WERWERWEREWREWRWER
:secret_access_key: WERWERWERWERWEREWRWERWERWERWER
:account_number: 1234-5678-1234
@tobias
tobias / setjdk.fish
Created July 12, 2016 18:16
Manage multiple java versions on the mac from the fish shell
function setjdk
if test -n "$JAVA_HOME"
removeFromPath "$JAVA_HOME/bin"
end
set -gx JAVA_HOME (/usr/libexec/java_home -v $argv[1])
set -gx PATH $JAVA_HOME/bin $PATH
end
function removeFromPath
set -l idx 0
function setjdk
if test -n "$JAVA_HOME"
removeFromPath "$JAVA_HOME/bin"
end
set -gx JAVA_HOME (/usr/libexec/java_home -v $argv[1])
set -gx PATH $JAVA_HOME/bin $PATH
end
function removeFromPath
set -l idx 0

Keybase proof

I hereby claim:

  • I am tobias on github.
  • I am tcrawley (https://keybase.io/tcrawley) on keybase.
  • I have a public key ASDupOY7qhHcioTxXIDWId68H5yc3u4hsM_5iR2ILjsYGwo

To claim this, I am signing this object:

;; org-weekpage.el --- Org-Mode Week Page.
;;
;; Based on https://github.com/almost/org-daypage by Thomas Parslow
;;; License
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
@tobias
tobias / run_tags.rb
Created January 1, 2009 16:44
A script for generating TAGS from a git hook.
#!/usr/bin/ruby
#-*-ruby-*-
# A script to run ctags on all .rb files in a project. Can be run on
# the current dir, called from a git callback, or install itself as a
# git post-merge and post-commit callback.
CTAGS = '/opt/local/bin/ctags'
HOOKS = %w{ post-merge post-commit post-checkout }
HOOKS_DIR = '.git/hooks'
#!/bin/bash
if [ "$1" == "-q" ]; then
shift
OUT=/dev/null
else
OUT=/dev/stdout
fi
find -L . -name "*.jar" -type f | while read i; do

Keybase proof

I hereby claim:

  • I am tobias on github.
  • I am tcrawley (https://keybase.io/tcrawley) on keybase.
  • I have a public key ASDu3mzOo73cjPGSd9K5vTWXoin6GibLf3hdokWBMDajpgo

To claim this, I am signing this object:

(define-key erc-mode-map (kbd "C-c m")
(lambda (nick)
(interactive (list (completing-read "Say 'morning!' to nick: " erc-channel-users)))
(erc-send-message (format "%s: morning!" nick))))
Server Port: 8097
Requests per second: 50152.41 [#/sec] (mean)
Server Port: 8097
Requests per second: 50727.22 [#/sec] (mean)
Server Port: 8097
Requests per second: 50621.04 [#/sec] (mean)
Server Port: 8097
Requests per second: 50338.69 [#/sec] (mean)
===============================================