Skip to content

Instantly share code, notes, and snippets.

View brianm's full-sized avatar
Caffeinating

Brian McCallister brianm

Caffeinating
View GitHub Profile
hello world
function setjdk {
local ver=${1?Usage: setjdk <version>}
export JAVA_HOME=$(/usr/libexec/java_home -v $ver)
PATH=$(echo $PATH | tr ':' '\n' | grep -v Java | tr '\n' ':')
export PATH=$JAVA_HOME/bin:$PATH
}
function _setjdk_completion (){
COMPREPLY=()
package org.jdbi;
import com.google.common.collect.ImmutableList;
import org.junit.Rule;
import org.junit.Test;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

Keybase proof

I hereby claim:

  • I am brianm on github.
  • I am brianm (https://keybase.io/brianm) on keybase.
  • I have a public key whose fingerprint is 3301 F9BF BA1F 71AF 3D13 6273 68EB 8C76 F8EA 2967

To claim this, I am signing this object:

package com.example.testing;
import com.google.common.base.Preconditions;
import com.google.common.io.Files;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.startup.Tomcat;
import org.jboss.shrinkwrap.resolver.api.maven.Maven;
import org.junit.rules.ExternalResource;
import java.io.File;
function setjdk {
local ver=${1?Usage: setjdk <version>}
export JAVA_HOME=$(/usr/libexec/java_home -v $ver)
PATH=$(echo $PATH | tr ':' '\n' | grep -v Java | tr '\n' ':')
export PATH=$JAVA_HOME/bin:$PATH
}
function _setjdk_completion (){
package com.example;
public class Main
{
private static int foo = 1;
public static void main(String[] args) throws InterruptedException
{
new Thread(() -> foo = 2).start();
brianm@ufo:~$ dig -t mx therecordingroom.com
; <<>> DiG 9.4.1-P1 <<>> -t mx therecordingroom.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8077
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;therecordingroom.com. IN MX
package org.skife.jdbi.v2.sqlobject;
import junit.framework.TestCase;
import org.h2.jdbcx.JdbcDataSource;
import org.skife.jdbi.v2.DBI;
import org.skife.jdbi.v2.Handle;
import org.skife.jdbi.v2.SQLStatement;
import org.skife.jdbi.v2.Something;
import org.skife.jdbi.v2.sqlobject.customizers.RegisterMapper;
import org.skife.jdbi.v2.sqlobject.stringtemplate.UseStringTemplate3StatementLocator;
;; gist.el --- Emacs integration for gist.github.com
;; Copyright (C) 2008 Christian Neukirchen <purl.org/net/chneukirchen>
;; Copyright (C) 2008 Chris Wanstrath <chris@ozmm.org>
;; Copyright (C) 2008 Will Farrington <wcfarrington@gmail.com>
;; Licensed under the same terms as Emacs.
;; Version: 0.3.1
;; 26aug2008 +wfarr+
;; 25aug2008 +defunkt+
;; 21jul2008 +chris+