Skip to content

Instantly share code, notes, and snippets.

public class ContextManagementExecutor
implements Executor {
private Executor executor;
public ContextManagementExecutor(Executor executor) {
this.executor = executor;
}
@Override
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
#!/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]$ ]]
#!/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
<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>
open mat.app --args -data ~/mat-working-dir -vmargs -Xmx3g
mvn clean package -pl <module_folder_name> -am
@spiashko
spiashko / _my-user-bin-folder
Last active October 27, 2020 17:54
my user bin folder
just placeholder for name
placeholder for name
#!/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