Skip to content

Instantly share code, notes, and snippets.

View mdemerson's full-sized avatar

Mat mdemerson

View GitHub Profile
@mdemerson
mdemerson / macos_defaults.sh
Last active July 29, 2023 19:24
Some macOS defaults I set on any new system/VM that I have to use.
#!/usr/bin/env bash
################################################################################
# #
# macOS Preferences Defaults #
# By Mat Emerson #
# #
################################################################################
# #
# Some macOS defaults I set on any new system/VM that I have to use. #
@mdemerson
mdemerson / gist-license
Created May 6, 2022 05:34
This license applies to all public gists from https://gist.github.com/mdemerson
MIT License
Copyright 2022 Mathew Emerson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mdemerson
mdemerson / gist_to_github_repo.md
Created May 5, 2022 17:13 — forked from ishu3101/gist_to_github_repo.md
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

@mdemerson
mdemerson / add_spoilers_to_existing.py
Created February 4, 2022 04:21
Small script that adds spoiler tags to existing unwatched TV shows
#!/usr/bin/env python3
# Small script that adds spoiler tags to existing unwatched TV shows
# Relies on:
# https://github.com/pkkid/python-plexapi
# https://gist.github.com/JonnyWong16/ea8f51f674fdb4ebf4e47e53cd1a10e5
# Imports
import os
from plexapi.server import PlexServer