I hereby claim:
- I am obcilion on github.
- I am obcilion (https://keybase.io/obcilion) on keybase.
- I have a public key whose fingerprint is 276A 2A9B 443D 3A75 812B 5CB4 492A 5527 4F5C 1619
To claim this, I am signing this object:
| #Command timer written for zsh on mac. | |
| # Make sure coreutils are installed, as millisecond precision requires gdate | |
| # -- Calculate and format command runtime -- | |
| # Initialize the start time | |
| COMMAND_START_TIME=0 | |
| # Function to capture start time | |
| preexec() { | |
| COMMAND_START_TIME=$(gdate +%s%3N) # Current time in milliseconds |
| Rails.application.configure do | |
| config.lograge.base_controller_class = 'ActionController::API' | |
| config.lograge.enabled = true | |
| config.lograge.custom_options = lambda do |event| | |
| data = event.payload[:params] | |
| data.delete :controller | |
| data.delete :action | |
| { params: data } | |
| end |
| require "pathname" | |
| require "open3" | |
| def rec_path(path, file= false) | |
| path.children.collect do |child| | |
| if file and child.file? | |
| child | |
| elsif child.directory? | |
| rec_path(child, file) + [child] | |
| end |
I hereby claim:
To claim this, I am signing this object:
| set -e | |
| echo "Comparing lockfile and bundler versions..." | |
| lock_version=`grep -ia1 "bundled with" Gemfile.lock | grep -oe '[0-9]\+\.[0-9]\+\.*[0-9]*'` | |
| bund_version=`bundle -v | grep -oe '[0-9]\+\.[0-9]\+\.*[0-9]*'` | |
| lock_major=`echo $lock_version | grep -o '^[0-9]\+'` | |
| bund_major=`echo $bund_version | grep -o '^[0-9]\+'` | |
| do_update=false |