Skip to content

Instantly share code, notes, and snippets.

View Fabian1976's full-sized avatar

Fabian van der Hoeven Fabian1976

View GitHub Profile
@Fabian1976
Fabian1976 / update-adblock-dnsmasq.sh
Created February 13, 2017 06:52 — forked from Ar0xA/update-adblock-dnsmasq.sh
USG DNS adblock/malwareblock
#!/bin/bash
#
#DNS adblock/malware block for USG
#
#Orginal script: https://community.ubnt.com/t5/UniFi-Routing-Switching/Use-USG-to-block-sites-apps-like-ER/td-p/1497045
#
#Howto: SSH into your USG:
#sudo su -
#vi /config/user-data/update-adblock-dnsmasq.sh (add file content)
#ESC :wq
@Fabian1976
Fabian1976 / auditd.conf
Created March 14, 2017 10:56 — forked from sakalajuraj/auditd.conf
Logstash configuration for auditd messages received via syslog
# Content of the file /etc/logstash/conf.d/auditd.conf
# Tested on the CentOS 7 auditspd logs forwarded to logstash via rsyslog
input {
syslog {
type => AUDITD
port => xxxx
host => "xxx.xxx.xxx.xxx"
}
}
@Fabian1976
Fabian1976 / pr.md
Created April 3, 2017 06:46 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@Fabian1976
Fabian1976 / qdrouterd.conf
Created January 11, 2019 14:15 — forked from stbenjam/qdrouterd.conf
qdrouterd.conf for dispatch router 1.0
##
## Licensed to the Apache Software Foundation (ASF) under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. The ASF licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this file except in compliance
## with the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0