Skip to content

Instantly share code, notes, and snippets.

View czj's full-sized avatar

Clément Joubert czj

View GitHub Profile
@czj
czj / lol-shortcuts.txt
Created March 10, 2014 20:20
Raccourcis LOL Windows (chat, cast, etc...)
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
@czj
czj / rbenv_install.markdown
Last active February 22, 2022 11:20
Install rbenv on a Linux server, desktop or OSX, with bash or zsh

SERVER

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

DESKTOP

BASH

{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
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)$}
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
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}

@czj
czj / fianet_sha1_hmac.php
Created January 16, 2015 09:41
FIANET / Certissim SHA1 + HMAC signature
#!/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];
@czj
czj / fianet_sha1_hmac.php
Created January 16, 2015 16:06
FIA-NET / Certissim's HMAC SHA1 checksum
#!/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];
@czj
czj / codeship_tests_runner.sh
Last active October 15, 2015 14:51
CodeShip tests pipeline runner
# 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