This file contains hidden or 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
// Tested on gradle 2.11 | |
task show { | |
configurations.each { | |
fileList -> | |
println fileList | |
fileList.each { | |
file -> | |
if (file == fileList.last()) { | |
print " +--- " |
This file contains hidden or 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
# Docker hosted Jetty remote JMX recipe | |
# | |
# Tested on: jetty:9.3-jre8 | |
# work with args: --module=jmx,jmx-remote | |
# | |
# IMPORTANT: Hostname parameter (java.rmi.server.hostname) important for search RMI server | |
# during connection (AFIAK) and must point to exposed, external <host:port> | |
# (see https://olegz.wordpress.com/2009/03/23/jmx-connectivity-through-the-firewall/) | |
# | |
-Djava.rmi.server.hostname={external IP/hostname} |
This file contains hidden or 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
# put this in your .bash_profile | |
if [ $ITERM_SESSION_ID ]; then | |
export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
fi | |
# Piece-by-Piece Explanation: | |
# the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
# iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
# the $PROMPT_COMMAND environment variable is executed every time a command is run | |
# see: ss64.com/bash/syntax-prompt.html |
NewerOlder