Skip to content

Instantly share code, notes, and snippets.

View itd24's full-sized avatar

Ziga Petek itd24

View GitHub Profile
@itd24
itd24 / Dockerfile
Created May 7, 2023 16:11
A simple Dockerfile example
FROM node:14-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
@itd24
itd24 / generate_private_public_key.sh
Last active August 7, 2022 11:57
Public/private key generation
sudo ssh-keygen -t rsa
@itd24
itd24 / restart_dnsmasq.sh
Created August 7, 2022 11:13
Restart DnsMAsq service
sudo systemctl restart dnsmasq
@itd24
itd24 / home.lan
Last active August 7, 2022 11:27
DnsMAsq configuration file
bogus-priv
domain=home.lan
expand-hosts
no-hosts
domain-needed
no-resolv
no-poll
server=8.8.8.8
server=4.4.4.4
address=/media.home.lan/127.0.0.1
@itd24
itd24 / install_dnsmasq.sh
Created August 7, 2022 10:41
Install DnsMAsq and DnsUtils
sudo apt install dnsmasq
sudo apt install dnsutils
@itd24
itd24 / disable-systemd-resolved.sh
Created August 7, 2022 10:38
Disabling systemd-resolved
apt-get update -y
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
@itd24
itd24 / nginxConfigReload.sh
Created August 3, 2022 15:11
Reload NginX Configuration
sudo nginx -t
sudo systemctl reload nginx
@itd24
itd24 / reverseProxyExample.conf
Created August 3, 2022 14:53
NginX Reverse Proxy Example
server {
listen 80;
listen [::]:80;
server_name my-awesome-portfolio-site.com;
location /db {
proxy_pass http://127.0.0.1:1234;
}
@itd24
itd24 / checkStatus.sh
Created August 3, 2022 14:37
Checking NginX status
sudo systemctl status nginx
@itd24
itd24 / install_nginx.sh
Last active August 3, 2022 13:57
Installing NginX on Linux
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install nginx -y