Skip to content

Instantly share code, notes, and snippets.

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = false
[remote "origin"]
url = [email protected]:echristopherson/sample_app.git
fetch = +refs/heads/*:refs/remotes/origin/*
$ lua ~/Downloads/cairo.lua # https://github.com/pavouk/lgi/blob/master/samples/cairo.lua
** (process:54749): WARNING **: Failed to load shared library 'libcairo-gobject.2.dylib' referenced by the typelib: dlopen(libcairo-gobject.2.dyldylib, 9): image not found
lua: /usr/local/share/lua/5.1/lgi/override/cairo.lua:563: attempt to index field '_module' (a nil value)
stack traceback:
/usr/local/share/lua/5.1/lgi/override/cairo.lua:563: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/lgi/namespace.lua:174: in function </usr/local/share/lua/5.1/lgi/namespace.lua:146>
(tail call): ?
/Users/eric/Downloads/cairo.lua:11: in main chunk
diff '--exclude=*.orig' -urN vim73.orig/runtime/doc/eval.txt vim73/runtime/doc/eval.txt
--- vim73.orig/runtime/doc/eval.txt 2012-10-28 16:12:39.459967383 -0500
+++ vim73/runtime/doc/eval.txt 2012-10-28 16:13:18.210484532 -0500
@@ -6272,8 +6272,8 @@
keymap Compiled with 'keymap' support.
langmap Compiled with 'langmap' support.
libcall Compiled with |libcall()| support.
-linebreak Compiled with 'linebreak', 'breakat' and 'showbreak'
- support.
+linebreak Compiled with 'linebreak', 'breakat', 'showbreak' and
@echristopherson
echristopherson / macvim.rb
Created November 19, 2012 03:54
macvim-with-breakindent-patch.rb
require 'formula'
class Macvim < Formula
homepage 'http://code.google.com/p/macvim/'
url 'https://github.com/b4winckler/macvim/tarball/snapshot-65'
version '7.3-65'
sha1 'fa5f6e0febe1ebcf5320a6ff8bcf4c7e39eccf8e'
head 'https://github.com/b4winckler/macvim.git', :branch => 'master'
@echristopherson
echristopherson / vimcat.sh
Created November 16, 2012 21:12
Modified version of Matthew Wozniski's vimcat.sh
#!/bin/bash
#!/usr/bin/env vim
#! This is a bash script that executes itself as a vimscript to do its work
#! vim:ft=vim:ts=2:sts=2:sw=2
: if 0
tmpfile=$(mktemp -t vimcat.XXXXXXXX)
exec 9<>"$tmpfile"
rm "$tmpfile"
@echristopherson
echristopherson / Attempt to apply my own modmap; note BadValue error and persistence of some of the original strange modifiers
Created November 12, 2012 01:11
Default xmodmap modifier map under Xubuntu 10.10; notice odd sets of keys in mod1 and mod4
0 bournemouth:[ ~ ] $ cat .Xmodmap-manual
! I started with code from
! <http://tylerkieft.com/archives/2006/10/05/redefine-the-x11-meta-key-in-mac-os-x/>,
! but by now that's unrecognizable here.
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
@echristopherson
echristopherson / gist:2908561
Created June 11, 2012 04:51
readline errors compiling ruby 1.9.3-p194 with rvm stable
compiling readline.c
readline.c: In function ‘username_completion_proc_call’:
readline.c:1499: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:1499: error: (Each undeclared identifier is reported only once
readline.c:1499: error: for each function it appears in.)
make[2]: *** [readline.o] Error 1
make[1]: *** [ext/readline/all] Error 2
@echristopherson
echristopherson / array_subtraction_test.rb
Created March 1, 2012 01:04
How to make array subtraction only compare certain fields of elements?
#!/usr/bin/env ruby
C = Struct.new :a, :b
c1 = C.new 1, 2
c2 = C.new 1, 2
c3 = C.new 3, 4
puts "[c1] - [c2]: #{[c1] - [c2]}"
c2.b = 3
Last login: Fri Nov 4 00:33:16 on ttys000
$ rvm --trace reinstall 1.8.7 -j 3
+ [[ -n '' ]]
+ export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ /scripts/cli : __rvm_parse_args() 705 > [[ -z '' ]]
+ /scripts/cli : __rvm_parse_args() 705 > [[ -n '' ]]
+ /scripts/cli : __rvm_parse_args() 707 > [[ 0 -eq 1 ]]
+ /scripts/cli : __rvm_parse_args() 707 > [[ -n '' ]]
+ /scripts/cli : __rvm_parse_args() 19 > [[ -n reinstall ]]
Last login: Thu Nov 3 00:54:10 on ttys001
$ rvm list
rvm rubies
jruby-1.6.5 [ i386 ]
=> ruby-1.9.2-p290 [ i386 ]
$ ruby -e 'puts "Hello"'
Hello