Skip to content

Instantly share code, notes, and snippets.

@onstatus
onstatus / backup_email.sh
Last active August 2, 2020 17:48
Backup and/or sync Maildir between old and new mail server. This script use Dovecot Dsync configuration.
#!/bin/bash
# This script require Dsync configuration
# https://wiki2.dovecot.org/Migration/Dsync
# - IMAP migration configuration
# - POP3 migration configuration
# Dsync can use master authentication (https://wiki2.dovecot.org/Authentication/MasterUsers)
NOW=$(date +"%m-%d-%Y")
SUBJECT="Email Backed Up - "$NOW""
EMAIL="[email protected]"
@onstatus
onstatus / ipa_email_password_reset
Last active January 28, 2021 19:24
Bash script to reset FreeIPA accounts password. This code assume that admin kerberos ticket is still valid
#!/bin/bash
[email protected]
URL="https://webmail.example.com"
EMAILMESSAGE="email_password.txt"
SUBJECT="New password for email account"
LOGMSG="emaillog.txt"
echo > $LOGMSG
@onstatus
onstatus / bj_dns_traffic_to_google_pdns.r
Last active November 14, 2017 14:17
R code to generate percentage of BJ DNS traffic using Google PDNS (8.8.8.8)
# Get data from ApNic
# https://stats.labs.apnic.net/ecdsa/BJ
# For instance
cat bj_gpdns.csv
ISP,Sample,GPDNS %
CanalBox-Benin-AS,1299,61.12
SUD-TELCOM-AS,186,34.41
BENINTELECOM,35118,92.57
Spacetel,60193,70.54
JENY-SAS-AS,3091,55.71
@onstatus
onstatus / beamerthemematerial.sty
Created September 15, 2017 10:53 — forked from walshc/beamerthemematerial.sty
Material Design Beamer theme.
% Copyright 2016 by Christoph Walsh
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
% Used material from:
% https://github.com/edasubert/beamerMaterialDesign and
% http://ctan.mackichan.com/macros/latex/contrib/beamer/base/themes/outer/beamerouterthememiniframes.sty
@onstatus
onstatus / ais_logo.tex
Created May 21, 2017 10:38
African Internet Summit (AIS) logo on LaTex. This code could be use in any LaTex document to generate scalable AIS logo.
%% Copyright 2014 Alfred AROUNA
%
% This work may be distributed and/or modified
%
% 1 - under the conditions of the LaTeX Project Public License
% 2 - under the GNU Public License.
%
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.
%

Keybase proof

I hereby claim:

  • I am alfredarouna on github.
  • I am alfredarouna (https://keybase.io/alfredarouna) on keybase.
  • I have a public key ASCH940vyoOO--aY7pajo78_CF-AC3J3hNucauc1kmLcbwo

To claim this, I am signing this object: