Skip to content

Instantly share code, notes, and snippets.

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

Brian Slack Depicus

🏠
Working from home
View GitHub Profile
sudo apt install apache2 php mysql-server
sudo apt install postfix
# if you want to edit from the command line
sudo nano /usr/share/logwatch/default.conf/logwatch.conf
sudo nano /etc/logcheck/logcheck.conf
sudo nano /etc/logcheck/logcheck.logfiles
@Depicus
Depicus / Installing Wordpress
Created March 20, 2019 12:58
Commands for installing Wordpress on Ubuntu 18.04 LTS
sudo apt update && sudo apt upgrade && sudo apt autoremove
cd /var/www
sudo wget http://wordpress.org/latest.tar.gz
sudo tar xfz latest.tar.gz
sudo rm latest.tar.gz
sudo apt install php-mysql
sudo apt update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot python-certbot-apache
sudo certbot certonly --manual --preferred-challenges dns -d wordpress.depicus.com
SSLCertificateFile /etc/letsencrypt/live/wordpress.depicus.com/fullchain.pem
Download image from https://www.raspberrypi.org/downloads/raspbian/
Create filesysstem with https://www.balena.io/etcher/
Create a file called SSH in the root of the drive
Create a file called wpa_supplicant.conf in the root and add the following
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant
@Depicus
Depicus / UpdateToStretch.sh
Last active April 29, 2019 15:05
Upgrade Raspberry Pi from Jessie to Stretch
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo sed -i /deb/s/jessie/stretch/g /etc/apt/sources.list
sudo sed -i /deb/s/jessie/stretch/g /etc/apt/sources.list.d/*.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean
@Depicus
Depicus / makesmaller.sh
Created November 21, 2025 15:18
Convert an iPhone ProRes file to H.265 without loosing the meta data and do it as a batch on OSX
#!/bin/bash
directory=${PWD}
pattern="*.MOV"
echo "Listing all files in directory: $directory matching pattern: $pattern"
for file in "$directory"/$pattern; do
if [ -f "$file" ]; then
echo "$file"