Skip to content

Instantly share code, notes, and snippets.

View brunocmorais's full-sized avatar

Bruno Costa de Morais brunocmorais

View GitHub Profile
@brunocmorais
brunocmorais / crc.ino
Created August 13, 2024 20:31
Simple Arduino CRC32 calculator
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available() == 0) {
String text = Serial.readString();
if (text.length() > 0) {
unsigned long crc = crc32(text);
@brunocmorais
brunocmorais / README.md
Last active June 5, 2023 16:35
Useful docker-compose files!

Useful docker-compose files

Find here some very useful docker-compose.yml files below, are they:

  • Elasticsearch/Kibana
  • RabbitMQ Management
  • MySQL
  • PostgreSQL
  • Redis
  • Nginx
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": false,
"console_title_template": "{{ .UserName }}@{{ .HostName }}: {{ .PWD }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
@brunocmorais
brunocmorais / BusyboxDocker.sh
Last active October 18, 2025 23:55
How to build a simple and minimalistic BusyBox Docker image from scratch, without pulling it from Docker Hub
#!/usr/bin/env sh
if [ -d rootfs ]
then
rm -rf rootfs/
fi
mkdir rootfs
mkdir rootfs/bin
mkdir rootfs/etc