Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
patch=$1
is_real=false
function show_helper
{
echo "usage: hot-patch.sh patch-file-path [real] servers"
echo "eg: hot-patch.sh some-patch.clj real rtm51:11111 rtm52:11111 rtm53:11111"
echo "note: without the \"real\" option, only the first server in servers list will be patched"
#!/bin/bash
set -eu
if [ "true" == $2 ]
then
echo "(ns push-server.core)\n(private-me!)" | lein repl :connect $1:32505
else
echo "(ns push-server.core)\n(public-me!)" | lein repl :connect $1:32505
fi
java -XX:+PrintFlagsFinal -version
eg. you can check the default thread stack size by "java -XX:+PrintFlagsFinal -version | grep ThreadStackSize"
Get this idea from: http://stackoverflow.com/questions/6020619/where-to-find-default-xss-value-for-sun-oracle-jvm

Keybase proof

I hereby claim:

  • I am ylgrgyq on github.
  • I am ylgrgyq (https://keybase.io/ylgrgyq) on keybase.
  • I have a public key whose fingerprint is D727 AB30 CEF7 759C 1ABF DACD 3D50 8DBE 210B DF2C

To claim this, I am signing this object: