Skip to content

Instantly share code, notes, and snippets.

View ciberjohn's full-sized avatar
🤔
Thinking why I didn't learn to code when I was younger

Ciberjohn ciberjohn

🤔
Thinking why I didn't learn to code when I was younger
View GitHub Profile
@ciberjohn
ciberjohn / raspberry-power-supply-check.sh
Created December 18, 2020 22:07 — forked from maxme/raspberry-power-supply-check.sh
Check your Raspberry pi power supply and USB cable
#!/bin/bash
# Before running this script, make sure you have sysbench installed:
# sudo apt-get install sysbench
#
# This script helps you check if your Raspberry pi is correctly powered.
# You can read more about Raspberry pi powering issues here: https://ownyourbits.com/2019/02/02/whats-wrong-with-the-raspberry-pi/
# If you're pi is correctly powered (stable power supply and quality cable), after running the script, you should get something like:
@ciberjohn
ciberjohn / fix-wordpress-permissions.sh
Created July 24, 2020 16:47 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory