Skip to content

Instantly share code, notes, and snippets.

View thriftedfashion's full-sized avatar

Teagan R thriftedfashion

View GitHub Profile
alias c='clear'
alias update="sudo apt update -y"
alias upgrade="sudo apt upgrade -y"
alias remove="sudo apt autoremove -y"
alias install="sudo apt install -y"
alias fix="sudo apt -f install"
alias restart="sudo systemctl restart"
alias enable="sudo systemctl enable"
alias disable="sudo systemctl disable"
alias start="sudo systemctl start"
@thriftedfashion
thriftedfashion / Mail Server on Ubuntu 14.04
Created September 3, 2023 23:57 — forked from topwebmaster/Mail Server on Ubuntu 14.04
Settings Linux mint after fresh install for php developing
https://www.exratione.com/2014/05/a-mailserver-on-ubuntu-1404-postfix-dovecot-mysql/
Ex
Ratione
GitHub • Consulting • Blog • Archives • Feed
A Mailserver on Ubuntu 14.04: Postfix, Dovecot, MySQL
By Reason May 1, 2014 Permalink
This long post contains a recipe for building a reasonably secure Ubuntu 14.04 mail server in Amazon Web Services, using Postfix, Dovecot, and MySQL, with anti-spam packages in the form of amavisd-new, Clam AntiVirus, SpamAssassin, and Postgrey. Local users are virtual rather than being system users. Administration of users and domains is achieved through the Postfix Admin web interface. Webmail is provided by Roundcube.

Linux Configuration

By: Sagar Chamling

First Upgrade

sudo apt update
sudo apt upgrade
@thriftedfashion
thriftedfashion / openvpn-setup.sh
Created June 3, 2023 20:33 — forked from XMB5/openvpn-setup.sh
Easy automatic OpenVPN setup for Ubuntu Server
#!/bin/bash
#easy openvpn server setup for ubuntu
read -p "port (1-65535): " PORT
read -p "protocol (udp or tcp): " PROTOCOL
read -p "encrypt (y or n): " ENCRYPT
read -p "hmac (y or n): " HMAC
read -p "xor scramble (y or n): " SCRAMBLE
read -p "compress (y or n): " COMPRESS_YN
read -p "network number (0-255): " NETWORK_NUM

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@thriftedfashion
thriftedfashion / 1.md
Created January 17, 2023 08:45 — forked from rogeriopradoj/1.md
Referências para apresentação "Meu primeiro chatbot em PHP com o BotMan.io" no PHPSP + Talks #3 - Novatec - https://www.meetup.com/php-sp/events/239146781/
@thriftedfashion
thriftedfashion / ubuntu-cleaner.sh
Created January 3, 2023 14:52 — forked from ansemjo/ubuntu-cleaner.sh
Clean up unwanted packages on a fresh installation of Ubuntu 20.04 LTS
#!/usr/bin/env bash
set -eu
# mark a few packages as explicitly installed
mark-wanted() {
apt install -y \
bash git tmux vim htop \
unattended-upgrades \
software-properties-common;
}
@thriftedfashion
thriftedfashion / systemd_service_hardening.md
Created January 3, 2023 14:52 — forked from ansemjo/systemd_service_hardening.md
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@thriftedfashion
thriftedfashion / SETUP.md
Created July 23, 2022 10:58 — forked from jozsefsallai/SETUP.md
Debian Sid server setup cheatsheet

Debian Sid server setup cheatsheet

1. Generate an SSH key on your local machine (if you don't have one already):

ssh-keygen -t rsa -b 4096 -C "My key"

2. Copy the public key:

cat ~/.ssh/id_rsa.pub
@thriftedfashion
thriftedfashion / tips_and_tricks.txt
Last active June 25, 2022 08:46
Tip's and Trick's for Ubuntu
Ubuntu Notes
# Change shells
$ chsh -s $(which bash|zsh)