This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sysadminery:matrix [2024/04/02 14:53] – adam | sysadminery:matrix [2026/03/29 07:05] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | hold this real quick: https:// | ||
| + | |||
| ====== register new user ====== | ====== register new user ====== | ||
| Line 10: | Line 12: | ||
| you're on port 8448, which is unusual. | you're on port 8448, which is unusual. | ||
| + | |||
| + | faq: how do I get an apostrophe? you can just glue strings, be they double-apostrophe or double-quote, | ||
| + | < | ||
| + | #password is asdf' | ||
| + | pw=' | ||
| + | </ | ||
| + | we're going to do the same to glue the password in. | ||
| + | |||
| + | username doesn' | ||
| < | < | ||
| pw=' | pw=' | ||
| echo $pw | echo $pw | ||
| - | curl -XPOST -d ' | + | curl -XPOST -d ' |
| </ | </ | ||
| that' | that' | ||
| + | |||
| + | now for extra fun: get yourself '' | ||
| + | |||
| + | < | ||
| + | pw=' | ||
| + | username=' | ||
| + | echo $pw | ||
| + | token=$(curl -XPOST -d ' | ||
| + | echo $token | ||
| + | </ | ||
| + | |||
| < | < | ||
| curl -XPOST \ | curl -XPOST \ | ||
| Line 22: | Line 44: | ||
| " | " | ||
| </ | </ | ||
| + | |||