Skip to content

Instantly share code, notes, and snippets.

View JonTheWong's full-sized avatar
💭
Working on forgetfulmail

Jon Wong JonTheWong

💭
Working on forgetfulmail
View GitHub Profile
@peterwzhang
peterwzhang / DI-Corvus-Trivia.md
Last active February 5, 2024 02:27
Diablo Immortal Corvus Trivia Answers

Diablo Immortal Corvus Trivia Answers

This is a collection of the Corvus Expedition Trivia questions seen on the Pandemonium server

  1. Which demon has never been among the three Prime Evils - Azmodan
  2. This angel helped create humanity - Inarius
  3. Alive without breath. Cold as death. Never thirst but always drink. - Fish
  4. The Worldstone is known by each of these names except one - The Crystal Spear
  5. The Lord of Lies, never to be trusted, always in the shadows - Belial
  6. How many Great Evils are there - 7 great evils
  7. The more that are taken, The more left behind - Footsteps
  8. The Lord of Pain and the king of maggots - Duriel
import Foundation
import AppKit
import AVFoundation
extension NSImage {
@objc var CGImage: CGImage? {
get {
guard let imageData = self.tiffRepresentation else { return nil }
guard let sourceData = CGImageSourceCreateWithData(imageData as CFData, nil) else { return nil }
return CGImageSourceCreateImageAtIndex(sourceData, 0, nil)
@mdpuma
mdpuma / Integrate rspamd with cpanel
Last active April 25, 2024 14:01
Integrate rspamd with cpanel
* go to whm -> exim configuration manager
* choose advanced editor
* search spamd & replace with this:
spamd_address = 127.0.0.1 11333 variant=rspamd
set smtputf8_advertise_hosts = *
* find and disable greylisting block
* find and disable acl_smtp_data:default_check_message_pre
@kvaps
kvaps / rspamd-lists.md
Last active May 6, 2024 05:13
Howto create local whitelists and blacklists for Rspamd

Local whitelists and blacklists for Rspamd

  • cd /etc/rspamd
  • create rspamd.conf.local
  • create lists:
touch local_bl_from.map.inc local_bl_ip.map.inc local_bl_rcpt.map.inc \
local_wl_from.map.inc local_wl_ip.map.inc local_wl_rcpt.map.inc
  • change permissions:
<?php
/**
* Generate uuids for clients and admins that don't have uuids set.
*
* The WHMCS 6.2.0 update process automatically inserts uuids, but if your
* installation bypasses WHMCS update routines then this will generate uuids for
* the client and admin users that don't have one yet.
*
* Warning! Please back up at least your tblclient and tbladmin tables before
@mrballcb
mrballcb / gist:74b1955a6d9731e0d2c7
Last active July 15, 2022 02:53
Exim DMARC with configuration to send DMARC reports (but not forensic reports)
1) Exim config
a. Global settings:
dmarc_history_file = /var/spool/exim/dmarc_history.txt
dmarc_tld_file = /etc/exim/opendmarc.tlds
b. Get the tld file (list of valid TLD's) from http://publicsuffix.org/list/
c. Somewhere early in the RCPT ACL I have:
.include_if_exists /etc/exim/dmarc_acl_control.conf
@untergeek
untergeek / kibana.json
Last active March 27, 2019 01:09
Simple Kibana dashboard for collectd stats
{
"title": "Collectd: Blackbox",
"services": {
"query": {
"list": {
"0": {
"query": "plugin:\"load\"",
"alias": "Load",
"color": "#7EB26D",
"id": 0,
@rshk
rshk / kibana-apache-logs.json
Created May 6, 2014 16:16
Kibana: analyze Apache logs
{
"title": "Apache logs",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,