Purpose:
Retrieve greatest semantic version from any Github releases page.
curl(7.88.1)jq(1.6)- ℹ️ Releases MUST follow Semantic Versioning 2.0.0
| #!/usr/bin/env bash | |
| # Create Stack in Portainer using API | |
| # | |
| # - compose.yml | |
| # - stack.env | |
| set -euo pipefail | |
| which curl || (echo "Missing 'curl'"; exit 1) |
Purpose:
Retrieve greatest semantic version from any Github releases page.
curl (7.88.1)jq (1.6)| #!/bin/env bash | |
| # Change directory provided as Windows path. | |
| # Sample: | |
| # $ cdw "c:\windows\system32" | |
| # $ pwd | |
| # /mnt/c/windows/system32 | |
| function cdwin() { | |
| if [[ -z $1 ]] ; then | |
| echo "No path provided"; return |
Many vendors of nowadays quite old image and document scanners offer no updated drivers for Windows 10 and newer. Usually only 32bit drivers are available up to WinXP, Vista and Win7. After all, since Windows 10, most of us are running 64bit systems converting those devices into bricks - unless you use Linux.
Solution: Use Linux - in our case WSL provided by Windows to resurrect those beloved scanners.
💡 Versions I used to run things:
| import org.sonatype.nexus.common.entity.* | |
| import org.sonatype.nexus.security.* | |
| import org.sonatype.nexus.security.authz.* | |
| import org.sonatype.nexus.selector.* | |
| import com.google.common.collect.ImmutableMap | |
| // use container.lookup to fetch internal APIs we need to use | |
| def selectorManager = container.lookup(SelectorManager.class.name) | |
| def securitySystem = container.lookup(SecuritySystem.class.name) |
| #!/usr/bin/python | |
| """ | |
| msysGit to Unix socket proxy | |
| ============================ | |
| This small script is intended to help use msysGit sockets with the new Windows Linux Subsystem (aka Bash for Windows). | |
| It was specifically designed to pass SSH keys from the KeeAgent module of KeePass secret management application to the | |
| ssh utility running in the WSL (it only works with Linux sockets). However, my guess is that it will have uses for other |