Skip to content

Instantly share code, notes, and snippets.

View BoboTiG's full-sized avatar
🐍
Charmeur de serpents

Mickaël Schoentgen BoboTiG

🐍
Charmeur de serpents
View GitHub Profile
@BoboTiG
BoboTiG / docker.sh
Last active April 30, 2021 14:59
Medium - The Mystery of the Endless HTTPS Call
docker run ubuntu:latest bash -c "\
apt update \
&& apt install -y curl \
&& curl -k -v --trace-time 'https://<HOST>/nuxeo/api/v1/upload/<BATCH_ID>/0/execute/FileManager.Import' -H 'X-Batch-No-Drop: true' -H 'Content-Type: application/json' -H 'Cookie: X-Authentication-Token=<TOKEN>' --data-raw '{\"context\":{\"currentDocument\":\"/default-domain/UserWorkspaces/<USER>\"}}'"
@BoboTiG
BoboTiG / docker-ping.sh
Last active April 30, 2021 14:59
Medium - The Mystery of the Endless HTTPS Call
docker run ubuntu:latest bash -c "\
apt update \
&& apt install -y curl iputils-ping \
&& curl -k -v --trace-time 'https://<HOST>/nuxeo/api/v1/upload/<BATCH_ID>/0/execute/FileManager.Import' -H 'X-Batch-No-Drop: true' -H 'Content-Type: application/json' -H 'Cookie: X-Authentication-Token=<TOKEN>' --data-raw '{\"context\":{\"currentDocument\":\"/default-domain/UserWorkspaces/<USER>\"}}' \
& ping -f -i 0.1 <HOST>"