Skip to content

Instantly share code, notes, and snippets.

$ alias testsomeshit='echo "$@" feh'
$ testsomeshit bang
feh bang
<RurouniJones> One more question, because I know I will have to field this. Each git repository holds the entire
history of the codebase. Great for checking things and dev'ing. Not as "secure", can you limit the
history a git repository can take from another one? Yes I know in the grand scheme of things it hardly
makes a difference if a bad guy (rogue employee for instance) has just the latest code or the entire
history but management have
<RurouniJones> asked about this sort of stuff before.
<cardioid> RurouniJones: Tell your management to stop looking for software solutions to social problems.
<RurouniJones> Hehehe, I would love to...I also like my job
require 'autotest/redgreen'
require 'autotest/timestamp'
USE_FSEVENTS = false
Autotest.send(:alias_method, :real_find_files, :find_files)
Autotest.send(:define_method, :find_files) do |*args|
pattern = ENV['AUTOTEST']
files = real_find_files
#!/usr/bin/env ruby
require 'rubygems'
require 'mechanize'
MY_NAME = 'Yossef Mendelssohn'
CHECKIN_REQUEST_URL = 'http://www.southwest.com/flight/retrieveCheckinDoc.html'
prompt = false
conf = ARGV[0]
#!/usr/bin/env ruby
require 'rubygems'
require 'earworm'
song_file = ARGV.first
unless song_file
puts 'song file needed'
exit
Cassady:~/dev/projects/flogic/freshtrack((no*) yossef$ git co master
Switched to branch "master"
Cassady:~/dev/projects/flogic/freshtrack(master) yossef$ ta
loading autotest/rspec
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S /Library/Ruby/Gems/1.8/gems/rspec-1.1.4/bin/spec -O spec/spec.opts spec/spec_helper.rb spec/project_spec.rb spec/time_entry_spec.rb spec/array_spec.rb spec/time_spec.rb spec/numeric_spec.rb spec/base_object_spec.rb spec/task_spec.rb spec/freshtrack_spec.rb
....................................................................................................................................................................................................................................................
Finished in 0.938631 seconds
244 examples, 0 failures
Cassady:~/dev/scratch yossef$ mkdir test_repo
Cassady:~/dev/scratch yossef$ cd test_repo/
Cassady:~/dev/scratch/test_repo yossef$ git init
Initialized empty Git repository in /Users/yossef/dev/scratch/test_repo/.git/
Cassady:~/dev/scratch/test_repo yossef$ touch blah
Cassady:~/dev/scratch/test_repo yossef$ git add .
Cassady:~/dev/scratch/test_repo yossef$ git commit -m "initial commit"
Created initial commit 2f456dc: initial commit
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 blah
if @medical_provider.latitude && @medical_provider.longitude
provider_origin = GeoKit::GeoLoc.new
provider_origin.lat = @medical_provider.latitude
provider_origin.lng = @medical_provider.longitude
provider_origin.success = true
end
class Array
def total(attr_name)
collect(&attr_name).sum
end
end
Cassady:~ yossef$ sudo gem update english
Updating installed gems
Updating english
ERROR: While executing gem ... (Gem::InstallError)
english requires facets >=2.0.0
(>= 0, runtime)
Cassady:~ yossef$ gem list facets
*** LOCAL GEMS ***