Skip to content

Instantly share code, notes, and snippets.

@naholyr
naholyr / _service.md
Created December 13, 2012 09:39
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@langner
langner / logcheck_ubuntu
Last active January 7, 2017 19:48
Additional logcheck rules for Ubuntu 10/12 workstations and servers
# amavis messages
amavis\[[0-9]+\]: \([-0-9]+\) Passed (CLEAN|BAD-HEADER|SPAM|BANNED)
# avahi daemon: warnings about invalid repsonses and such
avahi-daemon\[[0-9]+\]: Invalid (query packet|legacy unicast query packet|response packet from host)
avahi-daemon\[[0-9]+\]: Received response from host [.0-9]+ with invalid source port [0-9]+ on interface
avahi-daemon\[[0-9]+\]:( last)? message repeated [0-9]+ times
avahi-daemon\[[0-9]+\]: server.c: Packet too short or invalid while reading response record.
avahi-daemon\[[0-9]+\]: dbus-protocol.c: Too many objects for client
@xirixiz
xirixiz / pihole-macvlan-synology-docker.txt
Last active June 10, 2024 08:44
Add a PiHole instance on a macvlan enabled Docker network (Synology eth0 example)
#!/bin/bash
# NAS IP: 192.168.1.10 in this example
# DHCP scope reservation for macvlan: 192.168.1.210/28 (Details below)
## Network: 192.168.1.210/28
## HostMin: 192.168.1.211
## HostMax: 192.168.1.224
## Hosts/Net: 14
# Create a Synology macvlan0 bridge network attached to the physical eth0, and add the ip range scope (sudo)