Last active
May 8, 2021 10:14
-
-
Save seisvelas/a3e79876404fd6198346ff7ee288545b to your computer and use it in GitHub Desktop.
ugly Python one-liner
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
python3 -c 'with open("secure_sigalgs") as f: print("jdk.tls.server.SignatureSchemes=" + ",".join([i.rstrip() for i in f.readlines()]))' |
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
echo $(tr '\n' ',' < secure_sigalgs | sed 's/.$//') |
There we go. Beautiful bash version added :D. Now I can rest in power for eternity.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote this as a throwaway one liner to format some text, but I was annoyed at just how ineloquent it is. So later, when I have extra time, I'm going to reformat it to be succinct. It's so simple and I just couldn't let this stand lol.