+------------------+
|These push their | +-----------------------+
|respective syscall| |This overwrites the |
|dispatch functions| |saved dispatch function|
|onto the stack | |with hndl_alltraps |
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
# u-blox commands for activating SFRBX/RAWX (using RTKLIB) with M8N FW 3.01 | |
# tested on an | |
# HW UBX-M8030 00080000*60 | |
# EXT CORE 3.01 (107900)*33 | |
# ROM BASE 2.01 (75331)*19 | |
# FWVER=SPG 3.01*46 | |
# PROTVER=18.00*11 | |
# issue these commands in a terminal that supports sending HEX (e.g. ScriptCommunicator) |
This simply requires you to install the boto3
package and set the DOCKER_BUCKET
variable to point at the bucket you would like to clean up, and the rest should be handled automatically. That's is presuming you have credentials to manage the S3 bucket in one of the default locations where Boto go to look for them.
Since the script more or less traverses through your entire S3 bucket, it probably makes sense to only run it infrequently, like daily or weekly, depending on the amount of repositories and layers you have and the amount of updates on the registry in total.
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 | |
set -e | |
USAGE="Usage: $0 [ip_address | reset]" | |
if [ "$#" == "0" ]; then | |
echo "$USAGE" | |
exit 1 | |
fi |