Skip to content

Instantly share code, notes, and snippets.

View mattnic's full-sized avatar

Matt Nicholls mattnic

View GitHub Profile

PHP Setup

PPA

sudo add-apt-repository ppa:ondrej/php
sudo apt update

PHP 8.4

@mattnic
mattnic / install-nodejs-lts-raspberry-pi-zero-w-armv6
Created April 13, 2025 07:15 — forked from mandrean/install-nodejs-lts-raspberry-pi-zero-w-armv6
Install NodeJS LTS on Raspberry Pi Zero W (ARMv6)
# update system
$ sudo apt update && sudo apt upgrade
# uninstall old node (v10?)
$ sudo apt remove nodejs npm -y
# install nvm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
# use 'unofficial builds' in nvm
@mattnic
mattnic / .bash_aliases
Created June 11, 2021 16:15
A collection of useful bash aliases
## Restart the bash screen
alias bashr='source ~/.bashrc && clear'
## Edit the Hosts file
alias ehost='sudo nano /etc/hosts'
## Update the system
alias update="sudo apt update && sudo apt upgrade"
## Usage of current HDD
@mattnic
mattnic / handbrake.sh
Last active July 10, 2020 13:43 — forked from ralphcrisostomo/handbrake.sh
Batch convert videos with HandBrake CLI
#!/bin/bash
# Batch convert videos with HandBrake CLI
# By Ralph Crisostomo - 2016.04.17
# Modified by Matt Nicholls - 2020.07.10
#
# Usage :
# 'sudo ./handbrake.sh /source'
#
# Reference :
# https://forum.handbrake.fr/viewtopic.php?f=6&t=19426
@mattnic
mattnic / cakephp2.conf
Created August 24, 2018 20:02 — forked from pasela/cakephp2.conf
nginx configuration example for CakePHP 2.x
#
# nginx configuration example for CakePHP 2.x
#
server {
listen 80;
server_name cakephp2.example;
root /var/www/cakephp2/app/webroot;
access_log /var/log/nginx/cakephp2.access.log;
error_log /var/log/nginx/cakephp2.error.log;