This is a SCRIPT-8 cassette.
This is a SCRIPT-8 cassette.
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
PS1="\W\$ " # working dir | |
if [[ $EUID -eq 0 ]]; then # root user | |
PS1="\W\e[1;31m\]\$ \e[0m" # show '$' in red | |
fi | |
export PS1 | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced |
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
public final static ObjectMapper mapper = new ObjectMapper() | |
.findAndRegisterModules() | |
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) | |
.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false) | |
.configure(SerializationFeature.INDENT_OUTPUT, true) | |
.configure(Feature.ALLOW_COMMENTS, true) | |
.configure(Feature.ALLOW_SINGLE_QUOTES, true) | |
.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true) | |
.configure(Feature.ALLOW_YAML_COMMENTS, true) | |
.configure(Feature.ALLOW_UNQUOTED_CONTROL_CHARS, true) |
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 | |
# Convert given date to timestamp | |
# Date format: YYYY-MM-DD (2020-02-28) | |
# If no argument given use current date | |
CURDATE=`date +%F` | |
DATE=${1:-$CURDATE} | |
echo "Arg/Cur: $DATE" |
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
git diff-index --quiet HEAD -- || ( echo "Uncommitted changes" && exit 1 ) |
OlderNewer