Skip to content

Instantly share code, notes, and snippets.

View tlberglund's full-sized avatar

Tim Berglund tlberglund

  • StarTree
  • Mountain View CA
View GitHub Profile
apply plugin: 'groovy'
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
import liquibase.integration.commandline.Main
buildscript {
repositories {
mavenCentral()
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
runtime 'com.h2database:h2:1.3.153'
}
package com.nofluff.poetry;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.codec.binary.Base64;
public class PoetryEmitter {
public List<String> theMaven() {
List<String> lines = new ArrayList<String>();
@tlberglund
tlberglund / gist:3042066
Created July 3, 2012 19:10
git lg alias
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
@tlberglund
tlberglund / gist:3044133
Created July 3, 2012 23:30
Tim's Global-level Git Config
[alias]
lol = log --pretty=oneline --abbrev-commit --graph
prr = pull --rebase --recurse-submodules
monkey = !ls -la
sync = "!git pull; git push"
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
[github]
user = tlberglund
token = bc58a85fdcb90b6479b3073275d5d194
[core]
==> Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
Already downloaded: /Library/Caches/Homebrew/ruby-1.9.3-p194.tar.gz
==> ./configure --prefix=/usr/local/Cellar/ruby/1.9.3-p194 --enable-shared
==> make
CC = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
LD = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
LDSHARED = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -dynamiclib
CFLAGS = -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOS
readline.c:1499:9: error: use of undeclared identifier 'username_completion_function'; did you mean
'rl_username_completion_function'?
rl_username_completion_function);
^
readline.c:69:42: note: expanded from macro 'rl_username_completion_function'
# define rl_username_completion_function username_completion_function
^
/usr/local/Cellar/readline/6.2.2/include/readline/readline.h:449:14: note: 'rl_username_completion_function' declared
here
extern char *rl_username_completion_function PARAMS((const char *, int));
HOMEBREW_VERSION: 0.9.1
HEAD: 94040fb472b480759e7c2fda56b64a6e9e2600dd
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.7.4-x86_64
Xcode: 4.3.3
CLT: N/A
GCC-4.0: build 5494
GCC-4.2: build 5664
Error: Experimental support for using Xcode without the "Command Line Tools".
Error: bash-completion-1.3 already installed
==> Downloading https://github.com/b4winckler/macvim/tarball/snapshot-64
Already downloaded: /Library/Caches/Homebrew/macvim-7.3-64.tgz
==> ./configure --with-features=huge --with-tlib=ncurses --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-tclinterp --enable-cscope
==> make getenvy
==> make
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
mkdir objects