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 | |
# Color highlighting for bash scripts | |
# by Balke, Matthias <Matthias.Balke@gmail.com> 2013-2014 | |
# | |
# usage: | |
# just pipe the output of a script throug this script | |
# | |
# tail -f myLog.log | hightlight.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
$ execPid.sh mySpringBoot "java -jar target/spring-boot-sample-actuator-ui-1.0.1.BUILD-SNAPSHOT.jar" | |
7216 | |
. ____ _ __ _ _ | |
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ | |
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ | |
\\/ ___)| |_)| | | | | || (_| | ) ) ) ) | |
' |____| .__|_| |_|_| |_\__, | / / / / | |
=========|_|==============|___/=/_/_/_/ | |
:: Spring Boot :: (v1.0.1.BUILD-SNAPSHOT) |
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/sh | |
# calculates the usage of every directory in the current directory | |
du -sch ./* | sort -h |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json] | |
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}" | |
"Encoding"=dword:00013880 | |
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/hal+json] | |
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}" | |
"Encoding"=dword:00013880 |
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 | |
# ... | |
# usage: deleteGradleCache groupId | |
deleteGradleCache() { | |
local id=$1 | |
if [ -z "$id" ]; then | |
echo "Please provide an group or artifact id to delete" | |
return 1 |
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
// found here: http://jdpgrailsdev.github.io/blog/2014/10/28/gradle_resolve_all_dependencies.html | |
task resolveDependencies { | |
doLast { | |
project.rootProject.allprojects.each { subProject -> | |
subProject.buildscript.configurations.each { configuration -> | |
resolveConfiguration(configuration) | |
} |
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 | |
deleteGradleCache() { | |
local id=$1 | |
if [ -z "$id" ]; then | |
echo "Please provide an group or artifact id to delete" | |
return 1 | |
fi | |
find ~/.gradle/caches/ -type d -name "$id" -prune -exec rm -rf "{}" \; -print | |
} |
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
openssl x509 -inform DER -in Deutsche_Telekom_Root_CA_2.cer -outform PEM -out Deutsche_Telekom_Root_CA_2.pem |
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
openssl x509 -in Deutsche_Telekom_Root_CA_2.pem -noout -text | less | |
openssl x509 -in Deutsche_Telekom_Root_CA_2.pem -noout -issuer -subject| less | |
openssl x509 -in Deutsche_Telekom_Root_CA_2.pem -noout -serial -fingerprint -issuer -subject -dates | less | |
# Check an MD5 hash of the public key to ensure that it matches with what is in a CSR or private key | |
# source: https://www.sslshopper.com/article-most-common-openssl-commands.html | |
openssl x509 -noout -modulus -in certificate.crt | openssl md5 | |
openssl rsa -noout -modulus -in privateKey.key | openssl md5 | |
openssl req -noout -modulus -in CSR.csr | openssl md5 |
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
openssl s_client -showcerts -state -crlf -ign_eof -connect www.heise.de:443 |
OlderNewer