Skip to content

Instantly share code, notes, and snippets.

@PieterScheffers
Last active August 28, 2020 23:03
Show Gist options
  • Save PieterScheffers/274b8e46220d28bf77e8cf76bfd0f53e to your computer and use it in GitHub Desktop.
Save PieterScheffers/274b8e46220d28bf77e8cf76bfd0f53e to your computer and use it in GitHub Desktop.

Revisions

  1. PieterScheffers revised this gist Mar 19, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions transip_stack_clear_trash.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ curl \
    -X POST \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '[{"action":"delete","all":true,"path":"/","query":""}]'
    -u "${STACK_USER}:${STACK_PASSWORD}"
    -d '[{"action":"delete","all":true,"path":"/","query":""}]' \
    -u "${STACK_USER}:${STACK_PASSWORD}" \
    https://$STACK_URL/api/trashbin

  2. PieterScheffers revised this gist Mar 19, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion transip_stack_clear_trash.sh
    Original file line number Diff line number Diff line change
    @@ -11,5 +11,5 @@ curl \
    -H "Accept: application/json" \
    -d '[{"action":"delete","all":true,"path":"/","query":""}]'
    -u "${STACK_USER}:${STACK_PASSWORD}"
    https://@$STACK_URL/api/trashbin
    https://$STACK_URL/api/trashbin

  3. PieterScheffers revised this gist Mar 19, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion transip_stack_clear_trash.sh
    Original file line number Diff line number Diff line change
    @@ -5,10 +5,11 @@ STACK_USER=myuser
    STACK_PASSWORD=nooneknowsthis

    curl \
    --silent \
    -X POST \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '[{"action":"delete","all":true,"path":"/","query":""}]'
    -u "$STACK_USER:$STACK_PASSWORD"
    -u "${STACK_USER}:${STACK_PASSWORD}"
    https://@$STACK_URL/api/trashbin

  4. PieterScheffers created this gist Mar 19, 2019.
    14 changes: 14 additions & 0 deletions transip_stack_clear_trash.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/bin/sh

    STACK_URL=myuser.stackstorage.com
    STACK_USER=myuser
    STACK_PASSWORD=nooneknowsthis

    curl \
    -X POST \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '[{"action":"delete","all":true,"path":"/","query":""}]'
    -u "$STACK_USER:$STACK_PASSWORD"
    https://@$STACK_URL/api/trashbin