Skip to content

Instantly share code, notes, and snippets.

View rcaldas-com's full-sized avatar

Robson Caldas rcaldas-com

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rcaldas84 on github.
  • I am rcaldas (https://keybase.io/rcaldas) on keybase.
  • I have a public key ASBZ-gq_jk-AuF7hV8MR9-QzMOiOgCGoUzkOq_LojHotwAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am rcaldas-com on github.
  • I am rcaldas (https://keybase.io/rcaldas) on keybase.
  • I have a public key ASBZ-gq_jk-AuF7hV8MR9-QzMOiOgCGoUzkOq_LojHotwAo

To claim this, I am signing this object:

@rcaldas-com
rcaldas-com / README.md
Created September 1, 2021 16:29 — forked from taxilian/README.md
Mongodb scripts for incremental backup

Introduction

I can't take credit for much of the work here -- I adapted it from this blog post: https://tech.willhaben.at/mongodb-incremental-backups-dff4c8f54d58

My main contribution was to make it a little easier to use with docker as well as numerous little cleanup tasks. I also made it gzip the oplog backups and added support for SSL connections

Note that I havne't yet tested the point in time restore script; it likely needs work, particularly to make things work with the gzipped oplog files

@rcaldas-com
rcaldas-com / test_disk.sh
Created July 19, 2022 15:46 — forked from kvaps/test_disk.sh
Test disk with fio and parse results
#!/bin/sh
run(){
name="$1"
shift
(
set -x
# defailt parameters
fio -name="$name" -filename=$disk -output-format=json -ioengine=libaio -direct=1 -randrepeat=0 "$@" > results/$disk_dashed-$name.json
)
@rcaldas-com
rcaldas-com / AdbCommands
Created August 10, 2022 08:03 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader