This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#-------------------------------------------------------------------------------------------------- | |
#-- NAME | |
#-------------------------------------------------------------------------------------------------- | |
# Program : NAME | |
# To Complie : n/a | |
# | |
# Purpose : | |
# | |
# Called By : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
""" | |
#------------------------------------------------------------------------------------------------ | |
#-- Movie Tag Updater for Radarr | |
#-------------------------------------------------------------------------------------------------- | |
# Program : Radarr_tagarr | |
# To Complie : n/a | |
# | |
# Purpose : Add tags and profiles to radarr movies. Tags are retreived from Radarr. | |
# Say Y to add a tag. N to skip a tag. N for all tags will remove all tags. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Sync Plex playlists to shared users. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi | |
from plexapi.exceptions import NotFound | |
from plexapi.server import PlexServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadContent</key> | |
<dict> | |
<key>com.apple.touristd</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This is a simple script showing how you can used plexpys notifications system to kill a stream | |
Possible plexpyargs: -tk {transcode_key} -u {username} -td {transcode_decision} -t 20:20 -ln Secret_tash | |
Instructions: | |
1. Save the script somewhere on your computer as kill_a_stream.py. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Pick a port and hack up your /etc/services file | |
Change existing port entry from | |
mbus 47000/udp # Message Bus | |
mbus 47000/tcp # Message Bus | |
to.. | |
ssh-47000 47000/udp # Alternate port SSH Remote Login Protocol | |
ssh-47000 47000/tcp # Alternate port SSH Remote Login Protocol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
appStoreFolder=$(sudo find /private/var/folders -type f -name "*.pkg") | |
i=0 | |
for package in $appStoreFolder | |
do | |
sudo ln $package ~/Downloads/_MAS_$i.pkg | |
i=$(($i+1)) | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import subprocess | |
import glob | |
image_format = "png" | |
# Get the paths to all icon files in the CoreTypes bundle | |
coretypes_path = '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
NewerOlder