Moved to https://github.com/dkubb/git-tools
View gist:704840f30253b0e02d9e81b9a4d4b1ce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am dkubb on github. | |
* I am dkubb (https://keybase.io/dkubb) on keybase. | |
* I have a public key ASABdYDarQ43GiNGY274zzSheBhF9a6SCfzdVInw3nb_ogo | |
To claim this, I am signing this object: |
View money.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bigdecimal' | |
require 'bigdecimal/util' | |
require 'rubygems' | |
require 'adamantium' | |
require 'concord' | |
class Money | |
include Adamantium, Concord.new(:amount), Comparable |
View enumerable_extensions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module EnumerableExtensions | |
# An exception raised when an invalid number of entries is returned | |
class InvalidCountError < StandardError | |
# Initialize an exception to report an invalid enumerable count | |
# | |
# @param expectation [String] | |
# @param entries [Array] | |
# |
View rubyfmt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'filemagic' | |
require 'pathname' | |
require 'parser/current' | |
require 'unparser' | |
RUBY_TYPE = 'ruby script'.freeze | |
# TODO: handle stdin |
View .gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.hi | |
*.o | |
*.sw[op] | |
/.shake | |
/.stack-work | |
/dist | |
/output |
View gist:e2763e1bd1047ab0bcd6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dkubb [12:34 PM] | |
I feel solnic’s pain in trying to swim against the current | |
dkubb [12:44 PM] | |
https://twitter.com/dkubb/status/608359066172313600 | |
Dan Kubb@dkubb | |
.@rubyfive @_solnic_ has done great things for ruby, and your dismissive tone to his valid criticism only hurts the community. | |
Today at 12:44 PM | |
mbj [12:47 PM] |
View sitemap.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'mechanize' | |
require 'addressable/uri' | |
ROOT_URL = Addressable::URI.parse(ARGV.fetch(0)).freeze | |
# Disable SSL certificate verification | |
I_KNOW_THAT_OPENSSL_VERIFY_PEER_EQUALS_VERIFY_NONE_IS_WRONG = nil |
View Brewfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upgrade, Update, Check Homebrew | |
update | |
upgrade | |
doctor | |
# Install taps | |
tap caskroom/cask | |
tap sceaga/tap | |
# Install bash |
View ssl.nginxconf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssl_certificate cert.pem; | |
ssl_certificate_key cert.key.pem; | |
ssl_trusted_certificate cert.ca.pem; | |
ssl_dhparam cert.dh.pem; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers FIPS@STRENGTH:!aNULL:!eNULL; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:SSL:10m; |
NewerOlder