Skip to content

Instantly share code, notes, and snippets.

View Spaceghost's full-sized avatar
👻
Building distributed and decentralized systems that run in the browser

Johnneylee Jack Rollins Spaceghost

👻
Building distributed and decentralized systems that run in the browser
View GitHub Profile
/*!
*
* stagas - icecream
*
*/
var bpm = 125;
var tuning = 440;
var transpose = 11;
2 Quality Analysts at Onsite (Columbus, OH) with Ruby Mine, Ruby Cucumber and Selenium skills and 3 years of Test automation experience.
Location : Columbus, OH
The resources has to be very fluent in Ruby mine, Ruby cucumber and Selenium
Strong verbal and written communication
Willing to take the direction.

How-to setup a simple git push deployment

These are my notes basically. I first created this just as a reminder for myself. Feel free to use this for your project as a starting point.

On the server (example.com)

  1. Create a user on example.com, as which we (the git client) connects (push) to exmaple.com.
sudo useradd -m -s /usr/bin/git-shell git
class Foo
ATTRIBUTES = %i|name address|
attr_reader *ATTRIBUTES
def initialize(opts={})
opts.keys.each do |meth|
self.send("#{meth}=", opts.fetch(meth, nil) # Do any special things here, I suppose
end
end
@Spaceghost
Spaceghost / gist:9055820
Created February 17, 2014 18:04
Why I hate Coffeescript.
a = undefined # var a;
a = "lol" # a = 'lol';
rawr = (-> # rawr = function() {
a = "wat" # var a = 'wat';
a # return a;
).call() # }.call();
console.log a # console.log(a);
# returns 'wat' # returns 'lol'
# What the fucking fuck, Coffeescript...
gem 'minitest', '~> 4.7'
require 'minitest/autorun'
require 'open3'
class TestOutput < Minitest::Unit::TestCase
def test_that_open3_works
_,stdout,_ = Open3.popen3('rails -v')
assert_match /Rails/, stdout.read.chomp
01:15:52 <pipecloud> While working on getting rubygems.org to work on ruby 2.1 and 2.0, I've seem to hit a problem. the gem archives in test/gems/dos* are being used in test/unit/pusher_test.rb and they return StringIO objects. I've called #read on them prior to passing them Cutter.new, but I'm out of my understanding when they complain about "string contains null byte". I'm
01:15:52 <pipecloud> curious about what I should change, but more curious about how they pass currently.
01:16:58 <pipecloud> I'm going to be checking into 1.9.3 and seeing how it works there and hopefully that'll give me some more information.
01:24:00 <pipecloud> Where's sj26 when you need him? :(
01:34:07 <pipecloud> I doubt it has anything to do with marshalling like in https://groups.google.com/forum/#!msg/ruby-core-google/eMLd2MgOnVU/OedFMqUOcuEJ which drbrain_ commented on, but I guess I'll keep digging.
@Spaceghost
Spaceghost / inline
Created December 31, 2013 07:09
wrapped is unnecessary
def hooman(name)
"I am a pink, fleshy human named, #{name}."
rescue ArgumentError => e
self.logger "Someone screwed up again, bob."
raise HumanError(e)
end
def search(tp_id1, rule_id1, tp_id2, rule_id2)
ActiveRecord::Base.connection.execute("SELECT * FROM tracked_points, rules WHERE (tracked_points.id = ? AND rules.id = ?) OR (tracked_points.id = ? AND rules.id = ?)", tp_id1, rule_id1, tp_id2, rule_id2)
end
iVBORw0KGgoAAAANSUhEUgAAAMgAAAEqCAYAAABQox+jAAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nOydd5hcVd3HP+fcMr1s3+xuNptGAkkIhBIIvYUiJBRRkC5gR1BQ9EVRRKSIygsqKIoor6Ioamg2ejPUJEB6SN1kd5PtZeq997x/TMr2OpuQyf08zzzJ7Nzyu3fud875lXMOuLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uGSTiwHRz+dRIH832eListuZ2dcHV388cAOgSgu0y/vYxPSYot1jigX9ncDvkZ8F5LAtdHEZBSJScv0A2xwDKODQXj4LFkRlR8AnVF5YNgOe7hvkR+Qft++vfD6O7u0EQb+8efs2pw/JeheXUUYAalyZ9su+NvD7xDuA8piiBijq/FkkKG+aPM7r1L1QqcqLdScclN/qtvslXlNY//1dubrizKgaU6TVAnq3bS7SdayqMkPlR8UrfZhR5jHEv3vZ18Vl1FGAKorKa3r57GyvR1rLFxyojjjQkw75xWuAtv0z0+8TzQ/98BjVsXC8uvcrY5TXFHEy/gbAOF2j44Hv5KmWV8ar93+7nyop0GyPR97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