Skip to content

Instantly share code, notes, and snippets.

View jwaibel's full-sized avatar

Jürgen Waibel jwaibel

View GitHub Profile
@jwaibel
jwaibel / README-Template.md
Created August 1, 2023 16:23 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@jwaibel
jwaibel / sample-dns.txt
Last active May 13, 2019 20:28
Sample bind DNS Zone for mailcow server settings
; - Default TTL
$TTL 86400
; - SOA
@ IN SOA ns1.example.com. postmaster.example.com. (
2019051401 ; Serial
14400 ; Refresh
1800 ; Retry
604800 ; Expire
86400 ) ; Minimum
@jwaibel
jwaibel / keybase.md
Last active November 21, 2020 21:31

Keybase proof

I hereby claim:

  • I am jwaibel on github.
  • I am jwd (https://keybase.io/jwd) on keybase.
  • I have a public key ASA4nE1_RiP7cn91OIOviw-5RsDfJGdUnmeG7yubkUfeggo

To claim this, I am signing this object:

@jwaibel
jwaibel / logstash_postfix.conf
Last active August 29, 2015 14:25 — forked from danslimmon/logstash_postfix.conf
My logstash config for postfix logs
filter {
# Capture all the generic syslog stuff and populate @timestamp
if [type] == "postfix" {
grok {
match => [ "message", "%{SYSLOGBASE} %{GREEDYDATA:_syslog_payload}" ]
singles => true
}
# Postfix pads single-digit numbers with spaces (WHYYYYY)
mutate { gsub => [ "timestamp", " ", " 0" ] }
date { match => [ "timestamp", "MMM dd HH:mm:ss"] }
@jwaibel
jwaibel / ability.rb
Created August 27, 2012 13:37 — forked from watson/ability.rb
Active Admin CanCan integration with shared front/backend User model and multi-level autherization
# app/models/ability.rb
# All front end users are authorized using this class
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new
can :read, :all