Skip to content

Instantly share code, notes, and snippets.

# Taken from the Makefile.PL from Mark Jason Dominus' Memoize.pm
# (http://search.cpan.org/~mjd/Memoize-1.01/Memoize.pm)
#
# ===============================================================================
use ExtUtils::MakeMaker;
#
# I've reneged on the following threat:
#
; <<>> DiG 9.5.0-P2 <<>> de.wowwiki.wikia.com @ns1.wikia.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4702
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 4
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;de.wowwiki.wikia.com. IN A
# There is precious little documentation on how to use Grit to add files
# to a repository. Basically as far as I understand it the steps are:
#
# (1) Create a repository via 'git init' on the command line
# (2) Create a Grit::Repo object
# (3) Write one or more files to the directory the repository lives in
# (4) Create Grit::Blob objects that represent those files
# (5) Add the files to the index
# (6) Commit the index