6 Jan 2024 |
vigress7 | Had a link to some NFT crap in its bio, and the website had a self-signed certificate 💀 | 16:31:54 |
Elsie | Is that reason enough to ban..? | 16:31:55 |
Elsie | ah | 16:32:01 |
Elsie | ok | 16:32:02 |
vigress7 | You can get a Let's Encrypt cert for a literal terrorist website, so that's incredibly low-effort | 16:34:57 |
Elsie | uhhhhh ok I got some calls to make then brb | 16:35:12 |
vigress7 | Download 44mz9y.png | 16:39:25 |
Elsie | hey FBI | 16:41:17 |
| OG Loc joined the room. | 16:43:03 |
vigress7 | Elsie have you forgotten about my PR? | 17:35:09 |
Elsie | which one | 17:35:34 |
vigress7 | * Elsie have you forgotten about my prettier PR? | 17:35:36 |
Elsie | oh | 17:35:42 |
Elsie | Download image.png | 17:35:59 |
Elsie | 💀 | 17:35:59 |
Elsie | do you need to install node_modules | 17:36:04 |
Elsie | vigress7 | 17:36:38 |
vigress7 | https://gitlab.archlinux.org/archlinux/packaging/packages/prettier/-/blob/main/PKGBUILD?ref_type=heads#L34 | 17:39:07 |
vigress7 | Wait, the local actually breaks it | 17:49:42 |
vigress7 | Elsie aight help me out here, how do scopes work in Bash | 17:56:32 |
Elsie | so | 17:56:45 |
Elsie | export foo
local foo | 17:56:53 |
Elsie | * export foo
local foo
declare -n foo | 17:57:03 |
Elsie | those are the 3 possible variable scopes | 17:57:09 |
Elsie | and for functions you have: | 17:57:11 |
Elsie | function foo() {}
function foo() () | 17:57:18 |
Elsie | export can be used inside functions ({} ) to leak out vars, and when used outside a function will be able to leak into child processes | 17:57:59 |
Elsie | local can be used inside functions ({} and () ) to prevent a variable from inside from leaking outside | 17:58:22 |
Elsie | declare -n makes a local variable binded to an external variable | 17:58:38 |
Elsie | and for functions: | 17:58:52 |