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 java.security.*; | |
public class CVETester { | |
public static void main(String... args) throws Exception { | |
var keys = KeyPairGenerator.getInstance("EC").generateKeyPair(); | |
var blankSignature = new byte[64]; | |
var sig = Signature.getInstance("SHA256WithECDSAInP1363Format"); | |
sig.initVerify(keys.getPublic()); | |
sig.update("Some random text to be encrypted".getBytes()); |
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
param($java_version) | |
$java_install_dir = switch($java_version) | |
{ | |
8 {"C:\Program Files\Zulu\zulu-8"} | |
15 {"C:\Program Files\Zulu\zulu-15"} | |
default {"unknown"} | |
} | |
if ($java_install_dir -ne "unknown") { | |
$old_path=(Get-ChildItem env:Path).value |
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
git config --global core.preloadindex true | |
git config --global core.fscache true |
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 -S java --source 11 | |
import java.util.stream.Stream; | |
import java.util.function.Predicate; | |
public class Test { | |
public static void main(String[] args) { | |
Predicate<Integer> bla = (a) -> a > 10 ; |
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 | |
find . -type f | grep "\.go" > files.txt | |
file='./files.txt' | |
lines=`cat $file` | |
for line in $lines; do | |
echo "Bestand: $line" | |
cat $line |
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://askubuntu.com/a/821681/595802 |
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
for branch in `git branch | grep -v HEAD`;do echo -e `git show --format="%ci %cr %H" $branch | head -n 1` \\t$branch; done | sort -r | |
for branch in $(git for-each-ref --format='%(refname:short)' refs/heads);do echo -e `git show --format="%ci %cr %H" $branch | head -n 1` \\t$branch; done | sort -r |
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
docker rm $(docker ps -a -f exited=0 --format "{{.ID}}") |
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
ifconfig | |
# is similar to | |
ip addr show | |
ifconfig eth0 | |
# is similar to | |
ip addr show eth0 | |
ifup | |
# is similar to |