Skip to content

Instantly share code, notes, and snippets.

View jpylypiw's full-sized avatar
⚜️
A user interface is like a joke. If you have to explain it, it's not that good.

Jochen P. jpylypiw

⚜️
A user interface is like a joke. If you have to explain it, it's not that good.
View GitHub Profile
@jpylypiw
jpylypiw / rspamd-whitelisting.md
Created July 20, 2020 08:44 — forked from ThomasLeister/rspamd-whitelisting.md
How to whitelist IP addresses or domains in Rspamd

Whitelist IP addresses based on pre-filter policy

/etc/rspamd/local.d/multimap.conf:

  IP_WHITELIST {
      type = "ip";
      prefilter = true;
      map = "/${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
 action = "accept";
@jpylypiw
jpylypiw / mysql2sqlite.sh
Created January 16, 2018 22:35 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite