https://github.com/Stephen-Seo
One can use C's `cleanup` attribute like a defer. https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attribute... The function signature is `void(MyType*)` if it is used like:…
Or using .ssh/config since entries in there act like hostnames: # ~/.ssh/config Host github_ssh HostName github.com User git IdentityFile ~/.ssh/my_github_key > git remote add github github_ssh:Username/RepoName.git…
Reminds me of https://goshdarnfunctionpointers.com/ which has helped in some cases.
Isn't there `proc` on Linux systems? Get the pid of the process you want to inspect, and while its running, execute `ls -lh /proc/<pid>/fd/`. It will list the open file descriptors for that process.
One could use `printf 'first\0second'` in the Bash shell as an example of making a "string" with null embedded into it, but you can't store that in a Bash variable. $ TEST_VAR="$(printf 'first\0second')" bash: warning:…
Similarly, I have a somewhat simple demo made for my website that is C++/Emscripten/Raylib. It's open source (MIT License) and you can grok the code here https://git.seodisparate.com/stephenseo/jumpartifact.com_dem...…
https://choosealicense.com/ is a good resource that lists a bunch of licenses explained.
I made a C++ project[1] (using OpenCL and blue noise) to generate dithered images/video for a course project (the course taught how to program for the GPU). If anyone wants to just jump straight into generating dithered…
You can use a GPG key stored on a YubiKey with openssh, but with some caveats: 1. gpg-agent must act as your ssh-agent (which means ssh-agent should be disabled and replaced by gpg-agent). 2. If using `pinentry-curses`…
[1] discusses firejail running as root: > For a server, the process exposed to the outside world runs as an unprivileged user (unbound or nobody). The process is started by a separate process running as root (as…
As a lightweight alternative to Docker-based (or any container-based) solutions: Try firejail. You can set up a directory that will be the "home" of the sandboxed application you're running, then you can do something…
Someone else on HN earlier posted their QR-code scanning Android app[1], which I've been using because it doesn't automatically follow URLs but displays the raw text of the QR code. It's been helpful for me, especially…
Is it too old-fashioned of me to prefer IRC? Discord has its place, but I favor IRC.
I use the `rustup` package instead of the `rust` package to manage a local installation of rust. This graph seems to show installations of the `rust` package, but I don't think that accounts for `rustup`. `rustup` is…
Been using Linode since 2019. Service worked as expected (worked well), and I hope that won't change after this. If I had to move, I'd have to go through the pain of setting up my website(s) again, but at least I have…
As someone with a C/C++ background, this gist was a good reference for those times I needed to use Javascript: https://gist.github.com/yig/8744917
Oh I see, thanks for the reply. I did a quick search and came upon https://blog.cloudflare.com/encrypted-client-hello/ which does shed light on ECH. Though I am not sure if only Cloudflare-backed servers provide ECH, or…
Out of curiosity, I once used wireshark to examine packets from my own system which was configured to use DNS over HTTPS (using dnscrypt-proxy). I discovered that the hostname of the server is in plaintext in a header…
Redox-OS has a similar situation that kernel code should never panic https://gitlab.redox-os.org/redox-os/redox/blob/master/CONTR... . No possible panics should ever exist in kernel space, because then the whole OS…
In Korean, the vowels ㅣ (ee sound) and ㅐ (eh sound) are different in the written language. There are actually more difficult things such as ㅐ and ㅔ (both "eh" sound) which can get confusing when trying to spell Korean…
So in Korean, the word for "you" is 니가 (pronounced "nee-gah"). Example usage: 니가 언제 먹었어요? (When did you eat? "Nee-gah un-jeh mug-uss-uh-yo") I can't help but wonder if the use of this word would also elicit a similar…
It looks like they want websites to do the following: whenever your website goes under a drastic change, serve the previous version of the website under a subdomain, and redirect all 404s on the newer version to the…
Actually I have my desktop configured with an encrypted root. Turns out GRUB can actually decrypt the partition holding /boot before loading the grub.cfg. Though I have this set up on ArchLinux and had to refer to the…
"When stuck debugging, question all of your assumptions about the program." A shower thought. Helpful if the program does something other than what you thought it did, allowing you to figure that out quicker.
Last I checked, uMatrix by default enables everything for 1st party sites. So if you are at twitter.com, all stuff originating from twitter.com will be allowed. You should be able to remove this rule in uMatrix's…
One can use C's `cleanup` attribute like a defer. https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attribute... The function signature is `void(MyType*)` if it is used like:…
Or using .ssh/config since entries in there act like hostnames: # ~/.ssh/config Host github_ssh HostName github.com User git IdentityFile ~/.ssh/my_github_key > git remote add github github_ssh:Username/RepoName.git…
Reminds me of https://goshdarnfunctionpointers.com/ which has helped in some cases.
Isn't there `proc` on Linux systems? Get the pid of the process you want to inspect, and while its running, execute `ls -lh /proc/<pid>/fd/`. It will list the open file descriptors for that process.
One could use `printf 'first\0second'` in the Bash shell as an example of making a "string" with null embedded into it, but you can't store that in a Bash variable. $ TEST_VAR="$(printf 'first\0second')" bash: warning:…
Similarly, I have a somewhat simple demo made for my website that is C++/Emscripten/Raylib. It's open source (MIT License) and you can grok the code here https://git.seodisparate.com/stephenseo/jumpartifact.com_dem...…
https://choosealicense.com/ is a good resource that lists a bunch of licenses explained.
I made a C++ project[1] (using OpenCL and blue noise) to generate dithered images/video for a course project (the course taught how to program for the GPU). If anyone wants to just jump straight into generating dithered…
You can use a GPG key stored on a YubiKey with openssh, but with some caveats: 1. gpg-agent must act as your ssh-agent (which means ssh-agent should be disabled and replaced by gpg-agent). 2. If using `pinentry-curses`…
[1] discusses firejail running as root: > For a server, the process exposed to the outside world runs as an unprivileged user (unbound or nobody). The process is started by a separate process running as root (as…
As a lightweight alternative to Docker-based (or any container-based) solutions: Try firejail. You can set up a directory that will be the "home" of the sandboxed application you're running, then you can do something…
Someone else on HN earlier posted their QR-code scanning Android app[1], which I've been using because it doesn't automatically follow URLs but displays the raw text of the QR code. It's been helpful for me, especially…
Is it too old-fashioned of me to prefer IRC? Discord has its place, but I favor IRC.
I use the `rustup` package instead of the `rust` package to manage a local installation of rust. This graph seems to show installations of the `rust` package, but I don't think that accounts for `rustup`. `rustup` is…
Been using Linode since 2019. Service worked as expected (worked well), and I hope that won't change after this. If I had to move, I'd have to go through the pain of setting up my website(s) again, but at least I have…
As someone with a C/C++ background, this gist was a good reference for those times I needed to use Javascript: https://gist.github.com/yig/8744917
Oh I see, thanks for the reply. I did a quick search and came upon https://blog.cloudflare.com/encrypted-client-hello/ which does shed light on ECH. Though I am not sure if only Cloudflare-backed servers provide ECH, or…
Out of curiosity, I once used wireshark to examine packets from my own system which was configured to use DNS over HTTPS (using dnscrypt-proxy). I discovered that the hostname of the server is in plaintext in a header…
Redox-OS has a similar situation that kernel code should never panic https://gitlab.redox-os.org/redox-os/redox/blob/master/CONTR... . No possible panics should ever exist in kernel space, because then the whole OS…
In Korean, the vowels ㅣ (ee sound) and ㅐ (eh sound) are different in the written language. There are actually more difficult things such as ㅐ and ㅔ (both "eh" sound) which can get confusing when trying to spell Korean…
So in Korean, the word for "you" is 니가 (pronounced "nee-gah"). Example usage: 니가 언제 먹었어요? (When did you eat? "Nee-gah un-jeh mug-uss-uh-yo") I can't help but wonder if the use of this word would also elicit a similar…
It looks like they want websites to do the following: whenever your website goes under a drastic change, serve the previous version of the website under a subdomain, and redirect all 404s on the newer version to the…
Actually I have my desktop configured with an encrypted root. Turns out GRUB can actually decrypt the partition holding /boot before loading the grub.cfg. Though I have this set up on ArchLinux and had to refer to the…
"When stuck debugging, question all of your assumptions about the program." A shower thought. Helpful if the program does something other than what you thought it did, allowing you to figure that out quicker.
Last I checked, uMatrix by default enables everything for 1st party sites. So if you are at twitter.com, all stuff originating from twitter.com will be allowed. You should be able to remove this rule in uMatrix's…