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://askubuntu.com/a/821681/595802 |
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
| #!/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 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
| #!/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 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
| git config --global core.preloadindex true | |
| git config --global core.fscache true |
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
| 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 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
| 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()); |
git init --initial-branch=main
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
| # creates all directories for advent of code in the following format: | |
| # day01 | |
| # day01 | |
| # ... | |
| # day25 | |
| for ($i = 1; $i -le 25; $i++) | |
| { | |
| $daystr = "day" + $i.ToString("00") | |
| cargo new $daystr # cargo new is bootstrapping a rust project, example: cargo new day01 |
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
| for i in /etc/update-motd.d/*; do if [ "$i" != "/etc/update-motd.d/98-fsck-at-reboot" ]; then $i; fi; done |