Skip to content

Instantly share code, notes, and snippets.

View hovo1990's full-sized avatar

Hovakim Grabski hovo1990

View GitHub Profile
@hovo1990
hovo1990 / deploy.sh
Created September 15, 2022 08:47 — forked from christopher-talke/deploy.sh
Docker Deployment via Remote SSH
#!/bin/bash
# Basic Script to Automate Docker Deployment
# - Details for how this script works, see here:
# - https://gist.github.com/christopher-talke/11c655de511dd799a1d9c3cf156e7a94#gistcomment-2935112
# Created By: christopher.talke <christopher.talke@gmail.com>
##### VARIABLES SECTION #####
@hovo1990
hovo1990 / moonlightssh.sh
Created June 29, 2022 19:21 — forked from WisdomCode/moonlightssh.sh
Moonlight Game Streaming via SSH
#!/bin/bash
#Enables Playing on a moonlight server via an ssh tunnel. This is useful on restricted networks, as only the ssh port is needed.
#Needs the complimentary script, redirectudp, running on the ssh server to function.
#needs a private key for the ssh server
#sudo apt install ssh socat snap
#snap install moonlight
@hovo1990
hovo1990 / build.sh
Created June 11, 2020 09:23 — forked from Forst/build.sh
Ubuntu ISO with preseed.cfg generation script
#!/bin/bash
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT
# Quit on first error
set -e
# Temporary directory for the build
TMP="/var/tmp/ubuntu-build"
@hovo1990
hovo1990 / jupyter_ngrok.md
Created March 24, 2020 21:05 — forked from artificialsoph/jupyter_ngrok.md
Quickest way to get Jupyter notebook running on a remote server.

Log into your server with ssh, something like

ssh -i "my_secret.pem" ubuntu@12.123.12.123

If it's a new server, you'll need to install a few things.

Install conda with

@hovo1990
hovo1990 / sudo-keepalive-example.sh
Created March 8, 2020 08:13 — forked from cowboy/sudo-keepalive-example.sh
Bash: Sudo keep-alive (good for long-running scripts that need sudo internally but shouldn't be run with sudo)
#!/bin/bash
# Might as well ask for password up-front, right?
sudo -v
# Keep-alive: update existing sudo time stamp if set, otherwise do nothing.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Example: do stuff over the next 30+ mins that requires sudo here or there.
function wait() {