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
| // $antlr-format alignTrailingComments true, columnLimit 150, minEmptyLines 1, maxEmptyLinesToKeep 1, reflowComments false, useTab false | |
| // $antlr-format allowShortRulesOnASingleLine false, allowShortBlocksOnASingleLine true, alignSemicolons hanging, alignColons hanging | |
| grammar oxr_stellaris_grammar; | |
| content | |
| : expr+ EOF | |
| ; | |
| expr |
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
| %YAML 1.2 | |
| --- | |
| # See http://www.sublimetext.com/docs/syntax.html | |
| # This syntax file describes how to parse clausewitz files | |
| # so that Sublime Text can identify scopes | |
| # Once scopes are identified, color schemes can be applied in the editor | |
| # https://www.sublimetext.com/docs/syntax.html | |
| # https://www.sublimetext.com/docs/scope_naming.html |
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 | |
| # I use this to convert MOV files from my iphone to more open formats | |
| sourcefile=$1 | |
| sourcefilenoext="${sourcefile%.*}" | |
| sourceasmkv="${sourcefilenoext}.mkv" | |
| ffmpeg -i $sourcefile -c:v libsvtav1 -q:v 7 -c:a libopus $sourceasmkv | |
| touch -r $sourcefile $sourceasmkv | |
| # MOV files created on iphones have a special 'filemodifydate' exif data we can use |
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 | |
| sourcefile=$1 | |
| sourcefilenoext="${sourcefile%.*}" | |
| sourceasjxl="${sourcefilenoext}.jxl" | |
| SECONDS=0 | |
| # conversion to jxl (JPEG-XL) | |
| magick mogrify -format jxl $sourcefile -define preserve-timestamp=true |
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
| # append below to ~/.bashrc | |
| PROMPT_COMMAND='PS1_CMD1=$(git branch --show-current 2>/dev/null)'; PS1='\[\e[38;5;143m\]\d\[\e[0m\] (\[\e[38;5;115m\]\u\[\e[0m\]) \[\e[38;5;36m\]\w\[\e[0m\] \n\t \[\e[38;5;211m\]${PS1_CMD1}\[\e[0m\]> ' |