www.davidc.net
Open in
urlscan Pro
2a05:e200:1:71::2:3
Public Scan
Submitted URL: http://www.davidc.net/
Effective URL: https://www.davidc.net/
Submission: On December 12 via api from US — Scanned from GB
Effective URL: https://www.davidc.net/
Submission: On December 12 via api from US — Scanned from GB
Form analysis
0 forms found in the DOMText Content
Skip to main content davidc.net MAIN MENU Show — Main menu Hide — Main menu * Home * Networking * Programming * DHTML * Games * Miscellany ALLOWING WORDPRESS UPDATES TO ACTUALLY WORK VIA SSH Submitted by davidc on Fri, 09/11/2020 - 19:25 * Read more about Allowing Wordpress updates to actually work via SSH * Log in or register to post comments In a world where FTP has finally been turned off by most ISPs, Wordpress allegedly supports SSH2 for upgrades instead, using FS_METHOD ssh2. However it fails to work in any real-world scenario because it assumes the filesystem paths on the remote host are the same as on the local filesystem. This obviously fails with pretty much any ISP on earth as the users are chroot()ed, so a directory that was once perhaps /home/david/www.davidc.net would in fact be just /www.davidc.net when accessed over SFTP. CHECK MAILDIR USAGE VERSUS QUOTA Submitted by davidc on Tue, 06/30/2020 - 19:59 * Read more about Check Maildir usage versus quota * Log in or register to post comments This script allows you to check virtual users' Maildir sizes compared with the quota, and produces a simple list of addresses that are overquota, which can be used for example by mail delivery agents to reject incoming messages when the user is overquota. GSM MODEM-KICKING SCRIPT FOR ROUTEROS Submitted by davidc on Fri, 09/14/2018 - 16:23 * Read more about GSM Modem-kicking Script for RouterOS * Log in or register to post comments I seem to be spending a lot of my time recently hacking around RouterOS bugs. Here's a script that monitors the state of the PPP interface for a GSM modem and does what it can to get it back up and running if necessary. The script checks three times (10 seconds apart) to see if the PPP interface is connected. If it still isn't, it resets the USB power to try and kick the communication back to life. It waits 30 seconds after doing this then, if it's still not up for two more checks, it reboots the whole Routerboard. FALLBACK PPPOE CREDENTIALS ON ROUTEROS Submitted by davidc on Tue, 06/26/2018 - 22:11 * Read more about Fallback PPPoE credentials on RouterOS * Log in or register to post comments RouterOS has no native concept of fallback PPPoE credentials. You can only enter one username and password per interface. Sometimes you would like to enter a fallback set that are tried if the primary credentials don't work, for example to prepare for a migration. Here is a RouterOS script to handle fallback PPPoE credentials that will be tried one after another until one set succeeds. CONVERTING ACROBAT CHECKBOXES TO RADIO BUTTONS Submitted by davidc on Sun, 06/19/2016 - 14:29 * Read more about Converting Acrobat checkboxes to radio buttons * Log in or register to post comments Acrobat's automatic form generation is atrocious. It inevitably gets almost everything wrong, meaning you have to recreate it by hand. It boggles the mind that it's had the ability to create forms for 20 years now, and still has no way of automatically creating the form from a Word document without a buggy and and half-hearted attempt at auto-detection. You'd think at the very least it would be able to turn Word form elements into PDF form elements, but no. RESTORING YANKED MESSAGES TO THE QMAIL QUEUE Submitted by davidc on Mon, 12/08/2014 - 20:22 * Read more about Restoring yanked messages to the Qmail queue * Log in or register to post comments qmail-remove provides a means to easily remove messages from the Qmail queue, but restoring messages is rather more complicated. Here is a quick shell script that will allow messages to be correctly restored, undoing the yank. CISCO ROUTERS WITH GERMAN VDSL2 Submitted by davidc on Thu, 12/05/2013 - 18:55 * Read more about Cisco routers with German VDSL2 * 1 comment * Log in or register to post comments Customers wishing to use their own router with VDSL2 (FTTC) services in Germany are hampered by the CPE not supporting PPPoE passthrough, as Telekom limits the line to 1 PPPoE session. The CPE therefore needs to be replaced entirely. This article describes how to extract the login information from an O2 Homebox and then configure a Cisco router as a replacement CPE. AUTOMATICALLY EXPORTING USB DRIVES OVER SAMBA Submitted by davidc on Thu, 08/23/2012 - 01:59 * Read more about Automatically exporting USB drives over Samba * 1 comment * Log in or register to post comments For my new NAS, I wanted newly-connected USB disks to be automatically mounted and then exported over Samba. Debian's usbmount program is used to handle the mounting, and a couple of scripts handle the Samba export. BOOTING FROM AN HTTP-ACCESSIBLE IMAGE IN HP ILO2 Submitted by davidc on Wed, 09/21/2011 - 04:09 * Read more about Booting from an HTTP-accessible image in HP iLO2 * Log in or register to post comments HP's integrated lights-out management is a godsend, and has saved the day on more than one occasion. But for installing new servers, it's a pain to have to present the media: (a) insert a physical CD into the enclosure drive (b) attach a USB CD drive (c) use the virtual media applet or remote console virtual media over a slow connection, or (d) find a local Windows machine and use the remote console RDP. SNAXE ON A BREADBOARD! Submitted by davidc on Wed, 09/21/2011 - 02:06 * Read more about Snaxe on a breadboard! * Log in or register to post comments Since I just got my lovely (and cheap) DOGS102 LCD module and an PS2-style thumb joystick, I thought it might be a good first exercise to get Snaxe running on my Teensy. PAGINATION * Current page 1 * Page 2 * Page 3 * Page 4 * Page 5 * Page 6 * Next page Next › * Last page Last » Subscribe to TOOLS Show — Tools Hide — Tools * Recent content * Contact * Log in ELSEWHERE Copyright © 2009, 2010, 2011, 2015, 2016, 2018, 2020, 2021 David C. A. Croft. Hosted by Sargasso Networks.