Skip to content

Instantly share code, notes, and snippets.

View pedronasc's full-sized avatar

Pedro Nascimento pedronasc

  • Votuporanga/SP
View GitHub Profile
@Paraphraser
Paraphraser / Docker-volumes.md
Last active March 31, 2025 10:55
On IOTstack and Docker volumes

On IOTstack and Docker volumes

IOTstack is a framework for running arbitrary collections of Docker containers using docker compose. The canonical example is the "MING" stack (Mosquitto, InfluxDB, Node-RED and Grafana).

From time to time, someone asks a question like this:

I have read that Docker's "volume mounts" are recommended and/or better than "bind mounts". Why does IOTstack use "bind mounts"?

Unless you understand the differences between Docker's mount types, it's difficult to see why you would want choose one type over the other. This gist attempts to explain the differences between Docker bind and volume mounts, and then answers the question of why IOTstack uses Docker bind mounts exclusively.

@Paraphraser
Paraphraser / Compiling GoSungrow.md
Last active April 19, 2025 02:43
Compiling GoSungrow

Updating GoSungrow

This gist is intended to help you deal with the following error messages:

  • Error: appkey is incorrect 'er_invalid_appkey
  • Error: unknown error 'Request is not encrypted'

This gist has four parts. The instructions you should follow depend on what you want to do:

| Part | Explains how to |

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@davidalves1
davidalves1 / linux_migrate_db_latin1_to_utf8.sh
Last active March 16, 2023 14:08
Script para alterar o schema e collation do banco de dados de Latin1 para UTF-8
#!/bin/bash
echo 'Migrar banco de dados de Latin1 para UTF-8'
echo
echo '===================='
echo
echo 'Realizando backup do banco na pasta atual'
now="$(date +'%Y%m%d-%H%M')"
# Old DB