I hereby claim:
- I am akarzim on github.
- I am akarzim (https://keybase.io/akarzim) on keybase.
- I have a public key ASD_kvOPf8DwAJ3kMZ2viboTc9bqLfdB6gVMqXtsX_aY6wo
To claim this, I am signing this object:
| #!/bin/sh | |
| # Source du backup | |
| SRC="/home/akarzim/Documents" | |
| # Destination du backup | |
| DST="/media/SDBackup" | |
| UUID="/dev/disk/by-uuid/02e610cf-1cda-4891-b6f5-486d216a4d39" | |
| # Date de la forme année-mois-jour-timestamp | |
| # (le timestamp %s sert si on veut faire plusieurs sauvegardes dans la même journée) | |
| DATE=`date +%Y-%m-%d-%s` |
| # https://github.com/TwP/logging/ | |
| # Temporarily log with or without backtrace | |
| # | |
| # Usage: | |
| # require 'logging' | |
| # logger = Logging.logger(STDOUT) | |
| # logger.with_backtrace do | |
| # logger.error StandardError.new('oups!') | |
| # end | |
| # |
I hereby claim:
To claim this, I am signing this object:
| # | |
| # Set key binding to extend aliases. | |
| # | |
| # Authors: | |
| # François Vantomme <[email protected]> | |
| # | |
| # Return if requirements are not found. | |
| if [[ "$TERM" == 'dumb' ]]; then | |
| return 1 |
| alias l='exa -1a' # Lists in one column, hidden files. | |
| alias ll='exa -l' # Lists human readable sizes. | |
| alias lr='ll -R' # Lists human readable sizes, recursively. | |
| alias la='ll -a' # Lists human readable sizes, hidden files. | |
| alias lm='la | "$PAGER"' # Lists human readable sizes, hidden files through pager. | |
| alias lx='ll --sort=Extension' # Lists sorted by extension (GNU only). | |
| alias lk='ll --sort=size -r' # Lists sorted by size, largest last. | |
| alias lt='ll --sort=modified -r' # Lists sorted by date, most recent last. | |
| alias lc='lt -m' # Lists sorted by date, most recent last, shows change time. | |
| alias lu='lt -u' # Lists sorted by date, most recent last, shows access time. |
| # The options are: | |
| # --color dark - use a colour scheme | |
| # -rr - read-only mode (prevents delete and spawn shell) | |
| # --exclude ignore directories I won't do anything about | |
| alias du='ncdu --color dark -rr -x --exclude .git --exclude node_modules' |
| function brip { | |
| sudo /sbin/route -n add -net 192.168.0.0/16 -gateway $(docker-machine ip) | |
| sudo /sbin/route -n add -net 172.19.0.0/12 -gateway $(docker-machine ip) | |
| interface=$(ifconfig bridge100 | grep member | cut -d ' ' -f 2) | |
| sudo ifconfig bridge100 -hostfilter "$interface" | |
| } |