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
Tested on an ASUS RT-AC56U running Merlin firmware 378.55 |
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
A helpful script to convert dates generated by IFTTT receipes like those from Maker into the ISO standard (that's used e.g. by MSQL). |
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
#!/usr/bin/env python | |
""" | |
Compressor wrapper script. | |
""" | |
import os | |
import sys | |
import re | |
import argparse | |
import subprocess | |
import logging |
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
Notepad++ Regex for replacing malicious dates in POJOs | |
note: . matches newline must NOT be checked | |
Only meant for Notepad++, have to open the files from Explorer and then click Refresh in Eclipse afterwards. | |
May not be 100% foolproof! Imperative to review the files manually! | |
Note: before replacing, use the "Mark All" feature in Notepad++ with "Bookmark line" checked. Then after replacing, jump to the next bookmark using F2 (and Shift+F2) | |
******************** |
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 | |
# mkvWrapper.sh | |
# helpful for rewrapping valid MOV exports from Compressor 4 into MKVs that can be batched to YouTube for faster processing | |
# USAGE | |
# sh mkvWrapper.sh "Compressor Export-MPEG4_HighQ to YT.mov" | |
# OUTPUT | |
# Compressor Export-MPEG4_HighQ to YT.mkv |
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/sh | |
### Timecode generation script for MP4 footage (AVCHD, XAVC-S, etc.) | |
### Uses ffmpeg for timecode creation; EditReady for container cleanup; | |
### exiftool for copying over original track dates; and SetFile for setting | |
### the File Creation Date for FCP X event | |
### Note: this script currently does not work for files with spaces | |
# quit on first error (almost always) |
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
-- thanks to: http://osxdaily.com/2014/05/13/disable-app-nap-mac-os-x/ | |
-- disable App Nap | |
--do shell script "defaults write NSGlobalDomain NSAppSleepDisabled -bool YES" | |
-- renable App Nap | |
do shell script "defaults delete NSGlobalDomain NSAppSleepDisabled" |
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
// This statement is magic | |
// If you declare it: Set<String> getMyGeneric; it returns java.lang.String | |
final Class<?> genericClazz = (Class<?>)((ParameterizedType) getClass().getDeclaredField("getMyGeneric").getGenericType()).getActualTypeArguments()[0]; |
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 sys | |
import re | |
# input: first argument is a file that contains the piped markdown table rows | |
with open (sys.argv[1]) as f: | |
content = f.readlines() | |
rows = [] | |
pattern = re.compile("^\|[ -][ -]+") |
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/sh | |
# rsync 3.1.2 patched with additional options | |
# detect-renamed | |
# detect-renamed-lax | |
# detect-moved options | |
# special thanks to: | |
# https://moderncaveman.org/projects/modern/rsync-detect-renamed/patching-rsync-for-renamed.html | |
# note: the improved 3.0.9 from the above URL is already part of 3.1.x |
OlderNewer