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
Purpose:
Retrieve greatest semantic version from any Github releases page.
curl (7.88.1)jq (1.6)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:
| #!/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 |
| title | LDAP Search Filter Cheatsheet |
|---|---|
| author | Jon LaBelle |
| date | January 4, 2021 |
| source | https://jonlabelle.com/snippets/view/markdown/ldap-search-filter-cheatsheet |
| notoc | true |
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:
| 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.* |
| #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' |
I need a backup solution for my Synology DS215j NAS. My requirements are:
Also, I have a LaCie Network Space 2 lying around, which is perfectly up to this task. Let's install and configure rsnapshot*!
| 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] |