I hereby claim:
- I am jswanner on github.
- I am jswanner (https://keybase.io/jswanner) on keybase.
- I have a public key whose fingerprint is 1140 8F9C EAD0 C993 1C96 63E6 C154 4A94 D2DC 2F30
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| unbind C-b | |
| set -g prefix C-a | |
| set -g default-terminal "screen-256color" | |
| set -g history-limit 5000 | |
| bind C-a send-prefix | |
| # force a reload of the config file | |
| unbind r | |
| bind r source-file ~/.tmux.conf |
| # https://blog.spideroak.com/20140814060007-status-reports-transparency-overall-safety | |
| # https://spideroak.com/canary | |
| # https://en.wikipedia.org/wiki/Warrant_canary | |
| # https://www.eff.org/deeplinks/2014/04/warrant-canary-faq | |
| # https://en.wikipedia.org/wiki/National_security_letter | |
| # | |
| # SpiderOak now maintains a warrant canary so they can passively let their users know | |
| # if they have been served a National Security Letter or other legal tool which | |
| # prevents them from actively disclosing to their users that they are being coerced | |
| # or forced into compromising the security or privacy of their userbase. |
This function automatically grabs the latest git tag and, based on keyword (major, minor, patch), adds a new tag. (e.g. git_tag patch for v1.2.0 would create v1.2.1)
Drop this into your ~/.bash_profile and run source ~/.bash_profile to use it.
You can find all of my dotfiles here: https://github.com/drewbarontini/dotfiles
| var ctrlKey = 17, | |
| ctrlDown = false, | |
| vKey = 86, | |
| allowCtrlPaste, | |
| allowPaste, | |
| captureCtrl, | |
| releaseCtrl; | |
| allowCtrlPaste = function(e){ | |
| if (ctrlDown && e.keyCode == vKey) { |
| require 'redcarpet' | |
| desc "generate index.html from README.md" | |
| file "index.html" => "README.md" do |task| | |
| puts "Processing README.md to generate a new index.html..." | |
| # `r` means we're using the "read" mode with the file | |
| # we need a String for Redcarpet, it doesn't accept File objects. | |
| string = File.open(task.prerequisites.first, 'r') { |file| file.read } | |
| markdown = ::Redcarpet::Markdown.new(Redcarpet::Render::HTML, extensions = {}) |
| diff -Nr -U 1000 tmp/generated/v2.3.18/.gitignore tmp/generated/v3.0.0/.gitignore | |
| --- tmp/generated/v2.3.18/.gitignore 1969-12-31 16:00:00.000000000 -0800 | |
| +++ tmp/generated/v3.0.0/.gitignore 2014-02-21 19:34:53.000000000 -0800 | |
| @@ -0,0 +1,4 @@ | |
| +.bundle | |
| +db/*.sqlite3 | |
| +log/*.log | |
| +tmp/**/* | |
| diff -Nr -U 1000 tmp/generated/v2.3.18/Gemfile tmp/generated/v3.0.0/Gemfile | |
| --- tmp/generated/v2.3.18/Gemfile 1969-12-31 16:00:00.000000000 -0800 |
| module MethodModifiers | |
| def privatize | |
| on_method_defined do |klass, method| | |
| Priv.call klass, method | |
| end | |
| end | |
| def memoize | |
| on_method_defined do |klass, method| | |
| Memo.call klass, method |
| $ irb | |
| irb(main):001:0> module Mod1 | |
| irb(main):002:1> def self.included base | |
| irb(main):003:2> puts 'included Mod1' | |
| irb(main):004:2> end | |
| irb(main):005:1> end | |
| => nil | |
| irb(main):006:0> module Mod2 | |
| irb(main):007:1> def self.included base | |
| irb(main):008:2> puts 'included Mod2' |
| desc 'rolls back migrations in current branch not present in other' | |
| task :rollback_branch_migrations, [:other_branch] do |t, args| | |
| load "#{Dir.pwd}/Rakefile" | |
| branch_migrations = BranchMigrations.new(args.other_branch) | |
| puts ['Rollback the following migrations', branch_migrations, 'y,n? '] | |
| next if %w[no n NO N].include?(STDIN.gets.chomp) | |
| Rake::Task['environment'].invoke |