sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fail2ban
This file contains hidden or 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 | |
# | |
# Brady Shea - 18SEP2020 - conversion of system_update alias to bash script | |
# https://www.holylinux.net/ | |
# | |
# Place this script in "/usr/local/sbin/system_update" or similar location under your $PATH | |
# It needs root permissions (SUDO) to execute. | |
# | |
# Change these settings to your liking: | |
################################# |
Inspiration: https://www.most-useful.com/kde-plasma-on-wsl.html
- Update WSL
- In windows command prompt run:
wsl --update
- In windows command prompt run:
- Add systemd to ubuntu
- In ubuntu prompt run:
sudo nano /etc/wsl.conf
This file contains hidden or 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 | |
# USAGE: ./tmux-new.sh SESSION_NAME | |
# | |
# Credit to Keon Woortman | |
# URL: https://koenwoortman.com/tmux-sessions-should-be-nested-with-care-unset-tmux-to-force/ | |
session_name="$1" | |
# 1. First you check if a tmux session exists with a given name. | |
tmux has-session -t=$session_name 2> /dev/null |
This file contains hidden or 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
/db | |
/plugins | |
/uploads | |
/logs |
This file contains hidden or 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 | |
# "system_update" | |
# Brady Shea | |
# Creation: 18SEP2020 - conversion of system_update alias to bash script | |
# Last update: 13DEC2024 - fixed distro string for debian, added uptime to info presented | |
# Original location: https://gist.github.com/bmatthewshea/6ef60db227d52f39200029312dd5446a | |
# Author Website: https://www.holylinux.net/ | |
# | |
# Place this script in "/usr/local/sbin/system_update", or similar location under your $PATH | |
# It needs root permissions (SUDO) to execute. |
This file contains hidden or 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 python | |
# Written by Shivasiddharth a.k.a Sid | |
# Youtube channel https://www.youtube.com/c/SidsEClassroom | |
# Share this script without removing the author's name | |
# This piece of script Upscales or Downscales videos using Opencv | |
# If the original video has an audio stream, | |
# it will merge the audio from the source file with the scaled video |
This file contains hidden or 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
version: '3' | |
services: | |
nginx-proxy: | |
image: nginx:alpine | |
container_name: proxy-nginx | |
environment: | |
- DEFAULT_HOST=hello.local | |
ports: | |
- 80:80 |
NewerOlder