Skip to content

Instantly share code, notes, and snippets.

View Wonno's full-sized avatar
🐈

Wonno Wonno

🐈
View GitHub Profile
@Wonno
Wonno / document-scanner-resuscitation.md
Last active June 1, 2024 14:13
Revive aging document scanners

Revive aging document scanners

Problem

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.

Preconditions

💡 Versions I used to run things:

@Wonno
Wonno / nexus-repo-manager-privilege-example.groovy
Created January 16, 2019 14:50 — forked from nblair/nexus-repo-manager-privilege-example.groovy
A groovy script to create Content Selectors, privileges, and roles programmatically via the Nexus Repository Manager 3 Scripting API.
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)
@Wonno
Wonno / msysgit2unix-socket.py
Created August 30, 2018 14:33 — forked from kevinvalk/msysgit2unix-socket.py
Updated to better survive crashes and other unexpected behavior.
#!/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
@Wonno
Wonno / gist:d9dd7a299f1f6b43bf0fc49d4f80d1fa
Created February 18, 2018 10:05 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>