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
# /etc/sslh/sslh.cfg or /etc/sslh.cfg | |
verbose: true; | |
foreground: true; | |
inetd: false; | |
numeric: true; | |
#transparent: true; # ygg stops working when enabled | |
timeout: 900; # TCP default | |
user: "sslh"; | |
pidfile: "/var/run/sslh.pid"; |
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 | |
# Convert all JPGs and PNGs in a directory and its | |
# subdirectories into WEBP images. | |
# converting JPEG images | |
find $1 -type f -and \( -iname "*.jpg" -o -iname "*.jpeg" \) \ | |
-exec bash -c ' | |
webp_path=$(sed 's/\.[^.]*$/.webp/' <<< "$0"); | |
if [ ! -f "$webp_path" ]; then |
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
# https://rgxg.github.io/ | |
$ rgxg cidr '200::/7' | |
0?[23][0-9A-Fa-f]{2}((:(:[0-9A-Fa-f]{1,4}){1,6}|::|:[0-9A-Fa-f]{1,4}(:(:[0-9A-Fa-f]{1,4}){1,5}|::|:[0-9A-Fa-f]{1,4}(:(:[0-9A-Fa-f]{1,4}){1,4}|::|:[0-9A-Fa-f]{1,4}(:(:[0-9A-Fa-f]{1,4}){1,3}|::|:[0-9A-Fa-f]{1,4}(:(:[0-9A-Fa-f]{1,4}){1,2}|::|:[0-9A-Fa-f]{1,4}(::[0-9A-Fa-f]{1,4}|::|:[0-9A-Fa-f]{1,4}(::|:[0-9A-Fa-f]{1,4})))))))|(:(:[0-9A-Fa-f]{1,4}){0,4}|:[0-9A-Fa-f]{1,4}(:(:[0-9A-Fa-f]{1,4}){0,3}|:[0-9A-Fa-f]{1,4}(:(:[0-9A-Fa-f]{1,4}){0,2}|:[0-9A-Fa-f]{1,4}(:(:[0-9A-Fa-f]{1,4})?|:[0-9A-Fa-f]{1,4}(:|:[0-9A-Fa-f]{1,4}))))):(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}) |
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
### Keybase proof | |
I hereby claim: | |
* I am perguth on github. | |
* I am perguth (https://keybase.io/perguth) on keybase. | |
* I have a public key ASD3o_J-jMaLeKSggjQSgtldX8rQ6LSnINuqT-WFNriRcgo | |
To claim this, I am signing this object: |
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
# Configures the port multiplexer sslh | |
# https://github.com/yrutschle/sslh | |
# Place in /etc/defaults/sslh | |
RUN=no | |
DAEMON=/usr/sbin/sslh | |
DAEMON_OPTS="--user sslh --listen [201:6779:c497:82f:68fd:188d:4338:1234]:443 --listen 0.0.0.0:443 --tls 127.0.0.1:4443 --anyprot 127.0.0.1:44478 --pidfile /var/run/sslh/sslh.pid" |
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 | |
# Place in `/usr/local/bin/shell` | |
# Starts a terminal session that is shared among endpoints. | |
/usr/bin/tmux new -A -s session1 |
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 | |
# Start Theia in the current directory and open browser window. | |
# Theia configuration will be stored under ~/.theia | |
previousInstance=$(docker ps -q --filter ancestor=theiaide/theia:next --format="{{.ID}}") | |
if [ "$previousInstance" ]; then | |
docker kill $previousInstance > /dev/null | |
fi |
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 | |
# Back ups every file that gets touched by `nano`. | |
# Install by: | |
# 1. `sudo mv /bin/nano /bin/nano-real` | |
# 2. Put this file in `/usr/local/bin` and make it executable. | |
# 3. Set your user: | |
backupFolder=$HOME/.system-changes | |
currentFolder=$(pwd) |
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
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) | |
export PATH="$PATH:`yarn global bin`" | |
export MOSH_TITLE_NOPREFIX=1 | |
export GOROOT=/usr/local/go | |
export GOPATH=$HOME/go | |
export PATH=$GOPATH/bin:/usr/local/go/bin:$PATH | |
export PATH=$PATH:~/.cargo/bin |
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
<!doctype html> | |
<title>My website</title> | |
<!-- Validate your own here: https://validator.w3.org/ --> | |
<main> | |
<h1>My website</h1> | |
<p>Some texts.</p> | |
</main> |
NewerOlder