Moved to JonasPammer/JonasPammer
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
| <# | |
| Based on https://superuser.com/questions/1615553/path-to-current-desktop-background-in-windows-10-slideshow | |
| enhanced with Copilot to work on multiple screens | |
| #> | |
| # Load Windows Forms for screen information. | |
| Add-Type -AssemblyName System.Windows.Forms | |
| # Function to extract the actual file path from the registry data. | |
| function Get-WallpaperPath { | |
| param ([byte[]]$Data) |
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
| #ANSIBLE_CONFIG_FILE=.ansible-lint.yml | |
| #ANSIBLE_DIRECTORY=/ansible | |
| #BASH_EXEC_IGNORE_LIBRARIES=false | |
| #CHECKOV_FILE_NAME=.checkov.yaml | |
| #CLANG_FORMAT_FILE_NAME=.clang-format | |
| #CREATE_LOG_FILE=false | |
| #CSS_FILE_NAME=.stylelintrc.json | |
| #DISABLE_ERRORS=false | |
| #DOCKERFILE_HADOLINT_FILE_NAME=.hadolint.yaml | |
| #EDITORCONFIG_FILE_NAME=.editorconfig |
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
| gist title |
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
| package nesevo.logging.filters; | |
| import ch.qos.logback.classic.Level; | |
| import ch.qos.logback.classic.spi.ILoggingEvent; | |
| import ch.qos.logback.core.filter.Filter; | |
| import ch.qos.logback.core.spi.FilterReply; | |
| public class TestFilterDebugMessages extends Filter<ILoggingEvent> { | |
| @Override | |
| public FilterReply decide(ILoggingEvent event) { |
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://renatogolia.com/2020/11/16/quickly-cloning-all-your-repositories-from-github/ | |
| ((gh api graphql -f query='query myRepos { viewer { repositories(first: 100, isFork: false, affiliations: OWNER, orderBy: {direction: ASC, field: NAME}) { nodes { name, sshUrl } } } }') | ConvertFrom-Json).data.viewer.repositories.nodes | ForEach-Object { gh repo clone $_.sshUrl $_.name } |
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
| Sub SaveEmailsAsMSG() | |
| Dim olApp As Object | |
| Dim olNs As Object | |
| Dim olFolder As Object | |
| Dim olMail As Object | |
| Dim olItem As Object | |
| Dim olName As String | |
| Dim olSubfolder As String | |
| Dim saveFolderPath As String |