Skip to content

Instantly share code, notes, and snippets.

View Trevoke's full-sized avatar
🎹
insert meme here.

Trevoke Trevoke

🎹
insert meme here.
View GitHub Profile
@Trevoke
Trevoke / gist:1747293
Created February 5, 2012 19:07
Idlechasing alias
hold quill\;scribe cms2 on idlescribable with quill\;unhold quill\;palm staff from harness into hands\;octograve with staff\;slip staff into harness\;study map\;consult map\;locate carrack mountains on map\;roastsheep\;bury every sheep in me && every sheep\;c fci map\;c boa me\;c gct cabbage 1\;eat cabbages\;9\;0
hold quill\;scribe pfg on idlescribable with quill\;unhold quill\;palm staff from harness into hands\;octograve with staff\;slip staff into harness\;study map\;consult map\;locate carrack mountains on map\;roastsheep\;bury every sheep in me && every sheep\;c fci map\;c boa me\;c gct cabbage 1\;eat cabbages\;9\;0
peek/palm/octograve/hide/unhide/filler to regen back to 350/scribe
alias 10times_xp 0;0;0;0;0;0;0;0;0;0
alias sneakygram palm staff from harness;octograve with staff;slip staff into harness
@Trevoke
Trevoke / mint.rb
Created February 19, 2013 03:51
Trying to figure out what valuable data I can get out of Mint's transactions.csv record
require 'csv'
require 'yaml'
require 'rails/all'
require 'active_record'
require 'active_support'
require 'sqlite3'
class Transaction < ActiveRecord::Base
has_one :transaction_type
has_one :category
You have the silver ring identified as "bl_dojo".
You have the gold ring identified as "bl_bp_tuna".
You have the gold ring identified as "bl_bandit".
You have the gold ring identified as "bl_djb_bazaar".
You have the gold ring identified as "bl_jewellery".
You have the gold ring identified as "bl_money_changer".
You have the gold ring identified as "bl_drum".
You have the gold ring identified as "bl_get_ash".
You have the gold ring identified as "bl_hlakket".
You have the gold ring identified as "bl_hole_on_the_moon_lake".
The Trouble With Terminals
Thu, 16 Dec 2010 16:43:20 -0800
Copyright 2010 Kevin Goodsell
0. License
This work is licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a

Keybase proof

I hereby claim:

  • I am trevoke on github.
  • I am trevoke (https://keybase.io/trevoke) on keybase.
  • I have a public key whose fingerprint is 48D1 9866 1459 C162 184F FB48 564E 4148 EBF9 21A9

To claim this, I am signing this object:

@Trevoke
Trevoke / gpg.rst
Created March 3, 2016 05:00 — forked from paul-schwendenman/gpg.rst
GPG Cheatsheet

GPG Cheat sheet

A small guide to little things

Create a key

@Trevoke
Trevoke / permissions_hell.md
Last active June 22, 2016 10:37
Ye Olde Learn Un*x The Hard Way Shortcut

GOAL

Be able to push to Heroku as any of three Heroku users from a single computer and a single user.

For this, you will not be allowed to copy and paste anything - except SSH keys themselves, because we're not THAT evil.

If you get error messages, read them carefully, and make note of what you understand, what you don't understand, and what you think you understand.

@Trevoke
Trevoke / article.ex
Created January 23, 2018 16:56 — forked from slashdotdash/article.ex
Commanded multi-entity aggregates
defmodule Article do
defstruct [:content, comments: []]
# public commands
def execute(%Article{}, %PublishArticle{content: content}) do
%ArticlePublished{content: content}
end
def execute(%Article{}, %CommentOnArticle{} = comment) do
@Trevoke
Trevoke / gist:dfa6d886f12d85d7d1d54103d4a808b5
Last active March 18, 2018 23:22
producer_consumer does not modify events
# Usage: mix run lib/producer_consumer.exs
#
# Hit Ctrl+C twice to stop it.
#
# This is a base example where a producer A emits items,
# which are amplified by a producer consumer B and printed
# by consumer C.
defmodule A do
use GenStage