Skip to content

Instantly share code, notes, and snippets.

Lee Packham leepa

Block or report user

Report or block leepa

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
View keybase.md

Keybase proof

I hereby claim:

  • I am leepa on github.
  • I am leepa (https://keybase.io/leepa) on keybase.
  • I have a public key whose fingerprint is 453D F3DA 55C4 9897 310D 60F2 B931 14D3 5EC0 BA6E

To claim this, I am signing this object:

@leepa
leepa / gist:090e1611181eb232b544
Created Aug 19, 2014
Highlighting bad whitespace
View gist:090e1611181eb232b544
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()
View gist:accb6068b22312eb0ef8
➜ ~ dig +short TXT google-public-dns-a.google.com
"http://xkcd.com/1361/"
➜ ~ dig TXT google-public-dns-a.google.com
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> TXT google-public-dns-a.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11456
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
View CVE-2014-1912.patch
# HG changeset patch
# User Benjamin Peterson <benjamin@python.org>
# Date 1389671978 18000
# Node ID 87673659d8f7ba1623cd4914f09ad3d2ade034e9
# Parent 2631d33ee7fbd5f0288931ef37872218d511d2e8
complain when nbytes > buflen to fix possible buffer overflow (closes #20246)
# HG changeset patch
# User Stefan Krah <skrah@bytereef.org>
# Date 1390341952 -3600
View gist:9339593
[leepa@joolzbsd ~]$ pkg info python27
python27-2.7.6_4
Name : python27
Version : 2.7.6_4
Installed on : Mon Mar 3 20:39:53 UTC 2014
Origin : lang/python27
Architecture : freebsd:10:x86:64
Prefix : /usr/local
Categories : python lang ipv6
Licenses : PSFL
View gist:9334242
[leepa@joolzbsd ~]$ pkg info python27
python27-2.7.6_4
Name : python27
Version : 2.7.6_4
Installed on : Mon Mar 3 20:39:53 UTC 2014
Origin : lang/python27
Architecture : freebsd:10:x86:64
Prefix : /usr/local
Categories : python lang ipv6
Licenses : PSFL
View gist:9334087
[leepa@joolzbsd ~]$ pkg info python33
python33-3.3.3_3
Name : python33
Version : 3.3.3_3
Installed on : Mon Mar 3 19:59:34 UTC 2014
Origin : lang/python33
Architecture : freebsd:10:x86:64
Prefix : /usr/local
Categories : python lang ipv6
Licenses : PSFL
View gist:6610440
package main
import (
"fmt"
"runtime"
)
type AssertionError struct {
pc uintptr
View README.md

Notes

So, make sure you replace youraccount with your account name. Also make sure you set the reqadd Authorization line to be the base64 of your token/user/password combo:

echo -n username:password | openssl enc -a

Replace any equals signs with \3D to make sure they are escaped.

View gist:5211940
apache-solr3 @3.6.2 java/apache-solr3
apache2 @2.2.24 www/apache2
apr @1.4.6 devel/apr
apr-util @1.5.1 devel/apr-util
autoconf @2.69 devel/autoconf
automake @1.13.1 devel/automake
bison @2.7 devel/bison
boost @1.53.0 devel/boost
bzip2 @1.0.6 archivers/bzip2
cairo @1.12.14 graphics/cairo
You can’t perform that action at this time.