I hereby claim:
- I am thomasleister on github.
- I am thomasleister (https://keybase.io/thomasleister) on keybase.
- I have a public key whose fingerprint is 2500 F4F5 2F77 AE69 E22B 331D 2AB6 AD36 9DFD 2A65
To claim this, I am signing this object:
lsblk | |
sudo fdisk /dev/sdb | |
List all partitions | |
Delete all partitions by pressing "d" | |
Create new primary Partition with full size (enter, enter, ...) | |
Set partition type by pressing "t" and set to FAT32 (choice "b") |
find /var/lib/prosody/uploads/* -maxdepth 0 -type d -mtime +30 | xargs rm -rf |
Error: | |
mastodon@mastodon:~/live$ bundle install | |
rbenv: version `2.5.1' is not installed (set by /home/mastodon/live/.ruby-version) | |
Solution: | |
cd /home/mastodon/.rbenv/plugins/ruby-build && git pull && cd - | |
rbenv install '2.5.1' | |
Then quit "mastodon" user via "exit" and re-enter user shell. | |
(This reloads environment variables) |
/* Create queries for https://thomas-leister.de/mailserver-debian-stretch/ */ | |
create table domains ( | |
id serial not null, | |
domain char (255) unique not null, | |
PRIMARY KEY (id) | |
); | |
create table accounts ( | |
id serial not null, |
ACLs enabled for LXD / LXC containers on ZFS: | |
apt install acl (on host and container) | |
zfs set acltype=posixacl default/containers/kirby (on host) | |
(restart container) | |
=> *profit* |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
libressl_version=libressl-2.5.1 | |
libressl_archive=${libressl_version}.tar.gz | |
if [ -f ${libressl_archive} ] | |
then | |
: | |
else | |
wget -O ${libressl_archive} https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${libressl_archive} |
## | |
## Create a "spammers.txt" file with all the JIDs (Jabber IDs) to delete. One in each line: | |
## user1@server.tld | |
## user2@server.tld | |
## user3@server.tld | |
## ... | |
## then run this command: | |
cat spammers.txt | xargs -L1 -i bash -c 'jid={}; name=${jid%@*}; domain=${jid##*@}; ejabberdctl unregister $name $domain; echo "deleted $jid"' |
#!/bin/bash | |
### Script installs root.cert.pem to certificate trust store of applications using NSS | |
### (e.g. Firefox, Thunderbird, Chromium) | |
### Mozilla uses cert8, Chromium and Chrome use cert9 | |
### | |
### Requirement: apt install libnss3-tools | |
### |
# This script converts the DB layout of the old mailserver guide (Ubuntu 14.04) [1] | |
# to the new one, introduced with Ubuntu Xenial (16.04) [2]. | |
# Please note that the DB schema / tables for the new schema already need to exist. | |
# This script is just transferring / converting table _contents_. | |
# | |
# No not forget to provide your own database name and credentials in the | |
# MySQL "connect" commands at the beginning of the script! | |
# | |
# Prerequisites: | |
# apt install python3-pip |