Skip to content

Instantly share code, notes, and snippets.

View daks's full-sized avatar

Éric Veiras Galisson daks

View GitHub Profile
@scottnunemacher
scottnunemacher / dovecot-doveadm-sync.md
Last active April 28, 2024 19:06
Sync (migrate) a Dovecot Email Account from One Dovecot Server to Another

Sync (migrate) a Dovecot Email Account from One Dovecot Server to Another

The man doveadm-sync pages are cryptic and not very well explained, as well they are missing quality real-world examples.

This gist aims to give some clarity and explanation.

Here is the command I got to successfully transfer (and sync backwards too) an email account from an old Dovecot email server to a new Dovecot email server:

To my knowledge, both servers must have a matching account already setup for this to work:

@baby-gnu
baby-gnu / salt-ssh config
Last active August 18, 2023 07:48
Configure salt-ssh to use only files under ~/.salt: all the following files are relative to ~/.salt/
My complete configuration is now hosted at https://gitlab.mim-libre.fr/-/snippets/13
@AmanAgarwal041
AmanAgarwal041 / architecture.md
Last active July 29, 2023 10:23
Project Architecture For Front End Applications

Project Architecture For Front End Applications

Deciding how to design your project's architecture is still a complex thing. Everybody while starting a project goes through different articles and blogs to understand the ways to develop your project's architecture.

Project's Architecture
Working on a badly designed project's architecture is as difficult as designing it good.
The Architecture of your project should be so neat and descriptive such that if a new developer starts working on it, one should not encounter any problem in understanding the patht that the data follows to render the ui.
@The-Loeki
The-Loeki / sssh.sh
Created March 23, 2017 22:40
Shell Script for Standalone Salt SSH
#!/bin/bash
# * Set up a temp directory with some stuff in it
# * Preconfigure Salt SSH to run standalone from that temp space
# * Create a roster with minion_ids ($1) and IP's ($2)
# * Run Salt-SSH to Highstate (or $@) the roster
set -x
cd $(dirname $0)
SALT_DIR=${SALT_DIR:-/srv/salt}
@wrzasa
wrzasa / collectd-squid-plugins
Last active February 9, 2018 20:08
Collectd plugins to read squid statistics.
Work for me with squid 3.4 on debian jessie.
I use it with collectd exec plugin (https://collectd.org/documentation/manpages/collectd-exec.5.shtml)
to collect data from squid, send it over the network to influxdb and visualize with grafana.
Maybe someone will have some use of it. Good luck ;-)
https://gist.github.com/wrzasa/dfd7b554171159a6b2ab24b03b8e30b8/
@rxaviers
rxaviers / gist:7360908
Last active May 3, 2024 02:30
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@adrienbrault
adrienbrault / purge.sh
Created September 24, 2012 10:02
Script to reduce VM size before packaging for vagrant
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
@ndarville
ndarville / secret-key-gen.py
Created August 24, 2012 17:01
Generating a properly secure SECRET_KEY in Django
"""
Two things are wrong with Django's default `SECRET_KEY` system:
1. It is not random but pseudo-random
2. It saves and displays the SECRET_KEY in `settings.py`
This snippet
1. uses `SystemRandom()` instead to generate a random key
2. saves a local `secret.txt`
@bergantine
bergantine / gist:1119284
Last active June 4, 2022 16:42
Python Random Password Generator (One Liner). #python #password
python -c "from random import choice; print ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789%^*(-_=+)') for i in range(32)])"