Skip to content

Instantly share code, notes, and snippets.

@Zebiano
Zebiano / ddclient.md
Last active June 22, 2023 22:45
DDClient systemd service setup with Namecheap

DDClient setup

Warning: I believe the paths to be outdated, as DDClient docs point to /etc/ddclient/ddclient.conf instead of /etc/ddclient.conf. However, this document should still work regardless.

Quick and easy steps to get DDClient running with Namecheap and as a systemd service on Ubuntu Server OS.

@planetceres
planetceres / RESET_USB_KERNEL_MODULE.md
Last active June 19, 2024 14:56
Restart/reset USB kernel module in Ubuntu 18.04 without rebooting
@dansimau
dansimau / timeout-server.py
Created March 26, 2014 08:49
HTTP server that accepts connections and then hangs. Used to simulate and test slow API connections.
#!/usr/bin/python
import sys
import time
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(s):
while True:
time.sleep(1000)
@wendazhou
wendazhou / ManualValidation.cs
Created March 26, 2013 16:10
A simple helper to manually toggle WPF validation on FrameworkElements.
/// <summary>
/// Provides helpers to manually toggle validation errors.
/// </summary>
public static class ManualValidation
{
// this dummy attached property is used as a source
// of the binding.
static readonly DependencyProperty DummyProperty =
DependencyProperty.RegisterAttached("DummyProperty", typeof(object), typeof(ManualValidation), new PropertyMetadata(null));