git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
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
Standard Keyboard Shortcuts: | |
q,w,e,r - linked to your abilities | |
d,f, - linked to your summoner spells | |
y - locks/unlock you camera | |
L - shows/hides lifebars | |
spacebar - center's your hero on screen | |
b - back/recall | |
p - opens item shop | |
g - turns mouse to ping click (click anywhere on screen or hero to ping) | |
alt + left click - same as above |
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
Show hidden characters
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
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
ignore %r{^(public/e|tmp|log|deprecated)} | |
group "app" do | |
guard :bundler do | |
watch 'Gemfile' | |
end | |
guard :pow do | |
watch %r{^config/.+\.yml$} | |
watch %r{^config/environments/.+\.(rb|yml)$} |
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 LineWithTaxes | |
extend ActiveSupport::Concern | |
included do | |
validates_length_of :label, within: 2..254 | |
validates_length_of :comment, within: 0..254, allow_blank: true | |
validates_numericality_of :amount_with_taxes, :amount_without_taxes | |
validates_numericality_of :quantity, minimum: 1, only_integer: true | |
validates_numericality_of :ecotax, minimum: 0 |
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
alfred://customsearch/Traduire%20en%20francais/en/utf8/noplus/https://translate.google.fr/#en/fr/{query} | |
alfred://customsearch/Traduire%20en%20allemand/en/utf8/noplus/https://translate.google.fr/#fr/de/{query} | |
alfred://customsearch/Traduire%20en%20anglais/en/utf8/noplus/https://translate.google.fr/#fr/en/{query} |
Thanks to @alfredapp 's Web Search, you can call "0123456789" using OS X #Yosemite + iPhone on iOS8.1
Click this URI :
alfred://customsearch/Call%20%7Bquery%7D%20via%20iPhone/tel/utf8/noplus/tel:{query}
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/php | |
<?php | |
// Check http://cl.ly/2o0z0z1G103O for documentation on Certissim's HMAC SHA1 | |
// First parameter = hexadecimal key | |
$key_hex = $argv[1]; | |
// Second = string to get signature | |
$payload = $argv[2]; |
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/php | |
<?php | |
// Check http://cl.ly/2o0z0z1G103O for documentation on Certissim's HMAC SHA1 | |
// First parameter = hexadecimal key | |
$key_hex = $argv[1]; | |
// Second = string to get signature | |
$payload = $argv[2]; |
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
# Enabled the 2 test pipelines architecture | |
# Don't send to CodeClimate because they would get 2 reports | |
# We use Circle CI to do the code coverage analysis :-) | |
# | |
# 2 pipelines: | |
# bundle exec rake test `find test/{controllers,integration} -type f -regex ".+_test.rb"` | |
# bundle exec rake test `find test/{decorators,helpers,jobs,lib,mailers,models,policies,workers} -type f -regex ".+_test.rb"` | |
# | |
# 1 pipeline: | |
# bundle exec rake test |