This file contains hidden or 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 | |
| # | |
| # Script to bump the build number and optionally the marketing version found | |
| # in *.info files. | |
| # | |
| # Usage: bump-version.sh [ARG] | |
| # | |
| # Without ARG, just increment the build number. When ARG is present, it indicates | |
| # which part of the marketing version to increment: | |
| # |
This file contains hidden or 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 | |
| # | |
| # Custom mapping for Apple MacBookPro 2017 keyboard. | |
| # | |
| # - Map §/± (SECTION) to `/~ (BACKQUOTE) to match US keyboard | |
| # - Map CAPS LOCK (LOCK) to SHIFT (L_SHIFT) to locking | |
| # - Map right CMD (R_CMD) to CAPS LOCK to enable locking if really wanted | |
| # - Map `/~ to (BACKQUOTE) to SHIFT (L_SHIFT) to make SHIFT-^ easier | |
| # | |
| # To run at startup: |
This file contains hidden or 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
| import plistlib, sys | |
| from pprint import pprint | |
| delimiter = '~' | |
| def scan(srcRoot, playLimit): | |
| albumMap = {} | |
| for trackId, attributes in srcRoot['Tracks'].iteritems(): | |
| albumName = attributes.get('Album') | |
| artistName = attributes.get('Album Artist') |
This file contains hidden or 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
| import asyncio | |
| import websockets | |
| import json | |
| import pickle | |
| import sys | |
| import multiprocessing | |
| import random | |
| import time | |
| from collections import deque |
NewerOlder