Skip to content

Instantly share code, notes, and snippets.

View rue's full-sized avatar

Rue Saynatkari rue

View GitHub Profile
@bleything
bleything / tinydns.zone
Created March 20, 2011 17:30
simple djbdns zonefile
.bleything.net::dns1.sascrotch.com
.bleything.net::ns1.skylab.org
=bleything.net:198.145.180.87
+blog.bleything.net:198.145.180.87
+www.bleything.net:198.145.180.87
Ccalendar.bleything.net:ghs.google.com
Cdocs.bleything.net:ghs.google.com
@tenderlove
tenderlove / person_test.rb
Created February 10, 2011 23:10
Use minitest/spec with Rails 3
require 'test_helper'
require 'minitest/autorun'
class MiniTest::Spec
include ActiveSupport::Testing::SetupAndTeardown
include ActiveRecord::TestFixtures
alias :method_name :__name__ if defined? :__name__
self.fixture_path = File.join(Rails.root, 'test', 'fixtures')
end
###
# This is a demonstration of using SQLite3's Virtual File System API in Ruby.
#
# == Synopsis
#
# This program will store its SQLite database after the __END__ line.
#
# === In Detail
#
# SQLite3 uses the DATABase class as a proxy for our IO object. Upon