Skip to content

Instantly share code, notes, and snippets.

@wall-street-dev
wall-street-dev / ngx_brotli_module.sh
Last active September 12, 2024 12:11
Compile Google's ngx_brotli modules with your nginx installation
#!/bin/bash
# Helper function for error checking and user-friendly messages
exit_if_fail() {
local exit_code=$?
local message=$1
if [ $exit_code -ne 0 ]; then
echo "Error: $message"
exit $exit_code
fi
@skazemi
skazemi / install-realvnc-server-linux-arm64.sh
Created June 1, 2021 15:18
Install RealVNC server on arm64 linux (Ubuntu on RasPi)
mkdir realvncserversetup && cd realvncserversetup
echo Add armhf arch
sudo dpkg --add-architecture armhf && sudo apt update
echo Download and install RealVNC server
wget -nv https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.7.4-Linux-ARM.deb && sudo apt install ./VNC-Server-6.7.4-Linux-ARM.deb
echo Download and install dependencies
files=( libbcm_host.so libvcos.so libmmal.so libmmal_core.so libmmal_components.so \
libmmal_util.so libmmal_vc_client.so libvchiq_arm.so libvcsm.so libcontainers.so )