Skip to content

Instantly share code, notes, and snippets.

Ezekiel Templin ezkl

Block or report user

Report or block ezkl

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
ezkl /
Created Sep 27, 2011 — forked from bcg5017/new remote -v
The output of `git remote -v`

fetch is where you update from

git fetch origin master == fetch any updates from the remote repository called origin's master branch.


git pull origin master == fetch any updates AND merge them into mine

origin (fetch)

push is where you put your updates

View ezekiel_templin.rb
class EzekielTemplin
def initialize
@birthdate = Date.parse('1983-06-29')
@birthplace = "Saegertown, PA"
@gender = "male"
def age - @birthdate.year
View local_var_overwrite_warning.rb
# Much more realistic context.
def extract_prefix_from_path(path)
/(?<prefix>.+)_path/ =~ path.to_s ? prefix : false
path = extract_prefix_from_path("homepath")
puts path #=> false
puts extract_prefix_from_path("home_path") #=> home
ezkl / incoming_calls.rake
Created Jan 11, 2012 — forked from dannymcc/incoming_calls.rake
nokogiri and mechanize
View incoming_calls.rake
desc "Import incoming calls"
task :fetch_incomingcalls => :environment do
# Logs into and retrieved list of incoming calls.
require 'rubygems'
require 'mechanize'
require 'logger'
# Create a new mechanize object
agent = { |a| a.log = }
ezkl / ty.rb
Created Feb 28, 2012
Typhoeus::Request shortcut
View ty.rb
require "typhoeus"
module Ty
class << self
include Typhoeus
%w(get post put delete head).each do |method|
define_method(method.to_sym) do |url, opts = {}|
Request.send(method, url, opts)
View Guardfile
guard 'spork', :wait => 60, :aggressive_kill => false, :notify_on_start => true do
watch('test/test_helper.rb') { :test_unit }
guard 'minitest', :drb => true do
watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}#{m[2]}_spec.rb" }
watch(%r|^test/test_helper\.rb|) { "test" }
ezkl / mail.diff
Created Mar 15, 2012
mail v2.3.3 v2.4.0 diff
View mail.diff
.gitignore | 2 +-
.travis.yml | 7 +
CHANGELOG.rdoc | 6 + | 45 ++
Gemfile | 10 +- | 649 ++++++++++++++++++
README.rdoc | 563 ----------------
Rakefile | 16 +-
lib/VERSION | 4 +-
lib/mail.rb | 4 +-
ezkl /
Created Apr 1, 2012
Bash function to generate a new iTerm tab in the current directory
function tab() {
osascript -e "
tell application \"iTerm\"
tell the first terminal
launch session \"Default Session\"
tell the last session
write text \"cd $(pwd)\"
end tell
end tell
end tell"
ezkl /
Created Apr 4, 2012
Setting up Heroku environment to run Ruby 1.9.3-p125
heroku labs:enable user_env_compile
heroku config:add RUBY_VERSION=ruby-1.9.3-p125
heroku config:add PATH=bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
ezkl /
Created Apr 5, 2012
Poorly Written Flashback Trojan Scan
#!/usr/bin/env bash
echo "============================="
echo "Scanning for Flashback Trojan"
echo "============================="
shopt -s nullglob
You can’t perform that action at this time.