Skip to content

Instantly share code, notes, and snippets.

@seisvelas
Last active May 8, 2021 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seisvelas/a3e79876404fd6198346ff7ee288545b to your computer and use it in GitHub Desktop.
Save seisvelas/a3e79876404fd6198346ff7ee288545b to your computer and use it in GitHub Desktop.
ugly Python one-liner
python3 -c 'with open("secure_sigalgs") as f: print("jdk.tls.server.SignatureSchemes=" + ",".join([i.rstrip() for i in f.readlines()]))'
echo $(tr '\n' ',' < secure_sigalgs | sed 's/.$//')
@seisvelas
Copy link
Author

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.

@seisvelas
Copy link
Author

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