Skip to content

Instantly share code, notes, and snippets.

@wrobelda
wrobelda / convert_opnhome_isc_to_dnsmasq_csv.py
Last active September 7, 2025 16:38
Convert OPNHome ISC DHCP mappings to Dnsmasq CSV import
import xml.etree.ElementTree as ET
import csv
import sys
csv_writer = csv.writer(sys.stdout)
# Write header
csv_writer.writerow([
"host", "domain", "ip", "client_id", "hwaddr",
"lease_time", "ignore", "set_tag", "descr", "aliases"
@gene1wood
gene1wood / how-to-find-HP-retired-product-support-page.md
Created October 19, 2024 20:25
How to find the link to HP Drivers and Support for retired products

If you go to the HP support site

https://support.hp.com/us-en/drivers/desktops

And enter the serial number of your retired HP device, it will respond with an error message saying that your product is retired and that they don't provide drivers and manuals any more.

HP policy for products no longer supported HP Support may vary by product. Once a product is retired, the official HP support content (troubleshooting articles, user guides, how-to videos, etc.) for that product is removed from the HP web site. Additional support content may still be available via the HP Forums or from third-party web sites; however, HP takes no responsibility for content authored by third-parties.

@roadkell
roadkell / acpi-call-kernel-oops.md
Last active November 3, 2025 13:07
Fixing acpi_call kernel oops on Thinkpads

Fixing acpi_call kernel oops on Thinkpads

Intro

TLP, a power management utility for Thinkpads and other laptops, uses tpacpi-bat script for battery calibration and setting charge thresholds (for Thinkpads xx20 and later), which in turn uses acpi_call Linux kernel module that enables calls to ACPI methods through /proc/acpi/call. acpi_call can also be used for hybrid graphics switching and other power management tasks.

What happened

As explained here and here, a kernel upstream commit made seek support for [procfs](https://en.wikipedia.org/wiki/

@chriscpritchard
chriscpritchard / tutorial.md
Last active October 6, 2025 19:15
Technicolor DWA0120 - Obtain PPPOE Password
  1. Connect to the router via ssh, the username is "engineer" and the password is the access key on the bottom of your router
  2. You will be greeted with something akin to the following:
          |                 |           o             |
          |---  ,---. ,---. |---. ,---. . ,---. ,---. |     ,---. ,---.
          |     |---' |     |   | |   | | |     |   | |     |   | |
          `---' `---' `---' `   ' `   ' ` `---' `---' `---' `---' `
                     N E X T   G E N E R A T I O N   G A T E W A Y
     --------------------------------------------------------------------
    

NG GATEWAY SIGNATURE DRINK

My Apple devices started stating "incorrect password" for my network, even though they had conncted previously.
So how to fix Unifi network "incorrect password" error on iPhone, iPod, iPad and Macbook pro?
The reason for the error is the WiFi management done on iOS devices.
The default settings for the Unifi AP range are not compatible with iOS 11 and 12 and OSX High Sierra (and maybe more).
The reason for the error is the "DTIM Mode" (beacon timing) setting for power saving.
@iamstoick
iamstoick / import.md
Created June 14, 2017 05:03
How to import database in MySQL in Docker?

This is a simple way of importing MySQL database in Docker.

  1. In you Dockerfile you must have a shared folder. Shared folder is a directory in your host machine that is mounted to Docker instance.

  2. Put the exported sql file in the shared folder.

  3. Login to your Docker instance via docker exec -it DOCKER_CONTAINER_ID bin/bash.

  4. Login to MySQL via mysql -u USERNAME -p.