Skip to content

Instantly share code, notes, and snippets.

View strongpapazola's full-sized avatar
💭
Call me

strongpapazola strongpapazola

💭
Call me
View GitHub Profile
#!/usr/bin/env python
"""
Roughly based on: http://code.activestate.com/recipes/576980-authenticated-encryption-with-pycrypto/
"""
import hashlib
import hmac
from Crypto.Cipher import AES
from Crypto.Random import random
a='''Axel
Bernadetta
Setiawan
Boby
Apriadi
Cheryl
Mesa
Barlianto
Donny
Dozen
@strongpapazola
strongpapazola / 01_postfix_installer.md
Created May 4, 2022 23:51 — forked from jammie/01_postfix_installer.md
Postfix + Dovecot + Postgresql + Postfixadmin + Roundcube + Opendkim

Postfix Installer

Following script may be used for configuring complete and secure email server on fresh install of Ubuntu 18.04 LTS. It will probably work on other distributions using apt-get. After minor changes you'll be able to use it on other Linux distros.

What it does?

02_postfix.sh:

  • Install Postfix and configure it with TLS support.
  • Install Dovecot and configure it's transport on Postfix.
  • Download, extract and correct permissions for Postfixadmin.
  • Download, extract and correct permissions for Roundcube.
@strongpapazola
strongpapazola / docker-api-port.md
Created January 20, 2023 04:45 — forked from styblope/docker-api-port.md
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}