Skip to content

Instantly share code, notes, and snippets.

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
# 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
sudo launchctl load /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
sudo launchctl unload /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
#!/bin/bash
for i in $(gcloud pubsub subscriptions list | grep name | cut -d: -f2); do
echo updating retry-policy for $i
gcloud pubsub subscriptions update $i --min-retry-delay=10s --max-retry-delay=600s
echo updated
done
placeholder for name
@spiashko
spiashko / _my-user-bin-folder
Last active October 27, 2020 17:54
my user bin folder
just placeholder for name
mvn clean package -pl <module_folder_name> -am
open mat.app --args -data ~/mat-working-dir -vmargs -Xmx3g
<LanguageInjectionConfiguration>
<injection language="PostgreSQL" injector-id="xml">
<display-name>postgres sql highlight</display-name>
<place><![CDATA[xmlTag().withLocalName(string().matches(".*"))]]></place>
<xpath-condition>parent::*/comment()[. = 'postgres sql highlight']</xpath-condition>
</injection>
</LanguageInjectionConfiguration>
#!/bin/sh
ENTITY_NAME=$1
NEW_ENTITY_NAME=$2
find . -name "$ENTITY_NAME*.java" \
-exec rename -n 's,'"$ENTITY_NAME"'(.*).java,'"$NEW_ENTITY_NAME"'$1.java,i' {} \;
read -p "Are you sure? " -n 1 -r
echo # (optional) move to a new line