Based on Remy Sharp's most excellent Working the Command Line
brew install zsh zsh-completions
Add oh-my-zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
Make zsh default shell
Based on Remy Sharp's most excellent Working the Command Line
brew install zsh zsh-completions
Add oh-my-zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
Make zsh default shell
This is a one-off script to fix broken Location entry in iTunes Library.xml.
iTunes internal database will sometimes have a broken file location when exporting. For example, for a purchased song, it might still have a reference to a temporary file at iTunes Media/Downloads rather than file inside iTunes Media/Music directory. While iTunes itself doesn't seems to use these locations for its playback, it becomes problematic when other music players try to import the iTunes library data (e.g. Swinsian).
This script will parse iTunes Library.xml to detect broken file location and try to find the file. This script was created for personal use, so it may or may not work in your environment. Use it at your own risk and remember to backup the library before trying!
You should not need to use this if you're not syncing the iTunes library with other media players on a Mac.
| # | |
| # Python 3 profile for macOS | |
| # | |
| alias python='python3' | |
| alias pip='pip3' | |
| export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3 | |
| export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv | |
| export WORKON_HOME=~/Envs | |
| source /usr/local/bin/virtualenvwrapper.sh | 
| -- Script Launcher Plus | |
| -- 25/02/17 | |
| -- set path to script folder | |
| set _Path to ("/Users/You/Desktop" as POSIX file) | |
| -- prompt user to choose a file from script folder | |
| set scriptLaunch to choose file with prompt "Choose a script to run" default location _Path | |
| try | |
| -- run chosen script | 
| // A clipping object is a JavaScript object that contains the following properties. Properties values may be null. | |
| // title - String | |
| // text - String | |
| // url - String | |
| // saveDate - Date | |
| // Merge function receives an array of clipping objects and returns the merged string | |
| function merge(clippings) { | |
| var merged = clippings.reduce(function(string, clipping) { | 
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
| # -*- coding: utf-8 -*- | |
| #------------------------------------------------------------------------------ | |
| # | |
| # Automated IMDB Top 250 Plex collection script by /u/SwiftPanda16 | |
| # | |
| # *** Use at your own risk! *** | |
| # *** I am not responsible for damages to your Plex server or libraries. *** | |
| # | |
| #------------------------------------------------------------------------------ |