Skip to content

Instantly share code, notes, and snippets.

@dbrosy
dbrosy / strapi.md
Last active October 29, 2021 23:10
Upgrading Strapi
Replace version in file
sed -i 's/3.6.5/3.6.8/g' app/package.json

or

sed -ie 's/"3.6.5"/"3.6.8"/g' package.json
Install new version
@dbrosy
dbrosy / ks3.md
Last active August 26, 2023 02:02

k3s

k3s - Install

Standard
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644
With External IP
@dbrosy
dbrosy / nocand.md
Last active December 19, 2019 11:37

NOCAN (OMZLO.COM)

Install Nocand

sudo apt-get install wiringpi
sudo raspi-config
TTN OTAA Activation

Add this to node in ttn

from network import LoRa
import ubinascii
lora = LoRa()
print("DevEUI: %s" % (ubinascii.hexlify(lora.mac()).decode('ascii').upper()))
@dbrosy
dbrosy / curl.md
Last active November 5, 2019 22:57
Test url certificate
curl --insecure -v https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
Test SSL Certificate
curl -v --insecure https://www.google.com

0. Update Raspbian buster

sudo apt update && sudo apt -y upgrade && sudo reboot

1. Configure Raspberry pi

sudo raspi-config

* Hostname
@dbrosy
dbrosy / unifi_gateway.md
Last active October 29, 2019 11:37
Unifi Gateway

USEFUL LINUX COMMANDS FOR UNIFI GATEWAY

List dns host entries

 cat /etc/hosts |grep <name>

List dns host entries

 sudo vi /etc/hosts

USEFUL LINUX COMMANDS

check disk usage

df -h

find out where disk space is being used

sudo du -h --max-depth=1

ingress error

Add annotation:

nginx.ingress.kubernetes.io/proxy-body-size: 0

VMWare Workstation - Install

Install vyos from ova
Upgrade vm
Network Adapter   - Custom (VMnet2) (eth1)  
Network Adapter 2 - NAT (eth0)