Skip to content

Instantly share code, notes, and snippets.

Larry Gilbert L2G

Block or report user

Report or block L2G

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
L2G / libltdl.a
Created Jul 17, 2015
Mysterious /usr/lib/libltdl.a on my Mavericks system
View libltdl.a
# - a libtool library file
# Generated by - GNU libtool 1.5 (1.1220 2003/04/05 19:32:58)
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
# Names of this library.

Keybase proof

I hereby claim:

  • I am L2G on github.
  • I am l2g ( on keybase.
  • I have a public key whose fingerprint is 4B19 A4C0 2660 D5A5 872F 7778 E598 7E6D 71F4 BECF

To claim this, I am signing this object:

L2G / 01.configure
Last active Aug 29, 2015
Build problems upgrading libexosip in Homebrew
View 01.configure
2015-05-04 09:43:44 -0700
configure: eXosip2 The Extended Open SIP library.
configure: Copyright (C) 2002-2012 Aymeric MOIZARD - <>
Configuring libeXosip2 4.1.0
L2G / xonsh.rb
Last active Aug 29, 2015
yuppie is working on a xonsh formula for Homebrew
View xonsh.rb
class Xonsh < Formula
homepage ""
url ""
sha256 "c77dc7176bd9035e90a448d5a208d4d176535545335678443769602f59f170b6"
depends_on :python3
resource "ply" do
url ""
sha256 "61367b9eb2f4b819f69ea116750305270f1df8859992c9e356d6a851f25a4b47"
L2G / git_tree_timestamp_filter.rb
Last active Aug 29, 2015
Proof of concept: filter a Git tree so that all files have timestamps matching the last commit to touch them
View git_tree_timestamp_filter.rb
#!/usr/bin/env ruby
# Convert Git timestamp into Ruby time
timestamp =['GIT_AUTHOR_DATE'].delete('@').to_i)
# Collect all real files added or modified in the commit
files = []
%x(git show --raw #{ENV['GIT_COMMIT']}).split("\n").each do |line|
L2G / age.bash
Last active Aug 29, 2015
Age Homebrew formulae
View age.bash
for file in *; do
for commit in $(awk '{print $1}' ../../relevant.commits); do
age="$(git log --pretty="%at,%ar" -n1 -- $file)"
if [ "" != "$age" ]; then echo "$file,$age"; break; fi
L2G /
Last active Oct 20, 2015
Git hooks I use to avoid shooting myself in the foot with Stacked Git (StGit)
# Look for an executable named "stg" and assume that it's StGit
STGIT=$(which stg)
if [[ ! -z $STGIT ]]; then
if [[ -x $STGIT ]]; then
if ($STGIT top >&/dev/null); then
echo "*"
echo "* Whoa there!! You have at least one StGit patch applied:"
L2G / rake.out.txt
Created Sep 25, 2013
Output of 'rake vagrant:up' after cloning
View rake.out.txt
Bringing machine 'riak-1.local' up with 'virtualbox' provider...
[riak-1.local] Importing base box 'CentOS-6.3_x86_64-small'...
[...progress meter ticks away here...]
[riak-1.local] Matching MAC address for NAT networking...
[riak-1.local] Setting the name of the VM...
[riak-1.local] Clearing any previously set forwarded ports...
[riak-1.local] Creating shared folders metadata...
[riak-1.local] Clearing any previously set network interfaces...
[riak-1.local] Preparing network interfaces based on configuration...
[riak-1.local] Forwarding ports...
L2G / test.txt.mountain_berry_fields
Created Aug 31, 2013
A simple test of mountain_berry_fields ( I'm working on the RestClient gem and trying to use mbf to verify some code examples. I'm hitting a roadblock with this one, though: when I try to run it through mbf, I get the cryptic error message "NoMethodError undefined method `write' for File:Class"…
View test.txt.mountain_berry_fields
<% setup do %>
require './lib/restclient'
<% end %>
This is a test:
<% test 'generic test', with: :magic_comments do %>
response = RestClient.get ''
response.code # => 200
<% end %>
L2G / .gitconfig
Created Sep 29, 2012
A little sugar I add to my user .gitconfig
View .gitconfig
[url ""]
insteadOf = "github:///L2G/"
insteadOf = ""
insteadOf = ""
[url ""]
insteadOf = "github:///"
insteadOf = ""
You can’t perform that action at this time.