Skip to content

Instantly share code, notes, and snippets.

View ZsBT's full-sized avatar
💭
💙 💛

ZS ZsBT

💭
💙 💛
View GitHub Profile
@ZsBT
ZsBT / setup-opendkim.sh
Last active May 22, 2018 13:25
Create opendkim configuration under Debian.
#!/bin/bash
#
# to use with Postfix.
# Exim users, get out of here! Write your own scripts.
#
set -e
serviceIP="127.0.0.2"
servicePort=1051
@ZsBT
ZsBT / installed-packages.sh
Created September 22, 2017 12:38
show manually installed packages under debian
#!/bin/sh
#
# show manually installed packages under debian
#
aptHistory(){
install_or_remove=$1
for pkg in $(zgrep -hoE "apt(-get)? (-y )?$install_or_remove .*" /var/log/apt/history.log*gz);do
echo "$pkg"
done | sort|sort -u | grep -v '^-'
@ZsBT
ZsBT / outlook_thread_index.class.php
Last active January 12, 2017 13:44 — forked from brettp/thread-index.php
PHP class implementation for Outlook's bogus proprietary thread-index for message threading
<?php /*
encode/decode Outlook thread index.
GUID must be 32 bytes long
forked from brettp/thread-index.php
*/