Thursday, December 2, 2021

How to set Java version for lein

To select specific Java (JDK) to use for leiningen, set environment variable JAVA_CMD

For example,

JAVA_CMD=/path/to/bin/java lein repl

Credit: https://gist.github.com/camsaul/c982019fd915510677236cd4b720a583#gistcomment-3439527 

Saturday, October 2, 2021

Friday, September 24, 2021

Links related to how force macOS to use integrated/discrete graphics


Copied from the above post in case the post is gone


sudo pmset -a gpuswitch 0

-b when on battery
-c when on AC power
-a always

0 iGPU only
1 dGPU only
2 automatic graphics switching

To reset everything back to default:
sudo pmset -a gpuswitch 2

Collectd PostgreSQL Plugin

I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...