git rm --cached file1.txt
git commit -m "remove file1.txt"
git init
@echo off | |
setlocal EnableDelayedExpansion | |
SET p=%~dp0 | |
SET thisdir=%p:~0,-1% | |
FOR %%a IN ("%thisdir%") DO SET p=%%~dpa | |
set parentdir=%p:~0,-1% | |
echo %thisdir% | |
echo %parentdir% |
#!/bin/sh | |
this_folder="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | |
if [ -z "$this_folder" ]; then | |
this_folder=$(dirname $(readlink -f $0)) | |
fi | |
parent_folder=$(dirname $this_folder) | |
# include file | |
if [ ! -f "$this_folder/variables.inc" ]; then |
# Find Process ID of process that uses a Port | |
netstat -aon | findstr 8080 | |
# kill the process | |
Taskkill /PID 26356 /F |
// /collection | |
// get | |
// 00_get_checkNumberOf_insert_checkNumberOf_delete_checkNumberOf | |
// post | |
// 10_post_getObj_checkEquals | |
// 11_post_not_valid_obj_422 | |
// 12_post_not_existent_collectionId_404 (in case of nested collection) | |
// 13_post_to_conflic_or_constraint_409 (duplicate, etc...) | |
// put (upsert) | |
// 20_put_checkNumberOf_insert_getObj_checkEquals_checkNumberOf |
### run into container | |
docker run -it <image:version> bash | |
### attach to container | |
docker exec -it <image:version> bash |
@echo off | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
set this_script=%~f0 | |
for %%F in ("%this_script%") do set script_folder=%%~dpF | |
set pwd=%cd% | |
if [%1]==[] goto usage | |
if [%2]==[] goto usage |
<?xml version="1.0"?> | |
<ruleset name="Custom Rules" | |
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.net/ruleset_2_0_0.xsd"> | |
<description> | |
custom static analysis rules | |
</description> | |
<?xml version="1.0"?> | |
<ruleset name="Custom Rules" | |
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.net/ruleset_2_0_0.xsd"> | |
<description> | |
custom static analysis rules | |
</description> |
<build> | |
<plugins> | |
... | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-pmd-plugin</artifactId> | |
<version>3.10.0</version> | |
<executions> | |
<execution> | |
<!-- results in target/pmd.xml and target/site/pmd.html --> |