Skip to content

Instantly share code, notes, and snippets.

View ROFISH's full-sized avatar

Ryan Alyea ROFISH

View GitHub Profile
Feature: Private Messages
In order for users to better collaborate or moderate,
Private Messages are used to send a message from one user to another.
# Hash tags in front mean a comment, so it's ignored in the text.
#
# @allow-rescue means that when an error is thrown (such as the ability to
# not log in), it does error handling instead of testing the error.
# Without @allow-rescue, instead the last line would be:
#
Name Artist Composer Album Grouping Genre Size Time Disc Number Disc Count Track Number Track Count Year Date Modified Date Added Bit Rate Sample Rate Volume Adjustment Kind Equalizer Comments Plays Last Played Skips Last Skipped My Rating Location
Open Door Adventure Lesser Known Chiptune 5882938 175 1 2011 7/8/11 5:37 PM 7/8/11 3:37 PM 267 44100 MPEG audio file Warp Pipe:iTunes:iTunes Media:Music:Adventure:Lesser Known:01 Open Door.mp3
Feels Like Heaven Adventure Lesser Known Chiptune 9302765 272 2 2011 7/8/11 5:37 PM 7/8/11 3:37 PM 273 44100 MPEG audio file Warp Pipe:iTunes:iTunes Media:Music:Adventure:Lesser Known:02 Feels Like Heaven.mp3
Smoke and Mirrors Adventure Lesser Known Chiptune 6469252 180 3 2011 7/8/11 5:37 PM 7/8/11 3:37 PM 285 44100 MPEG audio file Warp Pipe:iTunes:iTunes Media:Music:Adventure:Lesser Known:03 Smoke and Mirrors.mp3
Fool's Paradise Adventure Lesser Known Chiptune 6915397 204 4 2011 7/8/11 3:37 PM 7/8/11 3:37 PM 270 44100 MPEG audio f
@ROFISH
ROFISH / erbengine.rb
Created February 23, 2012 01:10 — forked from mislav/gist:17371
haml2erb
class ErbEngine < Haml::Engine
def push_script(text, preserve_script, in_tag = false, preserve_tag = false,
escape_html = false, nuke_inner_whitespace = false)
push_text "<%= #{text.strip} %>"
end
def push_silent(text, can_suppress = false)
push_text "<% #{text.strip} %>"
end
@ROFISH
ROFISH / order_closer.rb
Created March 14, 2012 07:49
Shopify API has 499 api calls/5 minutes
require 'rubygems'
require 'rest-client'
require 'multi_json'
api_key = "x"
json = RestClient::Request.new(
:method=>:get,
:url=>"https://fangamer.myshopify.com/admin/orders.json?financial_status=paid&fulfillment_status=shipped&created_at_max=2011-01-01&fields=id&limit=249",
:user=>api_key,
@ROFISH
ROFISH / coupon.rb
Created June 13, 2012 21:38
Coupons limiting to Collection ID
# http://forums.shopify.com/categories/6/posts/42926
# This is a fairly simple mechanize script to create a few hundred or so shopify discounts from a CSV of groupon codes.
# You'll want to change all of the "changeme" values to your own.
# The script expects there to be a groupon_codes.csv in the same directory.
#
# The groupons_code.csv should look like this:
# 8m7677
# 8m6749
# 8m5398
# 8m7699
@ROFISH
ROFISH / Gemfile
Last active August 29, 2015 14:00
#ruby '2.1.0'
source 'https://rubygems.org'
gem 'rack', '~>1.5.2'
gem 'actionpack', '~> 4.1.0.beta1'
gem 'railties', '~> 4.1.0.beta1'

Keybase proof

I hereby claim:

  • I am rofish on github.
  • I am rofish (https://keybase.io/rofish) on keybase.
  • I have a public key ASBV_K9w4uoAtraEyf01h2olVO9KqDhJc6WCTZLGzPqYPAo

To claim this, I am signing this object:

@ROFISH
ROFISH / edgerouter-qos
Last active August 26, 2017 02:55 — forked from beardicus/edgerouter-qos
EdgeRouter Lite QOS Settings
configure
#
# fair-queue based settings for EdgeRouter Lite traffic shaping
#
# don't shape downloads for now
# download is typically 50. everything can burst to 100%
# of bandwidth, priority rules keep the garbage in check
/Applications/1Password\ 7.app/Contents/MacOS/1Password\ 7 &