Skip to content

Instantly share code, notes, and snippets.

View ahangsleben's full-sized avatar

Andrew Hangsleben ahangsleben

View GitHub Profile
@grantjenks
grantjenks / xml_rpc_client_unix_domain_socket.py
Created October 22, 2019 03:42
Python 3 XML-RPC Using Unix Domain Sockets
import http.client
import socket
import xmlrpc.client
class UnixStreamHTTPConnection(http.client.HTTPConnection):
def connect(self):
self.sock = socket.socket(
socket.AF_UNIX, socket.SOCK_STREAM
)
@NathanGiesbrecht
NathanGiesbrecht / noip2.service
Last active September 28, 2024 03:02
Systemd Service file for no-ip.com dynamic ip updater
# Simple No-ip.com Dynamic DNS Updater
#
# By Nathan Giesbrecht (http://nathangiesbrecht.com)
#
# 1) Install binary as described in no-ip.com's source file (assuming results in /usr/local/bin)
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file
# 3) Copy this file noip2.service to /etc/systemd/system/
# 4) Execute `sudo systemctl daemon-reload`
# 5) Execute `sudo systemctl enable noip2`
# 6) Execute `sudo systemctl start noip2`