Skip to content

Instantly share code, notes, and snippets.

Brian Smith Lytol

Block or report user

Report or block Lytol

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View domains.txt
View parse
#!/usr/bin/env ruby
require 'csv'
abort("You must specify a CSV file") unless ARGV.length == 1
CSV do |out|
CSV.foreach(ARGV[0], encoding: 'ISO-8859-1') do |row|
out << { |c| c.nil? ? nil : c.encode('UTF-8') }

Keybase proof

I hereby claim:

  • I am lytol on github.
  • I am lytol ( on keybase.
  • I have a public key whose fingerprint is 3DB8 E053 0DA6 9360 051D 0293 DF0D 5FC9 FD91 1F24

To claim this, I am signing this object:

View dev
SESSION=`basename $PWD`
tmux new-session -d -s $SESSION -n 'Shell'
tmux split-window -h
if [[ -e Procfile ]]; then
tmux new-window -t $SESSION:1 -n 'Foreman'
View rails-application-template.rb
# Replace the Gemfile wholesale, it's just easier
remove_file "Gemfile"
create_file "Gemfile", <<-EOF
source ''
ruby '2.1.5'
gem 'rails', '4.2.0'
gem 'pg'
View Makefile
SHELL = /bin/bash
all: build
cp *.kll controller/kll/layouts/
cd build; cmake ../controller; cd ..
build: prepare
cd build; make; cd ..
View test.rake
Rake::Task['test'].clear do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
View gist:20490
diff --git a/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb b/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb
index 938051c..ed3246f 100644
--- a/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb
+++ b/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb
@@ -9,7 +9,11 @@ module ActiveReload
class ConnectionProxy
def initialize(master, slave)
@slave = slave.connection
+ @slave.instance_eval { @connection.reconnect = true }
View gist:24613
require 'digest/sha1'
module SecureToken
def self.secure_digest(*args)
def self.generate_token
View gist:29694
fa292fd9 (Jay Swain 2008-11-18 17:20:59 -0800 46) @payment = => find_offer_id, :type => 'visa')
You can’t perform that action at this time.