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
# https://www.netzwelt.de/anleitung/198230-windows-11-home-pro-hyper-v-installieren-aktivierenso-gehts.html | |
pushd "%~dp0" | |
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt | |
for /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
del hv.txt | |
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL | |
pause |
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
# using p12 store | |
curl --cert-type p12 --cert client-cert.p12:<password> --cacert cacert-containing-intermediate-and-root.txt https://hostname:1234/secure | |
# using openssl files | |
curl --cert certificate.cer --key private.key --cacert cacert-containing-intermediate-and-root.txt https://hostname:1234/secure |
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 | |
# place server key in server.key | |
# place server certificate in server.crt | |
# place intermediate certificate in intermediate.crt | |
cat server.crt intermediate.crt > certificate.chain.crt | |
openssl pkcs12 -export -inkey server.key -in certificate.chain.crt -name my-server -out server.p12 |
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 | |
# to add a trusted certificate to the trust store | |
# place the trusted certificate in trusted-certificate.crt | |
cat intermediate.crt > trusted-certificate.crt | |
# import the certificate into the existing or create a new pkcs12 container | |
keytool -import -alias intermediate -file trusted-certificate.crt -keystore trust-store.p12 -storetype PKCS12 -storepass password |
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
# checks whether local branches are merged into target branch | |
# | |
# usage: | |
# merged_branches <remote/target-branch-name> | |
# | |
# examples: | |
# merged_branches # default is master | |
# merged_branches origin/master | |
# merged_branches origin/release/9.0 | |
# |
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/expect -f | |
# https://unix.stackexchange.com/a/90869/91094 | |
spawn ssh-add /home/user/.ssh/id_rsa | |
expect "Enter passphrase for /home/user/.ssh/id_rsa:" | |
send "passphrase\n"; | |
expect "Identity added: /home/user/.ssh/id_rsa (/home/user/.ssh/id_rsa)" | |
interact |
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
<profile> | |
<id>jdeps</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jdeps-plugin</artifactId> | |
<version>3.1.1</version> | |
<executions> | |
<execution> |
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
# taken from https://stackoverflow.com/a/47229180/520631 | |
docker run -it --rm --privileged --name dockerindocker -v //var/run/docker.sock:/var/run/docker.sock docker |
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
fsutil file createnew c:\users\steve\desktop\10gb.img 107374182 |
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 | |
tail -F `ls -tr | grep logFilePrefix | tail -n 1` |
NewerOlder