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
# Start by importing with MakeMKV | |
# Make sure to at least pick the "forced" subtitles - these are usually helpful ones for us dummies who don't speak more than one language | |
# Subtitles are weird and need to be burned in, so you have to later select them, and only picking the one you need makes this easier. | |
# Update the tools | |
gem update video_transcoding | |
brew upgrade | |
# Get the command by checking for cropping first | |
detect-crop <filename> |
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
youtube-dl https://www.youtube.com/watch?v=udrKnXueTW0 -F | |
#[youtube] udrKnXueTW0: Downloading webpage | |
#[youtube] udrKnXueTW0: Downloading video info webpage | |
#[youtube] udrKnXueTW0: Extracting video information | |
#[youtube] udrKnXueTW0: Downloading MPD manifest | |
#[info] Available formats for udrKnXueTW0: | |
#format code extension resolution note | |
#249 webm audio only DASH audio 55k , opus @ 50k (48000Hz), 19.80MiB | |
#250 webm audio only DASH audio 76k , opus @ 70k (48000Hz), 24.55MiB | |
#171 webm audio only DASH audio 84k , vorbis@128k (44100Hz), 30.21MiB |
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
^((?!Report).)*$ |
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
# Update the extensions to match whatever you are starting with | |
# It isn't critical, but makes things work properly | |
for f in *.mp4; do echo "file '$f'" >> mylist.txt; done | |
ffmpeg -f concat -i mylist.txt -c copy output.mp4 |
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 | |
# Original source: http://superuser.com/a/620188/561192 | |
# A few modifications to send an email and potentially account for running on linux | |
DEBUG=false | |
warning_days=29 # Number of days to warn about soon-to-expire certs | |
certs_to_check='google.com:443 | |
www.apple.com:443' | |
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 is just a really hacky way to load a bunch of users through the shell instead of writing something more complicated. | |
# Intructions: Paste it in line by line! | |
names = [ | |
["FirstName", "LastName", "[email protected]", "username", "a-password-here"], | |
["FirstName", "LastName", "[email protected]", "username", "a-password-here"], | |
] | |
FNAME = 0 | |
LNAME = 1 | |
EMAIL = 2 |
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 | |
while : | |
do | |
# Update the interface as needed | |
ifconfig en9 | grep media | tr -d '\t' | |
# Update the delay as needed (seconds) | |
sleep 1 | |
done |
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
var selectedIssue = document.querySelectorAll(".ghx-selected")[0]; | |
var key = selectedIssue.dataset.issueKey; | |
var description = selectedIssue.childNodes[0].childNodes[0].childNodes[2].title; | |
var text = key + '-' + description; | |
var MAX_LENGTH = 35; | |
var slug = text.replace(/\s+/g, '-').replace(/[^\w\-]+/g, '').replace(/\-\-+/g, '-').replace(/^-+/, '').replace(/-+$/, '').substring(0, MAX_LENGTH); | |
window.prompt("Copy this!", 'git checkout -b \'' + slug + '\''); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.zerowidth.launched.homebrew_updater</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>sh</string> | |
<string>-c</string> |
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 | |
# This script runs the homebrew updater, then reports if any of your packages are out of date | |
# Generally, this should be run automatically using a launchctl task (see end of file for an example) | |
# | |
# In addition, you might want to change the notification style to be an "alert" so it hangs around a while. | |
# This can be done in System Preferences -> Notification Center (look for homebrew-notifier) | |
# | |
# Requires: | |
# - Homebrew | |
# - terminal-notifier (brew install terminal-notifier) |
NewerOlder