Skip to content

Instantly share code, notes, and snippets.

View wwwqr-000's full-sized avatar
💭
Geeking

wwwqr wwwqr-000

💭
Geeking
View GitHub Profile
sudo apt-get update
sudo apt-get install snapd
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot certonly --standalone -d yourdomain.com
@wwwqr-000
wwwqr-000 / daemon_process_linux.txt
Last active July 2, 2025 14:02
daemon_process_linux
#A daemon process runs your command/ application in the background. This gist explains on how to set it up and use it.
sudo -s
cd /etc/systemd/system/
nano custom-daemon.service
#Begin file
[Unit]
Description=Custom daemon process
After=network.target
@wwwqr-000
wwwqr-000 / apache2_virtual_host
Last active July 1, 2025 16:15
apache2 virtual host
sudo -s
apt-get update
apt-get install apache2
cd /etc/apache2/sites-available
nano a_new_website.conf
#begin of file
<VirtualHost *:8080>
ServerAdmin admin@example.com
@wwwqr-000
wwwqr-000 / tor_website_with_apache2.txt
Last active January 6, 2025 18:45
tor website with apache2
sudo -s
apt-get update
apt-get install apache2
apt-get install tor
nano /etc/apache2/sites-available/tor_website.conf
#tor_website.conf file contents:
#begin of file
<VirtualHost *:8080>
@wwwqr-000
wwwqr-000 / simple_tunnel.txt
Last active February 27, 2025 20:42
Simple tunnel setup with ssh
#First we create a new ssh user for our tunnel. In this example we will create a tunnel so a minecraft player can only access-
#our server using the tunnel connection.
#On vps (linux) as root user:
adduser mc_user
groupadd ssh_tunnel
usermod -aG ssh_tunnel mc_user
#Now edit the /etc/ssh/sshd_config file with an editor: