Skip to content

Instantly share code, notes, and snippets.

View Wonno's full-sized avatar
🐈

Wᴏɴɴᴏ Wonno

🐈
View GitHub Profile
@Wonno
Wonno / github-latest-semver-release.md
Created September 11, 2025 18:06
Retrieve greatest Semantic Release version from Github releases page

Github Semver Release Query

Purpose:
Retrieve greatest semantic version from any Github releases page.

Preconditions

@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:

@wmertens
wmertens / ssh-crypt.bash
Last active March 29, 2026 11:42
ssh-crypt: bash function to encrypt using ssh-agent and openssl - see also comments below for other versions
#!/usr/bin/env bash
#
# ssh-crypt
#
# Bash function to encrypt/decrypt with your ssh-agent private key.
# Requires the commands gzip, ssh-add, ssh-keygen and openssl.
#
# Uses bash-specific extensions like <<<$var to securely pass data.
#
# Wout.Mertens@gmail.com 2021-11-11 - MIT Licensed
@jonlabelle
jonlabelle / ldap_search_filter_cheatsheet.md
Last active November 11, 2026 10:01
LDAP Search Filter Cheatsheet
@wllmsash
wllmsash / assigning-static-ip-addresses-in-wsl2.md
Last active November 21, 2026 11:15
Assigning Static IP Addresses in WSL2

Assigning Static IP Addresses in WSL2

WSL2 uses Hyper-V for networking. The WSL2 network settings are ephemeral and configured on demand when any WSL2 instance is first started in a Windows session. The configuration is reset on each Windows restart and the IP addresses change each time. The Windows host creates a hidden switch named "WSL" and a network adapter named "WSL" (appears as "vEthernet (WSL)" in the "Network Connections" panel). The Ubuntu instance creates a corresponding network interface named "eth0".

Assigning static IP addresses to the network interfaces on the Windows host or the WSL2 Ubuntu instance enables support for the following scenarios:

@dcode
dcode / 0-SSH-Proxy-Setup.adoc
Last active December 29, 2022 17:14
SSH Proxy Setup Instructions

SSH Proxy Setup

import jenkins.model.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import org.jenkinsci.plugins.plaincredentials.*
import org.jenkinsci.plugins.plaincredentials.impl.*
import hudson.util.Secret
import hudson.plugins.sshslaves.*
@tuxfight3r
tuxfight3r / jenkins-decrypt.groovy
Created September 23, 2015 11:36
Decrypting Jenkins Password
#To Decrypt Jenkins Password from credentials.xml
#<username>jenkins</username>
#<passphrase>your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J</passphrase>
#go to the jenkins url
http://jenkins-host/script
#In the console paste the script
hashed_pw='your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J'
@frankkusters
frankkusters / backup-synology-through-rsnapshot.md
Last active September 28, 2026 18:39
Installing and configuring SSH, rsync and rsnapshot to let a LaCie Network Space 2 make backups of a Synology DS215j

Introduction

I need a backup solution for my Synology DS215j NAS. My requirements are:

  • a backup solution that pulls data from the Synology DS, so that it is not possible for malware on the DS to corrupt the backups.
  • a restore solution that is really easy to use for everyone else in my house.
  • highly frequent backups. With modern storage technologies, it's unnecessary to lose more than an hour's worth of work.

Also, I have a LaCie Network Space 2 lying around, which is perfectly up to this task. Let's install and configure rsnapshot*!

@djangofan
djangofan / private_key.java
Created December 20, 2012 16:10
Get private key from a Java keystore file using Groovy
import java.security.Key
import java.security.KeyStore
if (args.length < 3)
throw new IllegalArgumentException('Expected args: <Keystore file> <Keystore format> <Keystore password> <alias> <key password>')
def keystoreName = args[0]
def keystoreFormat = args[1]
def keystorePassword = args[2]
def alias = args[3]