#TIL Deleted files can be restored in JetBrains products' Local History feature, such as PHPStorm.
Sander van Dragt's Notes
-
-
Notice: Function start_monday was called incorrectly.
-
Added Docker pruning to my system-update Linux administration script, to help free up disk space. #projects #systemupdate
-
Lamb 0.5.0
Originally written on lamb-releases:
New in this release:
Crossposting from feeds. Support for user themes. A new retro 2024 theme.
I've been able to move the project closer to my vision for a frictionless blog and rss aggregator. #projects #lamb
Via lamb-releases -
Taskfile EOL
I've archived Taskfile and am now using Just. It's got more community support and works better in my experience.
Taskfile will keep working going forward but I have no plans for new features. If you are a used, I'd like to thank you.
Update: I'm not completely happy with how the just commands are executed, many shell commands I can't get to work, so I'm considering moving back to Taskfile. Will keep you posted
-
I switched back to the vintage theme as the 2024 Lamb theme I'm working on has some display issues on mobile. #lamb
-
Setup TextPattern using PHP composer and DDEV
I was totally going to step-by-step this guide but then I lost my draft.
TextPattern (TXP) instructs you to extract a zip file into your webroot and on upgrade replace all the files. If you have used PHP Composer to install your PHP dependencies you know this can be done more smoothly.
Composer PHP dependencies
If you want to the quick way, I've created a
composer.json
to get you started: view gist.It adds the GitHub repository as a composer dependency, and installs it into the
site/
directory usingoomphinc/composer-installers-extender
. The repo's type is set as a project type, so there are a couple of lines needed to setup composer installer to match it.Run
composer update
, you will now have a site and vendor directory, in addition to the composer files:โโโ composer.json โโโ composer.lock โโโ site โโโ vendor
Missing JavaScript Depependencies
This typically should have been enough but in the TextPattern GitHub project the
package.json
file that contains the JavaScript dependencies is both ignored by git (so is missing from our checkout) but requires dependencies the install needs to run.Let's pull in the copy from the
main
branch and install the dependencies using npm:$ cd site $ wget https://raw.githubusercontent.com/textpattern/textpattern/main/package.json $ npm install --omit=dev $ cd ..
Local environment
For a local environment, I recommend DDEV. To set this up, simplify specify a project name and the docroot where the TXP install is installed to:
$ ddev config --docroot=site --project-name=mysite $ ddev start $ ddev launch
The #TextPattern Setup wizard should now open. Use
ddev describe
to inform you of the database values to enter in the setup wizard.edit: For some reason I'm getting a database unavailable message. I'll update this if I find a solution. edit2: Solved I think, either through a reboot or the npm instructions.
-
If you're looking for a script to get the top errors form a PHP error_log, then I published that: https://github.com/svandragt/top-php-errorlog #projects
-
There is no barrier when there is no UI friction. #lamb #projects
-
By the time you're logged into your CMS or web service you could have already posted something. #lamb #projects