Skip to content

Instantly share code, notes, and snippets.

sudo launchctl load /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
sudo launchctl unload /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
# Always use the integrated graphics card while running on battery power
sudo pmset -b gpuswitch 0
# Always use the discrete graphics card while running on battery power
sudo pmset -b gpuswitch 1
# Switch between discrete and integrated graphics cards automatically while running on battery power
sudo pmset -b gpuswitch 2

How to build confuent arm64 images (from 5.4.0 till 7.0.3)

build cp-base-new

  1. clone common repo on interested branch (for example 5.5.1)
  2. in common repo: mvn -pl parent,. install (you may need to change scheama to https in repository to make it build)
  3. clone common-docker repo on interested branch (for example 5.5.1)
  4. update open ssl version, make it at least like following: <ubi.openssl.version>1.1.1k-7.el8_6</ubi.openssl.version>
  5. in repo root execute build: mvn -pl . install
  6. in separate terminal run socat TCP-LISTEN:2375,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock
  7. in common-docker repo cd base and DOCKER_HOST=http://127.0.0.1:2375 mvn clean package -Pdocker -DskipTests -Ddocker.os_type=ubi8 -Ddocker.skip-security-update-check=true