Skip to content

Instantly share code, notes, and snippets.

Joshua Newell imjosh

Block or report user

Report or block imjosh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
imjosh /
Created Jan 31, 2019
Raspberry Pi Safe Shutdown + Restart Switches
# Safe Shutdown/Restart Switches
# untested
shutdownPin = 5
restartPin = 15
GPIO.setup(shutdownPin, GPIO.IN)
GPIO.setup(restartPin, GPIO.IN)
shutdownStatePrev = True
imjosh / encodings.js
Created Jan 28, 2019
Messing around with hex and base36 character encodings
View encodings.js
/* Messing around with character encodings */
/* notes:
// Adapted from
imjosh / getYouTubeMp4Link.js
Created Jan 3, 2019
Get a direct MP4 link for a YouTube video
View getYouTubeMp4Link.js
View 1_portainer-with-ssl-and-admin-password.yml
version: "3.6"
image: portainer/portainer
command: --ssl --sslcert /path/to/certificate.crt --sslkey /path/to/certificate.key --admin-password-file '/path/to/password.txt'
- "9000:9000"
- portainer-net
You can’t perform that action at this time.