Skip to content

Instantly share code, notes, and snippets.

@thalesmaoa
thalesmaoa / influxdb_docker_rpi3.md
Last active January 3, 2024 19:13
A definitive guide to run Influxdb QL with Raspberry Pi 3 RPi3

In simple words, everything works flawleslly at first installation. Soon enough, the database grow and high RAM usage appear. The problem emerge due to 32bit version. If you like to use 64bit, you need to migrate to Flux language.

Just use an external drive to store your database.

$ tree
.
├── config
│   └── influxdb.conf
@thalesmaoa
thalesmaoa / README.md
Created October 19, 2021 19:06
Flatpak systemwide Elementary OS
sudo flatpak remote-add --if-not-exists --system flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install --system flathub org.telegram.desktop
@thalesmaoa
thalesmaoa / Fix_cedilha.md
Created October 15, 2021 12:38
Fix cedilha in flatpak apps
flatpak override --user --env=GTK_IM_MODULE=cedilla net.xmind.XMind8
flatpak override --user --env=GTK_IM_MODULE=cedilla com.microsoft.Teams
@thalesmaoa
thalesmaoa / Chromium Linux.md
Created February 24, 2021 20:43 — forked from marians/Chromium Linux.md
How to install CA certificates and PKCS12 key bundles on different platforms

We install certutil and pk12util if necessary:

sudo apt install libnss3-tools

On Linux, Chromium uses the NSS Shared DB. Check if you have the ~/.pki/nssdb directory:

ls $HOME/.pki/nssdb
@thalesmaoa
thalesmaoa / gdrive_download.md
Created September 16, 2019 19:30 — forked from vladalive/gdrive_download.md
Download Google Drive files from linux terminal via wget

Setup:

  1. Add this code to your ~/.bash_aliases file.
function gdrive_download () {
  CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')
  wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2
  rm -rf /tmp/cookies.txt
}
@thalesmaoa
thalesmaoa / pywebsock.html
Created October 16, 2015 12:14 — forked from tanmaykm/pywebsock.html
Minimal WebSocket Broadcast Server in Python
<!DOCTYPE html>
<html>
<head>
<title>Websocket Demo</title>
<style>
#messages {
border: dotted 1px #444444;
font: 12px arial,sans-serif;
}