Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am net47 on github.
  • I am tremmel (https://keybase.io/tremmel) on keybase.
  • I have a public key ASD1w99321kMGFpv-8ha6q-RkzOQ9ujEqFDauCrizo2oEgo

To claim this, I am signing this object:

@net47
net47 / check_docker_container.sh
Created May 6, 2020 08:25 — forked from pjosalgado/check_docker_container.sh
Bash Script to Check the Status of a Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Edited by: Paulo José de Oliveira Salgado
# Email: paulo@technosoftware.com.br
@net47
net47 / dnsovertls.md
Created November 14, 2018 09:25 — forked from uraimo/dnsovertls.md
Configure your Mac to use DNS over TLS
@net47
net47 / convert_acl.py
Created June 5, 2018 06:28
Exchange RCV-Connector converter: convert RC output to Data Group List
# -*- coding: utf-8 -*-
import argparse
import sys
parser = argparse.ArgumentParser(description='A simple python script to convert Exchange Receive Connector IP Lists to F5 External Data Group Lists.')
parser.add_argument("-i","--in",help="input file")
parser.add_argument("-o","--out",help="output file")
args = parser.parse_args()
def ipRange(start_ip, end_ip):
@net47
net47 / iRule.tcl
Last active June 5, 2018 06:24
Exchange RCV-Connector converter: iRule to distinguish client requests
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals dgl_clients_without_auth] } {
# use SNAT address for clients with no authentication
snatpool SNAT_no_auth
}
}
@net47
net47 / 0_reuse_code.js
Last active August 29, 2015 14:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console