Skip to content

Instantly share code, notes, and snippets.

View PotterSys's full-sized avatar

Juan PotterSys

View GitHub Profile
@PotterSys
PotterSys / lemp-ubuntu.sh
Created April 2, 2025 00:27 — forked from ph33nx/lemp-ubuntu.sh
LEMP stack on Ubuntu 24.04 LTS (2024): Automated Bash Script for Installing Nginx, Php 8.3, WordPress, Mysql/Mariadb
#!/bin/bash
# This script is meant to be run on a fresh Ubuntu 24.04 LTS installation.
# Tired of manually installing LEMP stack on Ubuntu? This script will do it for you.
#
# Optionally, This script restores a server from a backup. It assumes the following directory structure:
# - backup/
# - nginx/ (contains nginx configuration files)
# - db/ (contains .sql files for database restoration)
# - sites.zip (zipped file containing site files)
@PotterSys
PotterSys / tmux-cheatsheet.markdown
Created September 18, 2022 06:18 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@PotterSys
PotterSys / screen_cheatsheet.markdown
Last active February 28, 2022 15:28 — forked from jctosta/screen_cheatsheet.markdown
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r