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 | |
# Allows maintaining of an Sxmo session on a PinePhone via VNC. | |
# Felix E. Klee <[email protected]> | |
st -e sh -c "x11vnc -auth guess -once -loop -noxdamage -repeat -rfbport 5900 -shared" |
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 | |
# Felix E. Klee <[email protected]> | |
# Usage info | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} ENCRYPTED.gpg | |
Decrypts ENCRYPTED.gpg and displays its contents. | |
EOF |
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 | |
# Sorts media files into directories by the date when they were | |
# created. There is no time zone conversion: Many media files don't | |
# contain a time zone, or they default to UTC. | |
# Felix E. Klee <[email protected]> | |
shopt -s nullglob |
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 | |
# Felix E. Klee <[email protected]> | |
shopt -s nullglob | |
# Usage info | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} TARGET_DIR |
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 | |
# Depends on: | |
# | |
# * Mikaël Le Bohec's [mslink][1], and | |
# | |
# * my [winpath][2]. | |
# | |
# [1]: http://www.mamachine.org/mslink/index.en.html | |
# [2]: https://gist.github.com/feklee/678c630aa7f84ceda1c766333b37e7d3 |
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 | |
# Felix E. Klee <[email protected]> | |
# Usage info | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} PATH | |
Copies the path in Windows of PATH (in my Linux virtual machine) to | |
the clipboard. |
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 | |
# Felix E. Klee <[email protected]> | |
MSLINK=mslink_v1.3.sh | |
SYNCTHING_DIR="/mnt/c/Users/Felix/Syncthing" | |
SYNCTHING_WIN_DIR='C:\Users\Felix\Syncthing' | |
HOME_DIR="/home/felix" | |
HOME_WIN_DIR='\\wsl.localhost\Ubuntu\home\felix' |
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 | |
# Some of the `getopts` code has been taken from: | |
# http://mywiki.wooledge.org/BashFAQ/035#getopts | |
# Felix E. Klee <[email protected]> | |
W=210 | |
H=297 | |
D=300 |
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
;; EMACS configuration for editing files in different languages. | |
;; | |
;; When loading a text file, depending on the specified ispell | |
;; dictionary: | |
;; | |
;; * Sets keyboard layout (layout when starting Emacs needs to be | |
;; American) | |
;; | |
;; * If available, enables "typo-mode" with the correct language | |
;; option. "typo-mode" facilitates entering typographically correct |
