I hereby claim:
- I am cbrocas on github.
- I am cbrocas (https://keybase.io/cbrocas) on keybase.
- I have a public key ASAHL5IZag6H82CD433mBmJP1TGxLimK-UZz06IyWH3dxQo
To claim this, I am signing this object:
# my aliases | |
# | |
alias gh="history | grep" | |
alias myip="curl http://ipecho.net/plain; echo" |
I hereby claim:
To claim this, I am signing this object:
dd if=image.iso of=/dev/sdx bs=4M status=progress && sync |
file="$1" | |
gs -dSAFER -dBATCH \ | |
-dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \ | |
-sColorConversionStrategy=CMYK \ | |
-dProcessColorModel=/DeviceCMYK \ | |
-sOutputFile="${file%.pdf}_cmyk.pdf" \ | |
"$file" |
- Renaming all *.JPG files according the EXIF date taken of the picture (it gives : 2014-11-24_13-13-42.jpg) : | |
#jhead -n%Y-%m-%d_%H-%M-%S *.JPG | |
- Rotate all jpeg pictures of a directory : | |
#jhead -autorot *.jpg | |
- Rename & rotate recursively *.JPG files (and here, *.jpg also due to non sensitive search with the -iname option) starting from local directory : |
server : PS1="\[\e[00;37m\][\[\e[0m\]\[\e[00;32m\]\u\[\e[0m\]\[\e[00;37m\]@\[\e[0m\]\[\e[ 00;31m\]\H\[\e[0m\]\[\e[00;37m\] \[\e[0m\]\[\e[00;36m\]\w\[\e[0m\]\[\e[00;37m\]] \[\e[0m\]" | |
local : PS1="\[\e[00;37m\][\[\e[0m\]\[\e[00;32m\]\u\[\e[0m\]\[\e[00;37m\]@\[\e[0m\]\[\e[ 00;33m\]\H\[\e[0m\]\[\e[00;37m\] \[\e[0m\]\[\e[00;36m\]\w\[\e[0m\]\[\e[00;37m\]] \[\e[0m\]" |
#!/bin/sh | |
USER="uid" | |
SERVER="hostname" | |
PORT="22" | |
SSHID="/volume1/homes/admin/.ssh/id_rsa" | |
SOURCE1="/var/lib/automysqlbackup/" | |
TARGET1="/volume1/homes/admin/backups/hostname/automysqlbackup/" | |
SOURCE2="/var/cache/rsnapshot/" | |
TARGET2="/volume1/homes/admin/backups/hostname/rsnapshot/" |