These scripts are written to simulate the matrix characterfall on your terminal.
This is a version with a pure ascii charset of the matrix effect.
| <?php | |
| // avoid client cache | |
| header("Cache-Control: no-cache, must-revalidate"); | |
| // Upload to private url or implement authorization... | |
| if (isset($_GET["json"])) { | |
| header("Content-type: application/json"); | |
| exit(json_encode( fpm_get_status() )); | |
| } | |
| ?> | |
| <!DOCTYPE html> |
| # this maps button 8 to middle click and enable scroll whit trackball pressing button 9 | |
| # put this on /usr/share/X11/xorg.conf.d/39-libinput.conf | |
| # refs: | |
| # https://help.ubuntu.com/community/Logitech_Marblemouse_USB | |
| # https://jcastellssala.com/2016/10/29/logitech-trackman-in-linux/ | |
| Section "InputClass" | |
| Identifier "Marble Mouse" | |
| MatchProduct "Logitech USB Trackball" | |
| Driver "libinput" |
| #!/usr/bin/env bash | |
| docker run -d \ | |
| -v ~/vms/10.3.27:/var/lib/mysql \ | |
| -e MYSQL_ROOT_PASSWORD=secret \ | |
| -p 10327:3306 \ | |
| mariadb:10.3.27 | |
| docker run -d \ |
| #!/usr/bin/env bash | |
| function isRoot() { | |
| if [ "$EUID" -ne 0 ]; then | |
| return 1 | |
| fi | |
| } | |
| if ! isRoot; then | |
| echo "Sorry, you need to run this as root" |
| [alias] | |
| lg = log --oneline --decorate --all --graph | |
| s = status -s -b |
| CREATE TABLE del0al999999 AS | |
| WITH d AS ( | |
| SELECT 0 d UNION SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5 UNION SELECT 6 UNION SELECT 7 UNION SELECT 8 UNION SELECT 9 | |
| ), del0al999999 AS ( | |
| SELECT | |
| d0.d+(d1.d*10)+(d2.d*100)+(d3.d*1000)+(d4.d*10000)+(d5.d*100000) d | |
| FROM d d0 | |
| CROSS JOIN d d1 | |
| CROSS JOIN d d2 | |
| CROSS JOIN d d3 |
| <?php | |
| // not original work | |
| // source: https://www.php.net/manual/en/function.strtr.php#90925 | |
| function normalize ($string) { | |
| $table = array( | |
| 'Š'=>'S', 'š'=>'s', 'Đ'=>'Dj', 'đ'=>'dj', 'Ž'=>'Z', 'ž'=>'z', 'Č'=>'C', 'č'=>'c', 'Ć'=>'C', 'ć'=>'c', | |
| 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', | |
| 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', |
| Rails.application.configure do | |
| # Settings specified here will take precedence over those in config/application.rb. | |
| # In the development environment your application's code is reloaded on | |
| # every request. This slows down response time but is perfect for development | |
| # since you don't have to restart the web server when you make code changes. | |
| config.cache_classes = false | |
| # Do not eager load code on boot. | |
| config.eager_load = false |