https://wiki.archlinux.org/index.php/SANE
https://www.archlinux.org/packages/extra/x86_64/sane/
Install sane
yaourt -S sane --noconfirm
You may need to unplug and plug the scanner in order to make sane
discover it.
https://wiki.archlinux.org/index.php/SANE
https://www.archlinux.org/packages/extra/x86_64/sane/
Install sane
yaourt -S sane --noconfirm
You may need to unplug and plug the scanner in order to make sane
discover it.
#! /usr/bin/env bash | |
# I HATE INTERMITTENT TESTS | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
GREEN='\033[0;32m' | |
seed=2499 |
REDIS
if value is of type string -> GET <key>
if value is of type hash -> HGETALL <key>
if value is of type lists -> lrange <key> <start> <end>
if value is of type sets -> smembers <key>
if value is of type sorted sets -> ZRANGEBYSCORE <key> <min> <max>
command to check the type of value a key mapping to:
HEROKU_ENVIRONMENT=staging | |
heroku maintenance:on --remote "$HEROKU_ENVIRONMENT" | |
heroku ps:scale --remote "$HEROKU_ENVIRONMENT" > dynoscales | |
heroku ps:scale $(heroku ps:scale --remote "$HEROKU_ENVIRONMENT" | sed -E 's/=([0-9]+):/=0:/g') --remote "$HEROKU_ENVIRONMENT" | |
git push "$HEROKU_ENVIRONMENT" HEAD:master | |
# You should check first if you need to run any other scrips before atempting to deploy to production |
WebUI: | |
https://localhost:15672 |
:if (has_key(g:plugs, 'nerdtree')) | echo "REE" | endif |
$ ssh -Y hey@myip
inside VIM, type :echo has('clipboard')
, if it returns 0 then it means it needs to install another distribution that comes with cliboard.
On Ubuntu you can install vim-gtk or vim-gtk3 to install VIM with clipboard, but first you need to remove the current VIM:
$ sudo apt remote vim
$ scp -pvC [email protected]:/awesomecsvfile.csv .
WIP
One of the problems I've faced recently was a ruby class that heavily used merge!
through all their methods.
If you don't know what .merge
do, let me explain it first:
If you have a ruby hash and want to add a new key with a value you have two ways to do it:
product = {
sku: 'SKU1234567'
}