I hereby claim:
- I am fredjean on github.
- I am fredjean (https://keybase.io/fredjean) on keybase.
- I have a public key ASDK7zUS30IIzvH92s50rEBFTwWxDj4zVhzwmpT8bW7BGAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://gist.github.com/1595572). | |
| # |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>net.fredjean.cleandownloads</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>mv</string> | |
| <string>~/Downloads/*(mw+1) ~/.Trash</string> |
So you think you wanna be a web developer... Fork this, update your copy with answers. They don't need to be precise - pseudo-code is fine in most cases. Some questions don't have correct answers.
| desc "Imports all existing Salesforce accounts" | |
| task :households => :environment do |t| | |
| accounts = Salesforce::Household.all | |
| start = 0 | |
| size = 100 | |
| loop do | |
| puts "Loading from #{start} to #{start + size}" | |
| accounts[start...(start + size)].each do |account| | |
| SnuggHome::SalesforceImporter.import_home(account) | |
| end |
| set :raise_errors, true | |
| set :show_exceptions, true if development? | |
| require 'exceptional' | |
| use Rack::Exceptional, "11a42f81f3652f34d226904c671659d7cedb44d9" unless (Rails.env.development? || Rails.env.test?) |
| require 'right_aws' | |
| def instances_from_ec2(load_balancer = nil) | |
| load_balancer ||= aws_load_balancer | |
| payload = elb.describe_load_balancers(load_balancer) | |
| instances = ec2.describe_instances payload.first[:instances] | |
| instances.collect{|instance| instance[:dns_name] if (instance[:aws_state] == 'running')} | |
| end | |
| def elb | |
| @elb ||= RightAws::ElbInterface.new(aws_access_key_id, aws_secret_access_key, :region => 'us-west-1') |
| require 'right_aws' | |
| def instances_from_ec2(load_balancer = nil) | |
| load_balancer ||= aws_load_balancer | |
| payload = elb.describe_load_balancers(load_balancer) | |
| instances = ec2.describe_instances payload.first[:instances] | |
| instances.collect{|instance| instance[:dns_name] if (instance[:aws_state] == 'running')} | |
| end | |
Run the following command:
git config --global url.ssh://[email protected]/.insteadof gh:This will tell Git to expand the gh: URL scheme to ssh://[email protected]. You can then checkout a repo using the shorter syntax:
| gem 'redcarpet' |