Skip to content

Instantly share code, notes, and snippets.

View mlsmaycon's full-sized avatar

Maycon Santos mlsmaycon

View GitHub Profile
@mlsmaycon
mlsmaycon / rollback-ca-certs.sh
Created January 31, 2025 14:48
Rollback CA certs on busybox
#!/bin/sh
#
# rollback-ca-certs.sh
#
# This script restores the backed-up certificate files from a given backup directory.
set -euo pipefail
# We expect the path to the backup directory as an argument
if [ "$#" -lt 1 ]; then
@mlsmaycon
mlsmaycon / update-ca-certs.sh
Created January 31, 2025 14:46
Update CA certs on busy box
#!/bin/sh
#
# update-ca-certs.sh
#
# This script backs up existing CA certificates and then replaces them.
set -euo pipefail
# Where we will store the backup; includes a timestamp
BACKUP_DIR="/root/ca-certificates-backup-$(date +'%Y%m%d%H%M%S')"
@mlsmaycon
mlsmaycon / troubleshooting-information
Last active June 27, 2019 03:53
troubleshooting-information for copy command on scyllaDB
#### DOCKER CONTAINER VERSION scylladb/scylla:3.0.7
[root@93d86c158b0b restore]# scylla --version
3.0.7-0.20190528.4c16c1fe1
[root@93d86c158b0b restore]# cqlsh --version
cqlsh 5.0.1
#### SCHEMA
[root@93d86c158b0b restore]# cqlsh -e 'DESC SCHEMA';