Usage:
./generate_ssh_key.sh -c "John Doe <john.doe@example.com>"Usage:
./generate_ssh_key.sh -c "John Doe <john.doe@example.com>"| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import json | |
| try: | |
| from urllib.request import Request, urlopen # Python 3 | |
| except: | |
| from urllib2 import Request, urlopen # Python 2 |
| #!/usr/bin/env bash | |
| # Documentation for TeamCity messages: | |
| # https://confluence.jetbrains.com/display/TCDL/Build+Script+Interaction+with+TeamCity | |
| function __tc_encode { | |
| # Only unicode characters are not supported | |
| echo -n "$1" | sed "s/\([|']\)/\|\1/g; s/\[/\|\[/g; s/\]/\|\]/g; s/\r/\|r/g;" | sed ':a;N;$!ba;s/\n/|n/g' | |
| } |