Skip to content

Instantly share code, notes, and snippets.

View mauvehed's full-sized avatar
:shipit:
hax.

mauvehed mauvehed

:shipit:
hax.
View GitHub Profile
@mubix
mubix / infosec_newbie.md
Last active April 7, 2024 22:35
How to start in Infosec
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active May 31, 2024 12:46
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@Geoyi
Geoyi / install virtualenv ubuntu 16.04.md
Created September 16, 2017 12:19 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 

Simple cheatsheets

Including git, vagrant, pandas

@levsthings
levsthings / docker-ce-ubuntu-17.10.md
Last active April 13, 2023 21:05
Install Docker CE on Ubuntu 17.10

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

If you are used to installing Docker to your development machine with get-docker script, that won't work either. So the solution is to install Docker CE from the zesty package.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@Popsiclestick
Popsiclestick / Dockerfile
Last active May 29, 2023 19:10
Dockerfile example with best practices
### Generic Dockerfile demonstrating good practices
### Imports
# Bad. You risk both the stability and security of your application
# You don't know what they might merge into their image or who they may give control of the project
# https://twitter.com/b0rk/status/1226856930875932672/photo/1
FROM random-person/golang:latest
# Bad-ish. We don't need Ubuntu, it comes with unnecessary bloat
@Zate
Zate / docker-compose.yaml
Created May 3, 2022 15:37
Valheim docker-compose.yaml
version: "3"
services:
valheim:
image: mbround18/valheim:latest
ports:
- "2456:2456/udp"
- "2457:2457"
- "2458:2458/udp"
environment:
PORT: 2456
@mauvehed
mauvehed / Ubuntu LTS Upgrade via CLI.md
Last active November 23, 2022 17:02
Ubuntu LTS Upgrade via CLI
@mauvehed
mauvehed / Ubuntu - Enable Autoupdates.md
Last active November 23, 2022 17:02
Ubuntu - Enable Autoupdates

Execute the following command to update a server

sudo apt update && sudo apt upgrade

Now, install the unattended upgrade on your Ubuntu system through the following command:

sudo apt install unattended-upgrades apt-listchanges bsd-mailx

After that, turn on the unattended security updates by running the following command:

@mauvehed
mauvehed / Fail2ban Debian-based Config.md
Last active February 23, 2023 13:47
Fail2ban Debian-based Config

Fail2ban Configuration

The default Fail2ban installation comes with two configuration files, /etc/fail2ban/jail.conf and /etc/fail2ban/jail.d/defaults-debian.conf. It is not recommended to modify these files as they may be overwritten when the package is updated.

Fail2ban reads the configuration files in the following order. Each .local file overrides the settings from the .conf file:

  • /etc/fail2ban/jail.conf
  • /etc/fail2ban/jail.d/*.conf
  • /etc/fail2ban/jail.local
  • /etc/fail2ban/jail.d/*.local