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 | |
| if [[ $# -eq 0 ]] ; then | |
| echo "Usage: remove-metadata DIRECTORY | |
| Removes name and comment metadata from mp4 and mkv files from a directory recursively." | |
| exit 0 | |
| fi | |
| dir=$1 | |
| exiftool -r -overwrite_original -ext mp4 -Title= -Comment= -Description= "$dir" |
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
| <?php | |
| class e621Bridge extends BridgeAbstract | |
| { | |
| const MAINTAINER = 'keystroke'; | |
| const NAME = 'e621'; | |
| const URI = 'https://e621.net/'; | |
| const DESCRIPTION = 'Returns images from given page'; | |
| const PARAMETERS = [ |
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 | |
| if [ $# -eq 0 ]; then | |
| >&2 echo 'No backup file provided' | |
| exit 1 | |
| fi | |
| grep -ve '^$\|^#' "$1" | \ | |
| while read location; do | |
| echo "Backing up $location" |
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 | |
| export DISPLAY=:0.0 | |
| status=$(xset -q|sed -ne 's/^[ ]*Monitor is //p') | |
| if [ $status = "On" ]; then | |
| echo -e "Turning monitor off..." | |
| xset dpms force off | |
| elif [ $status = "Off" ]; then | |
| echo -e "Turning monitor on..." | |
| xset dpms force on |