Skip to content

Instantly share code, notes, and snippets.

View arnaudrenaud's full-sized avatar

Arnaud Renaud arnaudrenaud

View GitHub Profile
@arnaudrenaud
arnaudrenaud / set-up-ufw-firewall-linux-web-server.md
Last active April 20, 2024 12:41
Cheatsheet: Set up UFW firewall on a Linux web server

Set up UFW firewall on a Linux web server

For reference: https://www.webservertalk.com/ubuntu-firewall-how-to-configure-ufw/.

Run the following:

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22 # ⚠️ Replace by your actual SSH port (22 by default) — otherwise, SSH access will be lost after reboot!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arnaudrenaud
arnaudrenaud / delete-github-actions-workflow-runs.sh
Created February 16, 2026 10:05
Remove GitHub Actions workflow from menu (delete all runs)
#!/usr/bin/env bash
# Delete all the runs for a given workflow
# This removes workflow from menu
# Usage: ./delete-github-actions-workflow-runs.sh <repository> <workflow-name>
set -oe pipefail
REPOSITORY=$1