Author: Sandy
Best ssh setup for windows
I’ve tried quite a few different setups for administering my various linux boxen from Windows, and this is currently my favourite: Mintty for WSL (aka WSLtty). Here’s how to set it up. Install Windows Subsystem for Linux (WSL): Open Powershell as an administrator Enter this command:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux When…
NPN, PNP, Sinking, Sourcing
I seem to always get in a bit of a muddle with the terminology and which sensor goes with which kind of input. This is the most comprehensive and accurate document I’ve found, so I’ll be using it as quick reference from now on. Downloaded from https://cdn.automationdirect.com/static/specs/sinksource.pdf
QGIS 3.0 Map tips
I’ve been playing with QGIS, and it’s an awesomely powerful piece of software for map making an analyzing geographical data. It has the ability to show HTML map tips when you hover over certain features, but with some restrictions. The containing box (which you can’t style, AFAIK) has white background…
Draftsight Units
I was a little confused by how units work in Draftsight, so now I think I’ve figured it out i thought I’d share. The Model They key thing to understand is that that the model, ie. the lines you’ve drawn, isn’t in mm or inches or feet, it’s just…
Copy Folders without Files
If you want to copy a complete folder structure, but not the files contained in it, use robocopy from the command line: robocopy “A:\Source folder” “B:\Destination folder” /e /xf * This is lifted straight from https://superuser.com/a/873585/178934, I’m just putting it here for my quick reference.
Wiring colors
A quick reference, this is far from authoritative or exhaustive but intended to be used a go-to unless you have better information: L1 (Hot 1) (Hot 2) L2 L3 N PE Europe Single Phase Brown – – – Blue Green / Yellow Three Phase Brown – Black Grey Blue (if…
Windows PowerShell – get a recursive list of directories
Like this: dir -Directory -Recurse | % { $_.FullName } > list.txt
SpiderOak Purge Historical versions
I don’t like the default for SpiderOak’s –purge-historical-versions command, which does this: This allows you to remove historical versions of files in your backup set according to the following schedule, which is to keep one version per hour for the last 24 hours, then one version per day for 30…
Gimp Plugin – fixed crop
This is a simple script to crop a plugin with fixed dimensions – I used it to crop out the window border from a VNC Client connected to an industrial touchscreen. (script-fu-register “script-fu-crop” ;func name “Screenshot Crop” ;menu label “Crops an image to a fixed size” ;description “Sandy Scott” ;author…