Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
seodisparate
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
seodisparate
2y ago
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: __attribute__((cleanup(MyT
2.
▲
by
seodisparate
2y ago
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 a
3.
▲
by
seodisparate
2y ago
Reminds me of https://goshdarnfunctionpointers.com/ which has helped in some cases.
4.
▲
by
seodisparate
3y ago
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.
5.
▲
by
seodisparate
3y ago
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\0secon
6.
▲
by
seodisparate
3y ago
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/jumpartifa
7.
▲
by
seodisparate
3y ago
https://choosealicense.com/ is a good resource that lists a bunch of licenses explained.
8.
▲
by
seodisparate
3y ago
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 images, you can
9.
▲
by
seodisparate
4y ago
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` (YubiKey usually perm
10.
▲
by
seodisparate
4y ago
[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 explained by @Ferroin ab
11.
▲
by
seodisparate
4y ago
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 like `fi
12.
▲
by
seodisparate
5y ago
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 when I
13.
▲
by
seodisparate
5y ago
Is it too old-fashioned of me to prefer IRC? Discord has its place, but I favor IRC.
14.
▲
by
seodisparate
5y ago
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 recommended on Rus
15.
▲
by
seodisparate
5y ago
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 backups, so
16.
▲
by
seodisparate
5y ago
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
17.
▲
by
seodisparate
5y ago
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, o
18.
▲
by
seodisparate
5y ago
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 of a packet separate o
19.
▲
by
seodisparate
5y ago
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
20.
▲
by
seodisparate
6y ago
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 words. In pr
21.
▲
by
seodisparate
6y ago
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 elici
22.
▲
by
seodisparate
6y ago
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 subdomain. More drastic
23.
▲
by
seodisparate
8y ago
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 Arch wiki a lot t
24.
▲
by
seodisparate
9y ago
"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.
25.
▲
by
seodisparate
9y ago
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 settings in the "