winget install HandyWinget
winget install OpenJS.NodeJS.LTS
winget install Mirantis.Lens
winget install Github.cli
winget install Audacity.Audacity
winget install Microsoft.PowerShell
winget install Microsoft.PowerToys
winget install Win32diskimager.win32diskimager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# part | |
# https://github.com/junegunn/fzf | |
eval "$(fzf --zsh)" | |
# config for eza | |
alias ls=eza | |
# enable jumping with z | |
. /home/matth/projects/tools/bash/z.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oss.maxcdn.com | |
hiriwebsitestatic.s3.amazonaws.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# theming configuration | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Set-Theme Paradox | |
# thanks to https://dev.to/ofhouse/add-a-bash-like-autocomplete-to-your-powershell-4257 | |
# improved tabbing for autocompletion | |
# Shows navigable menu of all options when hitting Tab | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the hash describes the commit you want to go back | |
git reset --soft <hash> | |
git commit -m "<message>" | |
git push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy | |
// this line of code you can enter in your script console jenkinsserver.io/script | |
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "") | |
// or perisistent with this start param | |
-Dhudson.model.DirectoryBrowserSupport.CSP="default-src 'self'; script-src '*'; connect-src '*'; img-src '*'; style-src '*';" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this script can be used to change a specific XML property of the Jenkins config.xml of a job | |
// to use the script, edit the variables and run it in the Jenkins Script Console | |
import hudson.model.* | |
import jenkins.model.Jenkins | |
import java.io.File; | |
import groovy.xml.XmlUtil | |
import static javax.xml.xpath.XPathConstants.* | |
import groovy.xml.DOMBuilder | |
import groovy.xml.dom.DOMCategory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// please set the variable value | |
def partOfJobNameToSearch = "" // set a part of the job name to generate the list of jobs | |
// script - here you have nothing to edit | |
def totCounter = 0 | |
def okCounter = 0 | |
def badCounter = 0 | |
for (item in Jenkins.instance.items) { | |
totCounter++ | |
if (item.name.toLowerCase().contains(partOfJobNameToSearch.toLowerCase())) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inspired by https://github.com/jenkinsci/jenkins-scripts/blob/master/scriptler/reloadJobConfig.groovy | |
// by Matthias Baldi @2016 | |
import java.io.File; | |
import java.io.InputStream; | |
import java.io.FileInputStream | |
import javax.xml.transform.stream.StreamSource | |
// load job and configuration | |
def job = Jenkins.instance.getItemByFullName("PA-ISA-APIs-admin") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this script can be used to change the JDK for multiple Jenkins Jobs | |
// to use the script, edit the variables and run it in the Jenkins Script Console | |
// please set the variable value | |
def jobNameWithCorrectJdk = "" // set a JobName with the correct JDK | |
def jdkToChange = "JDK[JDK 1.8]" // set the JDK you want to change | |
def partOfJobNameToSearch = "" // set a part of the job name to generate the list of jobs | |
// script - here you have nothing to edit | |
def newJdk = Jenkins.instance.getItemByFullName(jobNameWithCorrectJdk).JDK |