This guide uses the domain your-domain.tld
and its www.
prefixed version.
It starts the rocket application on 127.0.0.1:1337
and as the user www-data
. The proxy listens on port 80 and 443 though.
If you need other values, update them accordingly in your nginx and systemd configs.
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
MIT License | |
Copyright (c) 2024 belst | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
// ==UserScript== | |
// @name Youtube shorts redirect | |
// @namespace Violentmonkey Scripts | |
// @match *://*.youtube.com/* | |
// @grant none | |
// @version 1.0 | |
// @author belst | |
// @description 9/22/2022, 1:26:47 PM | |
// ==/UserScript== |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Weather API</title> | |
<style> | |
body { | |
margin: 0 auto; |
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
#!/usr/bin/env bash | |
SERVERNAME="${SERVERNAME:-B44Server1}"; | |
SERVERHOME="${SERVERHOME:-/home/bt44/LinuxServer}"; | |
STARTSCRIPT="${STARTSCRIPT:-Run.sh}"; | |
screen -dmS "$SERVERNAME" bash -c "cd $SERVERHOME; until ./$STARTSCRIPT; do echo 'Server crashed. Restarting...'; 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
#!/usr/bin/env bash | |
SOURCE=/home/belst/ | |
TARGET="backup:~/backup/home/belst/" # Trailing / is needed | |
TODAY=$(date +%Y-%m-%d) | |
ssh backup mkdir -p "${TARGET#*:}${TODAY}" | |
rsync -avR --delete "${SOURCE}" "${TARGET}${TODAY}/" --link-dest="${TARGET#*:}last" | |
ssh backup ln -nsf "${TARGET#*:}${TODAY}" "${TARGET#*:}last" |
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
{-# LANGUAGE OverloadedStrings #-} | |
import Monky | |
import Monky.Modules | |
import Monky.Examples.Sound.Alsa | |
import Monky.Examples.CPU | |
import Monky.Examples.Memory | |
import Monky.Examples.Time | |
import Monky.Examples.Battery | |
import Monky.Examples.Disk |
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
// ==UserScript== | |
// @name Crates.io Readme | |
// @namespace https://bel.st/ | |
// @version 0.1 | |
// @description loads Readme files from github and displays them in the crate info area | |
// @author belst | |
// @match https://crates.io/crates/* | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @grant none | |
// ==/UserScript== |
I hereby claim:
- I am belst on github.
- I am belst (https://keybase.io/belst) on keybase.
- I have a public key ASAc2YKUIPP9fnR1aq3gaCE4giPzWlqBPLTHKX2Hb2LVMgo
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
#!/usr/bin/env bash | |
IP=$(hostname -I | cut -f1 -d' '); | |
if [ -z "$1" ]; then | |
echo "usage: $0 <configname>"; | |
exit 1; | |
fi; | |
echo 'Adding IP and creating config'; |