Skip to content

Instantly share code, notes, and snippets.

@rkennesson
Last active November 10, 2019 06:50
Show Gist options
  • Save rkennesson/ca6a5ab0286934ae1991e75af99524d0 to your computer and use it in GitHub Desktop.
Save rkennesson/ca6a5ab0286934ae1991e75af99524d0 to your computer and use it in GitHub Desktop.
HISTIGNORE=
HISTCONTROL=ignorespace
HISTSIZE='INFINITY'
HISTFILESIZE='INFINITY'
yum install -y epel-release bash-completion
yum install -y podman certbot
yum install -y firewalld
systemctl enable firewalld --now
yum install -y ntp
firewall-cmd --permanent --add-service=ntp
yum install -y nginx
systemctl enable nginx --now
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
yum install -y ssh
systemctl enable sshd --now
firewall-cmd --permanent --add-service=ssh
dd if=/dev/zero of=/swapfile count=2048 bs=1MiB
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
Notepadqq
bat (cat replacement)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment