Skip to content

Instantly share code, notes, and snippets.

Ryan Sullivan ryansully

Block or report user

Report or block ryansully

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
@ryansully
ryansully / SynoPlexP12Renew.sh
Last active Jun 8, 2019
Automatically creates a new p12 certificate for Plex Media Server when Synology automatically renews its Let's Encrypt certificate
View SynoPlexP12Renew.sh
#!/bin/sh
# CONFIGURATION
script_folder=/volume1/scripts
# p12 file
p12_file_path=$script_folder/syno.p12
# p12 password
p12cert_password=
# Synology's Default Let's encrypt folder
@ryansully
ryansully / SynoSickRageSSL.sh
Last active Apr 28, 2019
Automatically copies Synology's Let's Encrypt certificate files to SickRage so HTTPS/SSL can be enabled
View SynoSickRageSSL.sh
#!/bin/sh
# CONFIGURATION
script_folder=/volume1/scripts
# SickRage folder
sickrage_folder=/usr/local/sickbeard-custom/var/SickBeard
# Synology's default Let's Encrypt folder
letsencrypt_cert_folder=/usr/syno/etc/certificate/system/default
# renew timestamp
@ryansully
ryansully / gitflow-breakdown.md
Last active Mar 3, 2017 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.
View gitflow-breakdown.md

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@ryansully
ryansully / optimize.sh
Created Feb 1, 2012 — forked from realdeprez/optimize.sh
image optimization script (pngcrush & jpegtran)
View optimize.sh
#!/bin/sh
# script for optimizing images in a directory (recursive)
# pngcrush & jpegtran settings from:
# http://developer.yahoo.com/performance/rules.html#opt_images
# pngcrush
for png in `find $1 -iname "*.png"`; do
echo "crushing $png ..."
pngcrush -rem alla -reduce -brute "$png" temp.png
@ryansully
ryansully / gist:1068167
Created Jul 6, 2011 — forked from remy/gist:350433
Storage polyfill
View gist:1068167
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () {
var Storage = function (type) {
function createCookie(name, value, days) {
var date, expires;
if (days) {
date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
You can’t perform that action at this time.