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
public class ContextManagementExecutor | |
implements Executor { | |
private Executor executor; | |
public ContextManagementExecutor(Executor executor) { | |
this.executor = executor; | |
} | |
@Override |
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 wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
sudo sed -i s/\$basearch/x86_64/g /etc/yum.repos.d/epel-apache-maven.repo | |
sudo yum install -y apache-maven | |
mvn --version |
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 | |
echo "--- next .idea folders will be deleted: " | |
find . -type d -name '.idea' | |
echo "--- next *.iml files will be deleted: " | |
find . -name '*.iml' #-delete | |
read -p "Are you sure? " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ $REPLY =~ ^[Yy]$ ]] |
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 |
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
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
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
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
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
#!/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 |
OlderNewer