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
<?xml version="1.0"?> | |
<remoteCommandList> | |
<command name="Confirm" type="ircc" value="AAAAAQAAAAEAAABlAw=="/> | |
<command name="Up" type="ircc" value="AAAAAQAAAAEAAAB0Aw=="/> | |
<command name="Down" type="ircc" value="AAAAAQAAAAEAAAB1Aw=="/> | |
<command name="Right" type="ircc" value="AAAAAQAAAAEAAAAzAw=="/> | |
<command name="Left" type="ircc" value="AAAAAQAAAAEAAAA0Aw=="/> | |
<command name="Home" type="ircc" value="AAAAAQAAAAEAAABgAw=="/> | |
<command name="Options" type="ircc" value="AAAAAgAAAJcAAAA2Aw=="/> | |
<command name="Return" type="ircc" value="AAAAAgAAAJcAAAAjAw=="/> |
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
// Data from https://en.wikipedia.org/wiki/Postcodes_in_Australia | |
function postcodeToState(input) { | |
// Convert. | |
var postcode = parseInt(input); | |
// Is valid. | |
if (isNaN(postcode) || postcode > 9999 || postcode < 100) { | |
return "Invalid postcode"; | |
} | |
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 | |
# Get JIRA Project ID. | |
PROJECT_ROOT=`git rev-parse --show-toplevel` | |
JIRA_PREFIX=`cat "$PROJECT_ROOT/.jiraid"` | |
# Status | |
git status | |
# Get JIRA ID |
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
override func viewWillAppear(_ animated: Bool) { | |
super.viewWillAppear(animated); | |
// Workaround for FB7300235 | |
self.navigationController?.navigationBar.prefersLargeTitles = true | |
self.navigationController?.navigationBar.prefersLargeTitles = false | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadDescription</key> | |
<string>Configures AirPlay settings</string> | |
<key>PayloadDisplayName</key> |
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 | |
# Loop. | |
for a in `find . -type f \( -iname \*.dv -o -iname \*.mp4 -o -iname \*.mkv \) -not -path '*/\.*'`; do | |
# Generate thumbs | |
echo "Processing: $a" | |
ffmpeg -hide_banner -loglevel fatal -y -ss "$(bc -l <<< "$(ffprobe -loglevel error -of csv=p=0 -show_entries format=duration "$a")*0.5")" -i "$a" -vf yadif -frames:v 1 "$a.jpg" | |
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
#!/bin/bash | |
composer dump-autoload | |
php artisan clear-compiled | |
# Vite | |
if [[ -d "node_modules/" ]] | |
then | |
npm run build | |
fi |