This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# veracrypt_mount.sh | |
# how to run | |
# chmod u+x veracrypt_mount.sh && sudo ./veracrypt_mount.sh | |
USER_HOME=$(eval echo ~"${SUDO_USER}") | |
VOLUME_NAME='storage' | |
VOLUME_PATH='/dev/sda3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set number | |
set listchars=eol:¬,tab:>·,trail:~,space:␣ | |
set list | |
se mouse+=a | |
set directory^=$HOME/.vim/tmp// | |
set autoindent | |
set noexpandtab | |
set tabstop=4 | |
set shiftwidth=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# prerequisites: libvips http://www.vips.ecs.soton.ac.uk | |
# http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/libvips-resample.html#vips-resize | |
# filename should looks like: `filename.jpg` | |
cwd=$(pwd) | |
# re='_([0-9]{2,4})\.(jpg|png)' | |
re='\.(jpg|jpeg|png)' |