Skip to content

Instantly share code, notes, and snippets.

@scottgruber
scottgruber / readme.md
Last active May 7, 2021 21:57 — forked from remy/batcharge.py
My zsh set up as of August 9, 2019

Setup zsh

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

@sirn
sirn / README.md
Last active November 17, 2018 10:48
Fix iTunes Library.xml

Fix iTunes Library

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.

@RebeccaWhit3
RebeccaWhit3 / bookmark-taxonomy.md
Last active February 26, 2024 07:12
Bookmark Taxonomy

Bookmark Taxonomy 📚

Personal taxonomy for organizing bookmarks by category.

Organizational scheme

A-Z Character Sequence

  • ⭐ Bookmarks
@anton-petrov
anton-petrov / python3_profile.sh
Created February 26, 2017 07:31
Python 3 profile for macOS
#
# 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
@melangue
melangue / script_launcher_plus.scpt
Created February 25, 2017 10:47
Script launcher plus - choose a script from folder prompt and run it
-- 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) {
@BretFisher
BretFisher / docker-for-mac.md
Last active June 23, 2025 11:39
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

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


@RebeccaWhit3
RebeccaWhit3 / software-and-tags.csv
Created February 20, 2017 17:01
Software/Bookmark Tags
Tag Description
3ds
a/b-testing
abandonware
about
academia
academic
academic-discipline
academic-disciplines
academic-programs
@martensonbj
martensonbj / readme-template.md
Created February 16, 2017 19:21
Personal project README template

Project Name & Pitch

Example:

TweetWorld

An application used to filter data form Twitter based on user preference, built with React, Redux, JavaScript, and CSS.

Project Status

(only necessary if incomplete)

@JonnyWong16
JonnyWong16 / plex_imdb_top_250_collection.py
Last active March 6, 2024 14:13
Automatically create an IMDB Top 250 collection in Plex using an existing movie library
# -*- 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. ***
#
#------------------------------------------------------------------------------