Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jgillman's full-sized avatar

Joel Gillman jgillman

View GitHub Profile
@jgillman
jgillman / recyclarr.yml
Created August 25, 2022 17:49
My Recyclarr config
# For more details on the configuration, see the Configuration Reference on the wiki here:
# https://github.com/recyclarr/recyclarr/wiki/Configuration-Reference
# Joel Note: My Sonarr config ignores anime so none of that here.
sonarr:
- base_url: http://sonarr:8989/sonarr/
api_key: yoursonarrapikeyhere
quality_definition: series
tap "heroku/brew"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/services"
tap "puma/puma"
tap "saulpw/vd"
tap "universal-ctags/universal-ctags"
cask "osxfuse"
--exclude="node_modules/*"
--langdef=CoffeeScript
--langmap=CoffeeScript:.coffee
--regex-CoffeeScript=/(^|=[ \t])*class ([A-Za-z.]+)( extends [A-Za-z.]+)?$/\2/c,class/
--regex-CoffeeScript=/^[ \t]*@?([A-Za-z.]+):.*[-=]>.*$/\1/f,function/
--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\1/f,function/
--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^-=>\n]*$/\1/v,variable/
--langdef=JSX
#!/usr/bin/env bash
# Automatically optimize and inline ALL styles
# svgo_it.sh my.svg
main() {
local input=$1
local precision=${2:-2}
# Move ALL styles to inline
local config='{ "plugins": [{ "inlineStyles": { "onlyMatchedOnce": false } }] }'
@jgillman
jgillman / 1-Info.md
Created January 3, 2019 23:01
Automated certbot renew for Mac with launchd (launchctl)

Automatic certbot renew on a Mac

It seems like everyone is using cron for setting up certbot renew on Macs but I couldn't find anyone doing it with launchd. The other file in this Gist is the service file.

The documentation on the Let's Encrypt site actually recommends having it run twice a day (12 hours apart) but I've found that once a day is more than sufficient since if it fails it still has another 29 days to succeed.

@jgillman
jgillman / pre-commit.sh
Created May 7, 2018 21:04
This git hook is to deter a user from committing directly to the master branch.
#!/usr/bin/env bash
#
# This hook is to deter a user from committing directly to the master branch.
# It still allows the user to make the commit if they enter 'master' when
# prompted.
#
# To enable this hook, rename this file to "pre-commit" and place it in your
# .git/hooks/ directory.
@jgillman
jgillman / destiny-2-weapons.md
Created November 14, 2017 18:02
Best PvE weapons in Destiny 2

Best PvE weapons

Based on their Time To Kill (TTK)

Data from this Google Spreadsheet

Last updated 2017-11-14 20171114

Swords

@jgillman
jgillman / tmux_build_from_source_CentOS.sh
Created October 19, 2017 16:35 — forked from P7h/tmux__CentOS__build_from_source.sh
tmux 2.0 and tmux 2.3 installation steps for Ubuntu. Or build from tmux source v2.5 for Ubuntu and CentOS.
# Steps to build and install tmux from source.
# Takes < 25 seconds on EC2 env [even on a low-end config instance].
VERSION=2.5
sudo yum -y remove tmux
sudo yum -y install wget tar libevent-devel ncurses-devel
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz
tar xzf tmux-${VERSION}.tar.gz
rm -f tmux-${VERSION}.tar.gz
cd tmux-${VERSION}
@jgillman
jgillman / .haml-lint.yml
Created October 18, 2017 16:24
Goldbely Linters (a work in progress, 2017-10-18)
# haml-lint explanations can be found in their documentation:
# https://github.com/brigade/haml-lint/blob/master/lib/haml_lint/linter/README.md
linters:
AltText:
enabled: true
ClassAttributeWithStaticValue:
enabled: true
@jgillman
jgillman / nycsubway.yaml
Created February 21, 2017 22:33
NYC Subway Emoji for Slack and emojipacks
title: nycsubway
emojis:
- name: 1train
src: https://i.imgur.com/5w147gb.png
- name: 2train
src: https://i.imgur.com/WbQXY6L.png
- name: 3train
src: https://i.imgur.com/vgF9PMQ.png
- name: 9train
src: https://i.imgur.com/bWepskg.png