Public Gists by matthewmccullough

Gravatar
Wed Jul 15 08:36:50 -0700 2009
1
2
3
#!/bin/bash
#
# Provides a function that allows you to choose a JDK. Just set the environment
Gravatar
Tue Jul 07 23:46:18 -0700 2009
1
2
3
btrace {
templates {
// all methods within mydomain classes
Gravatar
Tue Jul 07 23:46:15 -0700 2009
1
2
3
import java.util.Map;
import static com.sun.btrace.BTraceUtils.*;
import com.sun.btrace.annotations.*;
gist: 94664 Maven settings.xml Mirror S...
Gravatar
Mon Apr 13 12:41:18 -0700 2009
1
2
3
  <mirrors>
    <mirror>
      <!--This is used to direct the public snapshots repo in the profile below over to a different nexus group -->
gist: 89195 Bookmarklet for Java SE 6 J...
Gravatar
Thu Apr 02 06:53:01 -0700 2009
1
2
3
same as http://pastie.org/434851 but with "I'm Feeling Lucky" so you skip the search results list.
 
javascript:void(q=prompt('Java%20class%20Name:',''));if(q)void(location.href='http://www.google.com/search?q='+escape(q)+'%20site%3Ajava.sun.com%2Fjavase%2F6%2Fdocs'+'&btnI=745')
gist: 89191 JavaDoc Search Bookmarklet
Gravatar
Thu Apr 02 06:45:48 -0700 2009
1
2
3
// JavaDoc Search Bookmarklet by Josh Goebel
// Original source at Pastie.net: http://pastie.org/434851
//
gist: 88550 Modify the Swing Defaults T...
Gravatar
Tue Mar 31 21:26:15 -0700 2009
1
2
3
public static void setSwingFontDefault(javax.swing.plaf.FontUIResource newFont) {
  java.util.Enumeration<Object> uiManagerKeys = UIManager.getDefaults().keys();
  while (uiManagerKeys.hasMoreElements()) {
Gravatar
Wed Mar 18 16:20:40 -0700 2009
1
2
3
HOW TO ENABLE TETHERING ON YOUR 3.0 iPHONE
 
Step 1: Check if you own a 3G iPhone. If you're on EDGE (as I am): sorry. Tethering does not seem to work with EDGE phones.
Gravatar
Sun Jan 25 19:48:52 -0800 2009
1
2
3
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
Gravatar
Tue Jan 20 07:15:05 -0800 2009
1
2
3
#!/bin/sh
 
#Example Usage: findjars com/ambientideas/groovy
gist: 49513 Look for JARs that contain ...
Gravatar
Tue Jan 20 07:15:03 -0800 2009
1
2
3
#!/bin/sh
 
#Example Usage: findjars com/ambientideas/groovy
gist: 48058 Windows (Cygwin) Show Git d...
Gravatar
Fri Jan 16 10:55:51 -0800 2009
1
2
3
        RED="\[\033[0;31m\]"
     YELLOW="\[\033[0;33m\]"
  GREEN="\[\033[0;32m\]"
gist: 47267 Show Git dirty status in yo...
Gravatar
Wed Jan 14 21:15:01 -0800 2009
1
2
3
        RED="\[\033[0;31m\]"
     YELLOW="\[\033[0;33m\]"
  GREEN="\[\033[0;32m\]"
gist: 46017 Executes a shell command (a...
Gravatar
Mon Jan 12 07:25:23 -0800 2009
1
2
3
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
gist: 34347 Walk a Java JNDI tree of al...
Gravatar
Wed Dec 10 07:25:25 -0800 2008
1
2
3
InitialContext initialContext;
StringBuffer sb
try {
gist: 10938 Generate a GUID composed of...
Gravatar
Mon Sep 15 13:53:55 -0700 2008
1
2
3
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Map;