$ curl -X POST -d @content.json -H "Content-Type: application/json" -H "Accept: application/json" http://localhost/
$ cat content.json
{
"files":{
"main.tex":"XGRvY3VtZW50Y2xhc3N7YXJ0aWNsZX0KXGJlZ2lue2RvY3VtZW50fQpcaW5jbHVkZXt0ZXN0L3Rlc3R9ClxlbmR7ZG9jdW1lbnR9",
"test/test.tex":"aGFsbG8gd2VsdA=="
}
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
sinnvolle Argumente für interaktiven Aufruf: | |
nice -n 19 ionice -c 3 rsync -a -x -AHX -S --numeric-ids --del_ete(-after) -v -P --stats -h -y | |
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) | |
[ | |
-r, --recursive recurse into directories | |
-l, --links copy symlinks as symlinks | |
-p, --perms preserve permissions | |
-t, --times preserve modification times | |
-g, --group preserve group |
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
# pure tools | |
sudo apt-get install \ | |
sudo \ | |
net-tools \ | |
screen \ | |
tmux \ | |
mc \ | |
nano \ | |
ncdu \ |
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
Get-ChildItem *.pdf | Rename-Item -newname {$_.LastWriteTime.toString("yyyy-MM-dd-HH-mm") + $_.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
# run as non-privileged user | |
xauth extract - $DISPLAY | sudo xauth merge - |
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 | |
# execute in a directory with the respective PDF files only | |
echo "Execute this script only if" | |
echo " 1. this directory contains only the PDF files you want to merge" | |
echo " 2. you have no problem that this script will rename them" | |
echo " 3. you downloaded them in their linear order (first chapter first; this tool is based on the creation date)" | |
read -rsp $'Press enter to continue or CRTL-C to abort...\n' |
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
docker stop $(docker ps -a -q) ; docker rm $(docker ps -a -q) ; docker rmi $(docker images -a -q) |
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
image: docker:stable | |
variables: | |
DOCKER_HOST: tcp://docker:2375/ | |
DOCKER_DRIVER: overlay2 | |
# from https://gitlab.com/gitlab-org/gitlab-runner/issues/1350 | |
services: | |
- name: docker:dind | |
command: |
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 dir in */ ; do | |
echo -ne "$dir \t " | |
git -C "$dir" rev-parse &> /dev/null | |
CODE=$? | |
if [[ "$CODE" -eq "0" ]]; then | |
echo -ne "is a git repository " | |
git -C "$dir" remote get-url origin &> /dev/null | |
CODE=$? | |
if [[ "$CODE" -eq "0" ]]; then |
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
https://regex101.com/r/jcpyd3/1 ❤️ #create #test #dispaygroups | |
https://www.nodexr.net/ ❤️ #create #debug #visualize | |
https://regexr.com/ # create | |
https://regex-generator.olafneumann.org/ #wizard | |
https://extendsclass.com/regex-tester.html #create #debug #visualize | |
http://www.txt2re.com/ #wizard #broken |
OlderNewer