Skip to content

Instantly share code, notes, and snippets.

View ibqn's full-sized avatar

Evgeny Bobkin ibqn

  • Europace AG
  • Berlin - Deutschland
View GitHub Profile
@ibqn
ibqn / mailserver-howto.md
Last active October 12, 2024 16:28
Email server based on Dovecot, Postfix, MySQL, Rspamd and Debian 9 Stretch

Email server based on Dovecot, Postfix, MySQL, Rspamd and Debian 9 Stretch

MySQL database setup

Install MariaDB as a database management system DBMS

sudo apt install mariadb-server

Create a new database named srvmail for a mail server:

@ibqn
ibqn / build-rspamd.md
Last active July 13, 2019 08:22
Create a deb package for rspamd on armhf (Raspberry Pi)

Install build and runtime dependencies:

git clone --recursive https://github.com/vstakhov/rspamd.git
cd rspamd

For master:

sudo apt install devscripts fakeroot debhelper libcurl4-openssl-dev dh-systemd libjemalloc-dev libunwind-dev ragel libevent-dev lua5.1 liblua5.1-dev cmake sqlite3 libmagic-dev libsqlite3-dev libicu-dev libglib2.0-dev libssl-dev libsodium-dev
@ibqn
ibqn / rainloop.md
Last active July 14, 2019 14:10
Install RainLoop Webmail on Ubuntu 18.04 or Raspbian

Install RainLoop Webmail

Download the latest RainLoop Webmail community version

wget http://www.rainloop.net/repository/webmail/rainloop-community-latest.zip

Create a new directory for our RainLoop webmail installation

sudo mkdir -p /var/www/rainloop

Extract the files from the archive and upload them to the RainLoop web root directory

@ibqn
ibqn / block-china.md
Created July 14, 2019 19:33
Fear China. Unexpected ddos on your sshd deamon blocking china with ipset and iptables

Install ipset

sudo apt install ipset

Create folder

sudo mkdir -p /etc/block-china/

Create a bash script

@ibqn
ibqn / docker.md
Last active August 1, 2024 14:49
Install Docker on Ubuntu, Debian and Raspbian (Raspberry Pi 3), respectively

Install docker

prerequisites, install them if not already present

sudo apt install apt-transport-https  ca-certificates curl gnupg-agent software-properties-common

add docker's GPG key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@ibqn
ibqn / notes.md
Last active November 3, 2019 20:12
Useful notes

disable dynamic session-creation by default in byubu

Allow the dynamic session-creation behaviour to be disabled by creating

 touch ~/.byobu/.reuse-session

Its fixed in byobu 5.125. Just create ~/.byobu/.reuse-session

@ibqn
ibqn / absender.lco
Created August 7, 2019 18:19 — forked from puppe/absender.lco
Deutsche Briefvorlage für LaTeX (scrlttr2)
\ProvidesFile{absender.lco}
\KOMAoptions{%
% fromemail=true, % Email wird im Briefkopf angezeigt
% fromphone=true, % Telefonnumer wird im Briefkopf angezeigt
% fromfax=true, % Faxnummer wird im Briefkopf angezeit
% fromurl=true, % URL wird im Briefkopf angezeigt
% fromlogo=true, % Logo wird im Briefkopf angezeigt
% subject=titled, % Druckt "Betrifft: " vor dem Betreff
locfield=wide, % Breite Absenderergänzung (location)
@ibqn
ibqn / absender.lco
Created August 7, 2019 18:19 — forked from puppe/absender.lco
Deutsche Briefvorlage für LaTeX (scrlttr2)
\ProvidesFile{absender.lco}
\KOMAoptions{%
% fromemail=true, % Email wird im Briefkopf angezeigt
% fromphone=true, % Telefonnumer wird im Briefkopf angezeigt
% fromfax=true, % Faxnummer wird im Briefkopf angezeit
% fromurl=true, % URL wird im Briefkopf angezeigt
% fromlogo=true, % Logo wird im Briefkopf angezeigt
% subject=titled, % Druckt "Betrifft: " vor dem Betreff
locfield=wide, % Breite Absenderergänzung (location)

pip freeze | grep -v "pkg-resources" | sort > freezed-requirements.txt

truncate -s 0 hashed-reqs.txt

while read p do echo "$p" hashin "$p" --requirements-file=hashed-reqs.txt done < freezed-requirements.txt

@ibqn
ibqn / pip.txt
Last active March 12, 2020 10:14
pip freeze | grep -v "pkg-resources" | sort > frozed-requirements.txt
truncate -s 0 hashed-requirements.txt
while read p
do
echo "$p"
hashin "$p" --requirements-file=hashed-requirements.txt
done < frozed-requirements.txt