Skip to content

Instantly share code, notes, and snippets.

View bergpb's full-sized avatar
🏠
Working from home

Lindemberg Barbosa bergpb

🏠
Working from home
View GitHub Profile
@hivian
hivian / raspberry-pi-static-ip.md
Last active October 31, 2025 21:45
Set a static IP Address on Raspberry Pi OS Bookworm (october 2023 update)

Use static network IP address on Raspberry PI Bookworm

With the release of Raspberry Pi OS Bookworm, networking on the Raspberry Pi was changed to use NetworkManager as the standard controller for networking, replacing the previous dhcpcd system. NetworkManager includes a command line tool called "nmcli," which can control NetworkManager and report on the network status.

Step 1

Display the list of network interfaces:

sudo nmcli -p connection show
@fabriciojf
fabriciojf / uptime-kuma.conf
Created October 23, 2023 16:50 — forked from spiritualized/uptime-kuma.conf
Uptime Kuma reverse proxy nginx config for a URL prefix
# nginx configuration snippet for running Uptime Kuma on a URL prefix
# set up for yourdomain.com/kuma, with traffic forwarded to a docker
# container with the hostname 'uptime-kuma'
# Use docker's DNS
resolver 127.0.0.11;
# uptime kuma
location /uptime {
@LiquidityC
LiquidityC / Makefile
Last active December 26, 2025 00:21
Generic drop in Makefile
VERSION = \"1.0.0\"
PREFIX ?= out
INCDIR = include
SRCDIR = src
LANG = c
OBJDIR = .obj
MODULE ?= binary_name
CC ?= gcc

Checkbox Tables in Markdown

An attempt to make a list of the supported ways to make a table with checkboxes in Markdown.

Results as of October 2023.


Below is the style element that formats the colors of the colored check mark emojis.

@dailson-igo
dailson-igo / gist:17ab594ebd40078219a2e72096609bd2
Last active September 2, 2025 18:19
Complementos e Configurações para Usar Ruby on Rails com o VScode

Configurando o VScode para Desenvolver com Ruby on Rails

TODO: Separar talvez em 3 partes: 1) entre configuração mínima; 2) complementos que ajudam ; e 3) debug

Instalar o Ruby on Rails com o RBEnv

https://github.com/rbenv/rbenv

Pacotes Necessários para Debian e Derivados

$ sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn libpq-dev
@Dan6erbond
Dan6erbond / moviebot.py
Last active October 1, 2025 21:56
Organizarr
import os
import sys
import PTN
import requests
from dotenv import load_dotenv
from sanitize_filename import sanitize
load_dotenv()
@thiagoponte
thiagoponte / cf-dynamodb.yaml
Created October 28, 2022 13:08
CF template to deploy an Amazon DynamoDB Table. The table should have a composite primary key, and one index of your choice. Explicitly define a scaling policy for the Table
AWSTemplateFormatVersion: 2010-09-09
Resources:
OrdersTable:
Type: "AWS::DynamoDB::Table"
Properties:
TableName: AuthorsTable
AttributeDefinitions:
- AttributeName: AuthorName
AttributeType: S
- AttributeName: BookTitle
@rosswf
rosswf / k3s.md
Last active February 28, 2026 10:47
Deploy HA k3s with kube-vip and MetalLB using k3sup

Prerequisites

kubectl

Install the required tools for deploying and controlling k3s.

Installation Docs:

# Download
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"