Sand Fox (old posts, page 3)
-
Free Domain Names
Just created a list of free domain name zones that still work if you need one for whatever reason.
You can find it here: freedomainzones.netlify.app.
-
Install Composer in Docker
Here is a small snippet adapted from the official instruction:
RUN php -r "copy('https://composer.github.io/installer.sig', '/tmp/composer.sig');" && \ php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');" && \ php -r '$expected = file_get_contents("/tmp/composer.sig"); $actual = hash_file("sha384", "/tmp/composer-setup.php"); exit(intval(!hash_equals($expected, $actual)));' && \ php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer && \ chmod +x /usr/local/bin/composer && \ rm /tmp/composer-setup.php /tmp/composer.sig
It doesn't require a script file, doesn't deal with environment variables, and doesn't depend on the shell.
-
I Don't Like JavaScript
When you created a cool tool in a language you don't like.
-
Small Personal Update
-
GitHub Signatures in Gitea
A small lifehack for the Gitea owners. As you may know, GitHub signs commits done with its web interface with its GPG key. These commits may end up on your Gitea server. It looks rather unconvincing:
-
Dark Theme for the Blog
Just finalized the dark theme for the blog. The idea is simple, use
prefers-color-scheme
media query and wrap dark style elements with it: -
On Common Misuse of the File Formats
A small rant about text file format holy wars. I believe that most of the file formats that participate in these holy wars are rather good and the most of the frustration comes from their misuse.
-
Fix AsciiDoc Display in Gitea
After installing my own Gitea I looked for the support for the markups I use. Gitea has support for external markup renderers and the official doc lists configs for both reStructuredText and AsciiDoc:
-
PHP 7.4: Splat Inconsistency
PHP 7.4 has this great new feature: splat operator now works in array expressions.
-
Encryptor
Created a simple cli file encryptor using libsodium
The app can create a password-protected file encoded with XSalsa20 and Argon2id
See my dev portal: https://sandfox.dev/php/encryptor.html