I hereby claim:
- I am nitnekb on github.
- I am nitnekb (https://keybase.io/nitnekb) on keybase.
- I have a public key ASApLOBuxTB37Os8PHwXDWGVEJRbqJpGgeimS6b4Ou2B8wo
To claim this, I am signing this object:
| ## SETUP | |
| _Rendez-vous_ on https://brew.sh/ to install brew using command line. | |
| You'll need to install some things before using ASDF (see below). | |
| ```bash | |
| brew install coreutils curl git | |
| ``` |
| if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="yellow"; fi | |
| EMOJI_NODE=🔎 | |
| EMOJI_RUBY=💎 | |
| NODE_MAJOR_LTS="v16" | |
| # We don't use it anymore 😢 | |
| #function evaluateDocker() { | |
| # local ref | |
| # if [[ -n ${DOCKER_MACHINE_NAME} ]]; then |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| ui = true | |
| [color "status"] | |
| added = green | |
| changed = red bold | |
| untracked = red |
| hs.window.animationDuration = 0.3 | |
| hyper = { 'alt', 'ctrl', 'cmd' } | |
| shift_hyper = { 'shift', 'ctrl', 'cmd', 'alt'} | |
| -- ⚠ Plugin MiroWindowsManager requires to be installed | |
| -- See: https://github.com/miromannino/miro-windows-manager | |
| hs.loadSpoon("MiroWindowsManager") | |
| spoon.MiroWindowsManager:bindHotkeys({ | |
| up = {hyper, "up"}, |
| # Use this command to get a backup | |
| mongodump -u <USER> -p <PASSWORD> --port=<PORT> --authenticationDatabase admin -d <DATABASE> -c <COLLECTION> | |
| # Use this command to restore back up (removing the old one) | |
| mongorestore --db <DATABASE> ./<COLLECTION>.bson --drop |
I hereby claim:
To claim this, I am signing this object:
| # Using AREL can be very difficult when we doesn't know how to deal with it. | |
| # But it's a really amazing tool that prevent developers to write SQL queries on RoR project | |
| # Here an example of an average payment widget call | |
| class AveragePayment | |
| # Arel Nodes allows us to directly use Arel::Nodes method | |
| include Arel::Nodes | |
| CompanyPayment = Struct.new(:name, :amount, :bill_count, :average_delay) |