This is a SCRIPT-8 cassette.
View git-commands.sh
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 ) |
View date-to-ts.sh
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" |
View ObjectMapperConfig.java
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) |
View .bashrc
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 |
View README.md
This is a SCRIPT-8 cassette.
View README.md
This is a SCRIPT-8 cassette.
View README.md
This is a SCRIPT-8 cassette.
View keybindings.json
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "cmd+shift+o", | |
"command": "workbench.action.quickOpen" | |
}, | |
{ | |
"key": "cmd+o", | |
"command": "workbench.action.showAllSymbols" | |
}, |
View jvm-mon.rb
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
# Documentation: http://docs.brew.sh/Formula-Cookbook.html | |
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula | |
class JvmMon < Formula | |
desc "Console based JVM monitoring" | |
homepage "https://github.com/ajermakovics/jvm-mon" | |
url "https://github.com/ajermakovics/jvm-mon/releases/download/0.2/jvm-mon-0.2.tar.gz" | |
sha256 "3f85e8fec42449d8af831657ede96c9b7a5d12e80b35dbbc14f2e00eae301f28" | |
depends_on :java => "1.8+" |
NewerOlder