Skip to content

Instantly share code, notes, and snippets.

View bergpb's full-sized avatar
💻
https://blog.bergpb.dev

Lindemberg Barbosa bergpb

💻
https://blog.bergpb.dev
View GitHub Profile
@bergpb
bergpb / installing-postman.md
Created April 3, 2025 20:02 — forked from pmkay/installing-postman.md
Installing Postman on Ubuntu/Gnome

Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux

Although I highly recommend using a snap

sudo snap install postman

Installing Postman

tar -xzf Postman-linux-x64-5.3.2.tar.gz
#!/bin/bash
GITHUB_URL=https://github.com
NF_REPO=ryanoasis/nerd-fonts
NF_VERSION=v3.2.1
NF_NAME=FiraCode
TMP_FONT_FOLDER=tmp_font_folder
# Initial repository configuration
termux-change-repo
@bergpb
bergpb / k3s.md
Created October 31, 2024 17:29 — forked from rosswf/k3s.md
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"
@bergpb
bergpb / raspberry-pi-static-ip.md
Created October 30, 2024 12:41 — forked from hivian/raspberry-pi-static-ip.md
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
#!/bin/bash
GITHUB_URL=https://github.com
NF_REPO=ryanoasis/nerd-fonts
NF_VERSION=v3.2.1
NF_NAME=FiraCode
TMP_FONT_FOLDER=$HOME/tmp_font_folder
echo "Make sure to keep closer to the device, a few manual steps may be necessary!!!"

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@bergpb
bergpb / instructions.md
Last active December 14, 2022 12:04
k3s with MetalLB - Sketch

K3S + MetalLB

Install k3s + MetalLB in a cluster with RaspberryPi.

Instructions:

  1. Edit /boot/cmdline.txt file and the configuration at the end of line: cgroup_memory=1 cgroup_enable=memory
  2. On control node, generate a secret and install k3s:

TOKEN=`python3 -c "import secrets; print(secrets.token_hex(32))"`

@bergpb
bergpb / results.txt
Last active November 25, 2022 12:14
Speed results
----------------- SD CARD Sandisk 32GB Class 4 ----------------
pi@raspberrypi:~ $ cat /proc/cpuinfo | grep Model
Model : Raspberry Pi Zero Rev 1.3
pi@raspberrypi:~ $ ./test_disk_size.sh
Variable local not set, default will be /tmp/test_disk_speed
Variable size not set, default will be 1000
Testing writing speed...
500+0 records in
500+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 67.8816 s, 7.7 MB/s
@bergpb
bergpb / test_disk_speed.sh
Created November 25, 2022 11:45
Test disk speed using dd
#!/bin/bash
local=$1
size=$2
if [[ ! -n $local ]]; then
echo "Variable local not set, default will be /tmp/test_disk_speed"
local='/tmp/test_disk_speed'
fi