This file contains 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
#!/bin/bash | |
usage() { | |
echo "Generates a self-signed certificate." | |
echo | |
echo "Usage: $0 [-h] [-d] [-c <county>] [-s <state>] [-l <city>] [-o] [-n <common_name>] [-f] [<path>]" | |
echo -e "options:" | |
echo -e "\tpath The output path where the key and crt files are generated." | |
echo -e "\t-c The certificate country. E.g. DE or US" | |
echo -e "\t-s The certificate state." |
This file contains 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
#!/bin/bash | |
# Run to install: curl -s https://gist.githubusercontent.com/renelink/2943682e2f6962e55c029b981e8e9ed1/raw/git_alias_collection_win.sh | bash | |
# !!!! RUN THIS SCRIPT IN CYGWIN OR WIN GIT BASH ONLY !!!! | |
# | |
# This script uses windows paths that will only work in cygwin or the windows git bash | |
# add git np alias if notepad++ exists | |
if [ -f "C:\Program Files\Notepad++\notepad++.exe" ]; then |
This file contains 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
import org.junit.jupiter.api.extension.ExtensionContext; | |
import org.junit.jupiter.api.extension.ParameterContext; | |
import org.junit.jupiter.api.extension.ParameterResolutionException; | |
import org.junit.jupiter.api.extension.ParameterResolver; | |
import org.springframework.beans.factory.NoSuchBeanDefinitionException; | |
import org.springframework.beans.factory.annotation.Qualifier; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.test.context.junit.jupiter.SpringExtension; | |
import java.lang.reflect.Parameter; |
This file contains 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
# powershell -executionpolicy bypass -File .\windows-defender-hyper-v-exclusions.ps1 | |
Add-MpPreference -ExclusionExtension ".vhd" | |
Add-MpPreference -ExclusionExtension ".vhdx" | |
Add-MpPreference -ExclusionExtension ".avhd" | |
Add-MpPreference -ExclusionExtension ".avhdx" | |
Add-MpPreference -ExclusionExtension ".vhds" | |
Add-MpPreference -ExclusionExtension ".vhdpmem" | |
Add-MpPreference -ExclusionExtension ".iso" | |
Add-MpPreference -ExclusionExtension ".rct" |
This file contains 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
# powershell -executionpolicy bypass -File .\java-developer-exclusions.ps1 | |
Add-MpPreference -ExclusionExtension ".java" | |
Add-MpPreference -ExclusionExtension ".class" | |
Add-MpPreference -ExclusionExtension ".jar" | |
Add-MpPreference -ExclusionExtension ".xml" | |
Add-MpPreference -ExclusionExtension ".properties" | |
Add-MpPreference -ExclusionExtension ".md" | |
Add-MpPreference -ExclusionProcess "java.exe" | |
Add-MpPreference -ExclusionProcess "javaw.exe" |
This file contains 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
#!/usr/bin/env bash | |
# runs a bash script test under MSYS2 (e.g. git bash) environment in an isolated directory. | |
# | |
# A test is named *.test.sh and passed as argument to this script. | |
# Since the test will run in an isolated directory (chroot), you | |
# might have to setup additional files that your test needs. E.g. | |
# another script that should be tested. Do do that place a script named | |
# *.before.sh beside your test script. The before script will be called | |
# with the root of the isolated test directory as it's first argument. |
This file contains 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
# | |
# You can import this script in your current bash using the following command | |
# source <(curl -s https://gist.githubusercontent.com/renelink/34066cb9204e5a072e7f4d284011f887/raw/bash-utils.sh) | |
# | |
# You can also put these lines in your .bashrc or .bash_profile to automatically install the utils if they do not exist | |
# | |
# ----------------------------- | |
# BASH_UTILS_FILE="${HOME}/.bash-utils.sh" | |
# | |
# if ! [ -f "${BASH_UTILS_FILE}" ]; then |
This file contains 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
#!/usr/bin/env bash | |
# | |
# You can import this script in your current bash using the following command | |
# source <(curl -s https://gist.githubusercontent.com/renelink/6a12336b5282c94a69a598deddf295ab/raw/bash-gradle-utils.sh) | |
# | |
# You can also put these lines in your .bashrc or .bash_profile to automatically install the utils if they do not exist | |
# | |
# ----------------------------- | |
# BASH_GRADLE_UTILS_FILE="${HOME}/.bash-gradle-utils.sh" | |
# |