I wanted to use my cloud server to compile large projects for me.
For that, I needed to create a chroot environment to keep my main system clean and which will handle that process.
Here's how I did...
My chroot environment: /mnt/chroot
| <?php | |
| $uri = $_SERVER['REQUEST_URI']; | |
| # Serve static ressources. | |
| if (preg_match('/\.(?:png|jpg|jpeg|gif|css|js|svg)$/', $uri)) { | |
| return false; | |
| } | |
| function register($method, $route, $callback) { | |
| global $uri; |
Here's a performance comparison between PHP vs Python vs Ruby done by doing a Fibonacci sequence of 35 iterations in each language. I tried to adapt the codes in order to have the exact same behavior.
Tested versions are the following:
➜ php --version
PHP 8.0.3 (cli) (built: Mar 4 2021 20:39:15) ( NTS )
Copyright (c) The PHP GroupThe Cheap way.
Here, we'll rely on a "lang" parameter in the URL (E.g: "?lang=fr") to know which language to use.
The code will then look for HTML elements with a data-i18n attribute. This attribute contains
the key of the translation whose value will be set as the inner HTML of the element.
| /* ==UserStyle== | |
| @name gmail--mono | |
| @namespace github.com/openstyles/stylus | |
| @version 1.0.10 | |
| @description Implementation of https://x.com/guerriero_se/status/1792924958579900781. | |
| @author Sebastiano Guerriero, Cyriaque 'cisoun' Skrapits | |
| ==/UserStyle== */ | |
| /* | |
| * WARNING: Use Gmail's default theme with this! |
A-MoDe — Hong Kong
Straps, bags, etc...
I don't like the stiffness.
ARTISAN&ARTIST* — Japan
Straps, bags. Good reputation.
Cooph — Austria
Alef Guitars — Israel
Nice necks.
NOTE(2025): went mostly silent since the war, wouldn't order given the context.
Aluminati Guitars — United States
Don't know much about them, but have nice takes on guitars/basses, putting them here anyway.
Developing Nations — United States