- Updated on May 29 to accommodate etcd container not having
/bin/shavailable anymore.
curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
| #!/usr/bin/env bash | |
| # | |
| # Usage: [dry_run=1] [debug=1] [interface=tunsnx] docker-fix-snx | |
| # | |
| # Credits to: https://github.com/docker/for-linwux/issues/288#issuecomment-825580160 | |
| # | |
| # Env Variables: | |
| # interface - Defaults to tunsnx | |
| # dry_run - Set to 1 to have a dry run, just printing out the iptables command | |
| # debug - Set to 1 to see bash substitutions |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-d] [--no-color] [-f] -p param_value arg1 [arg2...] |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| # Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). | |
| # Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and | |
| # run `sudo service procps start` or reboot. | |
| # Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit | |
| # | |
| # More information resources: | |
| # -$ man inotify # manpage | |
| # -$ man sysctl.conf # manpage | |
| # -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use |
| -server | |
| -Xms2g | |
| -Xmx2g | |
| -Xss16m | |
| -XX:+UseConcMarkSweepGC | |
| -XX:+CMSParallelRemarkEnabled | |
| -XX:ConcGCThreads=4 | |
| -XX:ReservedCodeCacheSize=128m | |
| -XX:+AlwaysPreTouch | |
| -XX:+TieredCompilation |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
| var LatLngList = new Array (new google.maps.LatLng (52.537,-2.061), new google.maps.LatLng (52.564,-2.017)); | |
| // Create a new viewpoint bound | |
| var bounds = new google.maps.LatLngBounds (); | |
| // Go through each... | |
| for (var i = 0, LtLgLen = LatLngList.length; i < LtLgLen; i++) { | |
| // And increase the bounds to take this point | |
| bounds.extend (LatLngList[i]); | |
| } | |
| // Fit these bounds to the map | |
| map.fitBounds (bounds); |