Skip to content

Instantly share code, notes, and snippets.

View aergonaut's full-sized avatar

Chris Fung aergonaut

View GitHub Profile

DataTable

Usage

Tables

Tables are plain old Ruby objects that include DataTable::Table. We recommend you put your tables in app/data_tables but you can put them anywhere in your load path.

class RequisitionsTable
@aergonaut
aergonaut / 001.md
Last active August 29, 2015 13:57
wishlist for RSI

Commands

  • deploy from a branch or tag name
  • deploy from a specific SHA and infer the branch name
  • redeploy to the head of the instance's current branch
  • the resque tasks from old rsi.rb
  • dbdump task (in a way that doesn't eat disk space)
  • github:pulls task

Plumbing

SELECT properties FROM profiles LIMIT 1;
----------
favorite_color => red
time_zone => Pacific Time (US & Canada)
module Steampunk
class Gear < ActiveRecord::Base
belongs_to :gearable, polymorphic: true
end
def self.included(base)
base.class_eval do
has_many :gears, as: :gearable
after_create :add_gears
  • Craftbukkit

  • WorldEdit

  • WorldGuard

  • CommandBook

  • PermissionsEX

  • Feed the Beast

  • ComputerCraft

  • Applied Energistics

  • lots more...

How to use

cd /etc/init.d
curl $RAW_GIST_URL -o minecraft
chmod a+x minecraft

Make sure to edit the script and change the configuration variables at the top to match your system.

function mine_cobble()
if turtle.detect() then
turtle.dig()
end
if turtle.detectDown() then
turtle.digDown()
end
end
function dump_cobble()

Writing complex SQL is like pulling out your Grimoire while you stand over a circumscribed pentagram drawn in salt and silver ash. The thick smoke of the wax candles ringing your magic circle wafts around your head as you intone the unknowable names of the dark sigils written on the vellum pages: INNER JOIN ON... AND COALESCE

RESONANCE

Energy

Kinetic Resonance (KR) is energy created by vibrating certain materials at their resonant frequency. This resonant energy is converted into kinetic energy which is used to power machines and devices.

KR is produced by machines called Oscillators, can be transported through conduits called Vectors, and can be stored in devices called Resonators. Machines that receive KR convert the resonant energy to kinetic energy via the Resonance Reception Socket, while devices that transmit KR convert the oscillation to resonance via the Resonance Transmission Prong. Vectors transmit KR using the resonant properties of crystsalline glass.

Oscillators

diff --git a/db/blank/permissions.yml b/db/blank/permissions.yml
index d72af51..0024023 100644
--- a/db/blank/permissions.yml
+++ b/db/blank/permissions.yml
@@ -1487,6 +1487,18 @@ approval_limits__update_approval_limit_account_segments:
action: update_approval_limit_account_segments
description:
flavor: 0
+online_help__index:
+ id: 91013