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 | |
# Script for building a .xcframework, specifically for ViewInspector | |
# | |
# ViewInspector GitHub: | |
# - https://github.com/nalexn/ViewInspector | |
# | |
# Apple's docs: | |
# - https://help.apple.com/xcode/mac/11.4/#/dev544efab96 | |
# |
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
In Terminal: | |
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony | |
Credit to https://stackoverflow.com/a/53708751/3953735 |
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 sys | |
import subprocess | |
import argparse | |
parser = argparse.ArgumentParser(description="Extract audio from video files") | |
parser.add_argument("files", metavar="file", nargs="+") | |
parser.add_argument("-w", "--wav", dest="codec", action="store_const", const="pcm_s16le", default="copy") |
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
# Script to join GoPro video files, which are split at 4GB boundaries, into a single file | |
import os | |
import glob | |
import subprocess | |
# sleazy case-insensitive list of mp4 files in this dir | |
filepaths = glob.iglob("*.[mM][pP]4") | |
filenames = list(filter(lambda f: os.path.split(f)[1], filepaths)) | |
# extract unique clip numbers from list of all files in this dir |