10 cards

How to send SOAP request with curl

curl -d @message.xml -H "Content-Type: text/xml; charset=utf-8"  "endpoint"


  • message.xml - a file with the SOAP request
  • endpoint - the URL of the web-service endpoint


rename "s/DCIM/2010/" *

Add user's rights in ACL

Add full permissions for a folder:

setfacl -Rm u:ubuntu:rwx /opt/folder

Full permissions for folder and new entities in folder:

setfacl -Rm d:u:ubuntu:rwx /opt/folder

Git Usefull comands

git clean -d -f [path]
Remove untracked files, that described in ignore lists. It's usefull if you switch between branches, which of them contains removed (and ignored) file, that exists in other.

Exclude file from resource in Gradle

If you want to exclude one file from resource, you may use this snippet: sourceSets { main { resources { exclude '**/*.bak' } } }

Linked content

Add new resource folder in Gradle

If you want to add new resource folder to Gradle build, use this snippet: sourceSets { main { resources { srcDir 'src/main/java' } } }

.java (.groovy and *scala) file will be skipped on build from resources.

Linked content

Gradle. Attach task to build lifecycle

It's easy. Just add to somewhere after your task definition:
processTestResources.dependsOn recreateDatabase

  • processTestResource - default task (phase of build lifecycle)
  • recreateDatabase - your custom task, that will be called before processTestResource
Linked content

Gradle and dbmaintain


dbmaintain is plugin (best for my opinion) that allowes to safely migrate dbscheme. It has excellent support for Maven and Ant but not for Gradle. But Gradle has excellent support for Ant, so we can call dbmaintain ant tasks from Gradle build script.

A small note - I prefer to not contain any libraries in my source code repository (Git currently), so dbmaintain will be loaded from the maven's central repository.


This text don't cover work with dbmaintain. If you need more information about…

Linked content

Gradle WAR building

To build WAR by Gradle system change java plugin to war plugin:
apply plugin: 'war'
After that execute gradle:
gradle build
WAR will be in folder builds/libs/

Gradle dependecies

To view dependencies hierarchy:
gradle dependencies

This website uses cookies to improve usability and analyze traffic.
Accept or learn more