Skip to content

Instantly share code, notes, and snippets.

View ryansully's full-sized avatar
♨️

Ryan Sullivan ryansully

♨️
View GitHub Profile
@ryansully
ryansully / SynoSickRageSSL.sh
Last active March 16, 2024 18:38
Automatically copies Synology's Let's Encrypt certificate files to SickRage so HTTPS/SSL can be enabled
#!/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 March 3, 2017 04:42 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

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 February 1, 2012 23:56 — forked from realdeprez/optimize.sh
image optimization script (pngcrush & jpegtran)
#!/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 July 6, 2011 19:47 — forked from remy/gist:350433
Storage polyfill
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();