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/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
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
for i in "$@" ; do /Users/jsnell/ffmpeg -i "$i" -map 0:0 -acodec pcm_s16le -ac 1 -out_sample_rate 44100 "${i%.*}.wav" ; done |
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
## Pre-requisite: You have to know your last commit message from your deleted branch. | |
git reflog | |
# Search for message in the list | |
# a901eda HEAD@{18}: commit: <last commit message> | |
# Now you have two options, either checkout revision or HEAD | |
git checkout a901eda | |
# Or | |
git checkout HEAD@{18} |
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
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder |
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
// | |
// Debug.swift | |
// | |
// Created by Craig Hockenberry on 3/15/17. | |
// Updated by Craig Hockenberry on 2/20/24. | |
// Usage: | |
// | |
// SplineReticulationManager.swift: | |
// |
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
struct User: Codable { | |
var firstName: String | |
var lastName: String | |
var lastLogin: Date? | |
} | |
@propertyWrapper | |
struct Storage<T: Codable> { | |
private let key: String | |
private let defaultValue: T |
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
// | |
// RSDimensionHuggingTextField.swift | |
// RSUIKit | |
// | |
// Created by Daniel Jalkut on 6/13/18. | |
// | |
import Cocoa | |
// You probably want to use one of RSHeightHuggingTextField or RSWidthHuggingTextField, below |
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
#h264 1080p | |
ffmpeg -i https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/vod/avc_1080p_8500/prog_index.m3u8 -c copy "Apple Special Event, September 2020 (1080p) temp.mp4" | |
ffmpeg -i https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, September 2020 (1080p) temp.aac" | |
ffmpeg -i "Apple Special Event, September 2020 (1080p) temp.mp4" -i "Apple Special Event, September 2020 (1080p) temp.aac" -c copy "Apple Special Event, September 2020 (1080p).mp4" | |
#h265 1080p | |
ffmpeg -i https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/vod/hvc_1080p_7000/prog_index.m3u8 -c copy "Apple Special Event, September 2020 (1080p) temp.mp4" | |
ffmpeg -i https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, September 2020 (1080p) temp.aac" | |
ffmpeg -i "Apple Special Event, September 2020 (1080p) temp.mp4" -i "Apple Special Event, |
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
#h264 1080p | |
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/avc_1080p_8500/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.mp4" | |
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.aac" | |
ffmpeg -i "Apple Special Event, October 2020 (1080p) temp.mp4" -i "Apple Special Event, October 2020 (1080p) temp.aac" -c copy "Apple Special Event, October 2020 (1080p).mp4" | |
#h265 1080p | |
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/hvc_1080p_7000/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.mp4" | |
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.aac" | |
ffmpeg -i "Apple Special Event, October 2020 (1080p) temp.mp4" -i "Apple Special Event, October 2020 (1 |
OlderNewer