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 | |
checkPassword () { | |
user="${1}" | |
passwordClear="${2}" | |
shadowLine=$(grep "^${user}:" /etc/shadow) | |
passwordSalted=$(strField "$shadowLine" ":" 2) | |
enc=$(strField "$passwordSalted" "$" 2) |
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 | |
# how it works: | |
# | |
# put mysql.cnf and mysql.env in a directory for an instance, cd to this directory, run `mysql-ctl.sh ...` | |
# or run `MYSQL_INSTANCE_ROOT=the_directory mysql-ctl.sh ...` | |
# | |
# mysql.cnf keeps all configurations except directory-related things (eg: do not set data or log dir in mysql.cnf) | |
# the mysql.cnf and directory-related configs will be automatically merged into the MYSQL_INSTANCE_CONFIG_FINAL file | |
# |
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 | |
SYSTEM_PYTHON="python3.6" | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
export VIRTUAL_ENV="$DIR/.venv" | |
PIP="$VIRTUAL_ENV/bin/pip" | |
PYTHON="$VIRTUAL_ENV/bin/python" |
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
{ | |
"title": "Mine", | |
"rules": [ | |
{ | |
"description": "Simultaneously press Up/Down + Right to get a PageUp/Down", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"simultaneous": [{"key_code": "up_arrow"}, {"key_code": "right_arrow"}], |