- clone common repo on interested branch (for example 5.5.1)
- in common repo:
mvn -pl parent,. install
(you may need to change scheama to https in repository to make it build) - clone common-docker repo on interested branch (for example 5.5.1)
- update open ssl version, make it at least like following:
<ubi.openssl.version>1.1.1k-7.el8_6</ubi.openssl.version>
- in repo root execute build:
mvn -pl . install
- in separate terminal run
socat TCP-LISTEN:2375,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock
- in common-docker repo
cd base
andDOCKER_HOST=http://127.0.0.1:2375 mvn clean package -Pdocker -DskipTests -Ddocker.os_type=ubi8 -Ddocker.skip-security-update-check=true
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo launchctl load /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist | |
sudo launchctl unload /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
placeholder for name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
just placeholder for name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn clean package -pl <module_folder_name> -am |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open mat.app --args -data ~/mat-working-dir -vmargs -Xmx3g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder