Move zet notes to blog posts
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
11ddf3d114
commit
2c517f1d39
34 changed files with 67 additions and 14 deletions
|
@ -8,8 +8,6 @@ sculpin_content_types:
|
|||
permalink: /blog/:basename/
|
||||
presentations:
|
||||
permalink: /presentations/:basename/
|
||||
zets:
|
||||
permalink: /zet/:basename-:title/
|
||||
|
||||
services:
|
||||
App\Experience\TwigExtension\ExperienceTwigExtension:
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{% extends "page" %}
|
|
@ -7,6 +7,8 @@ tags:
|
|||
- ARIA
|
||||
- Software Development
|
||||
- Web Development
|
||||
note: true
|
||||
permalink: /notes/1-ellipsis-in-pager-template-fails-accessibility-tests
|
||||
---
|
||||
|
||||
```html
|
|
@ -2,6 +2,8 @@
|
|||
title: git-instafix
|
||||
date: 2024-08-22 12:28:26
|
||||
tags: [Software Developmemt, Git]
|
||||
note: true
|
||||
permalink: /notes/10-git-instafix
|
||||
---
|
||||
|
||||
[git instafix](https://github.com/quodlibetor/git-instafix) is a tool that allows you to easily amend (or fix) previous Git commits.
|
|
@ -2,6 +2,8 @@
|
|||
title: Software Development Graduate website
|
||||
date: 2024-08-22 14:09:53
|
||||
tags: [Sculpin, PHP, Transport for Wales]
|
||||
note: true
|
||||
permalink: /notes/11-software-development-graduate-website
|
||||
---
|
||||
|
||||
Shelley, the TfW Software Development Graduate, recently published [her own website](https://shell-web-dev.netlify.app) as her personal project to showcase the work she's been doing.
|
|
@ -2,6 +2,8 @@
|
|||
title: The Gin admin theme
|
||||
date: 2024-08-22 14:22:56
|
||||
tags: [Drupal]
|
||||
note: true
|
||||
permalink: /notes/12-the-gin-admin-theme
|
||||
---
|
||||
|
||||
Gin is a contrib admin theme for Drupal, and it has a dark mode.
|
|
@ -2,6 +2,8 @@
|
|||
title: "Abbreviations are better than aliases"
|
||||
date: 2024-08-25 01:02:35
|
||||
tags: [Shell, zsh, Linux]
|
||||
note: true
|
||||
permalink: /notes/14-abbreviations-are-better-than-aliases
|
||||
---
|
||||
|
||||
Aliases are a way to shorten long or complicated commands or to easily add additional arguments when running commands.
|
|
@ -2,6 +2,8 @@
|
|||
title: "Data attributes and feature flags"
|
||||
date: 2024-08-26 21:34:15
|
||||
tags: [Web Development, Software Development, Feature Flags, Drupal, CSS, PHP]
|
||||
note: true
|
||||
permalink: /notes/15-data-attributes-and-feature-flags
|
||||
---
|
||||
|
||||
I recently used the [Feature Toggle module](https://www.drupal.org/project/feature_toggle) to set a data attribute which enabled some new styling for buttons.
|
|
@ -5,6 +5,8 @@ tags: [Linux, Command-Line, curl]
|
|||
links:
|
||||
- https://stackoverflow.com/questions/7172784/how-do-i-post-json-data-with-curl
|
||||
- https://linuxize.com/post/curl-post-request
|
||||
note: true
|
||||
permalink: /notes/16-sending-post-requests-with-curl
|
||||
---
|
||||
|
||||
```shell
|
|
@ -4,6 +4,8 @@ date: 2024-08-27 20:21:17
|
|||
tags: [Vim, Neovim, JSON, jq]
|
||||
links:
|
||||
- https://vi.stackexchange.com/a/19950
|
||||
note: true
|
||||
permalink: /notes/17-format-json-file-in-vim
|
||||
---
|
||||
|
||||
Use `:%!jq` to format/beautify a JSON file within vim using `jq`.
|
|
@ -2,6 +2,8 @@
|
|||
title: Using data attributes with Tailwind CSS
|
||||
date: 2024-08-27 23:39:23
|
||||
tags: [HTML, CSS, Tailwind CSS]
|
||||
note: true
|
||||
permalink: /notes/18-using-data-attributes-with-tailwind-css
|
||||
---
|
||||
|
||||
Adam Wathan mentioned this in his "Tailwind CSS: It looks awful, and it works" at Rails World 2023.
|
|
@ -2,8 +2,11 @@
|
|||
title: Merging activities in Strava
|
||||
date: 2024-08-30 12:52:35
|
||||
tags: [Running]
|
||||
note: true
|
||||
permalink: /notes/19-merging-activities-in-strava
|
||||
---
|
||||
|
||||
Activities with multiple entries can be exported from the Strave website as .gpx files and combined using websites like <https://gotoes.org/strava>.
|
||||
Activities with multiple entries can be exported from the Strave website as .gpx
|
||||
files and combined using websites like <https://gotoes.org/strava>.
|
||||
|
||||
Then, the combined file can be re-uploaded to Strava as a single activity.
|
|
@ -2,6 +2,8 @@
|
|||
title: sshs
|
||||
date: 2024-08-21 18:17:29
|
||||
tags: [Linux, SSH]
|
||||
note: true
|
||||
permalink: /notes/2-sshs
|
||||
---
|
||||
|
||||
A terminal user interface for SSH, based on your `~/.ssh/config` file.
|
|
@ -2,6 +2,8 @@
|
|||
title: Sorting parameter arguments and array keys in Vim
|
||||
date: 2024-09-03 19:03:27
|
||||
tags: [PHP, Vim, Software Development]
|
||||
note: true
|
||||
permalink: /notes/20-sorting-parameter-arguments-and-array-keys-in-vim
|
||||
---
|
||||
|
||||
Given this PHP code (for example):
|
|
@ -2,6 +2,8 @@
|
|||
title: Extracting a custom module with a Git subtree
|
||||
date: 2024-09-04 20:12:00
|
||||
tags: [Git]
|
||||
note: true
|
||||
permalink: /notes/21-extracting-a-custom-module-with-a-git-subtree
|
||||
---
|
||||
|
||||
To extract a directory from a repository and keep the history, you can use the `git subtree split` command to create a new branch:
|
|
@ -4,6 +4,8 @@ date: 2024-09-10 08:51:49
|
|||
tags: [MariaDB, MySQL, Databases]
|
||||
links:
|
||||
- https://github.com/MariaDB/mariadb-docker/issues/467
|
||||
note: true
|
||||
permalink: /notes/22-setting-maxallowedpacket-in-mariadb
|
||||
---
|
||||
|
||||
If you need to set `max_allowed_packet` for MariaDB, you can specify it in Docker Compose as a `command`.
|
|
@ -4,6 +4,8 @@ date: 2024-09-10 22:35:41
|
|||
tags: [Linux, Nix, NixOS]
|
||||
links:
|
||||
- https://discourse.nixos.org/t/error-unsupported-tarball-input-attribute-lastmodified/49435/4
|
||||
note: true
|
||||
permalink: /notes/23-error-unsupported-tarball-input-attribute-lastmodified
|
||||
---
|
||||
|
||||
Yesterday, my laptop died and I needed to resurrect a spare laptop to work on.
|
|
@ -4,10 +4,13 @@ date: 2024-09-14 13:39:01
|
|||
tags: [Linux, curl]
|
||||
related:
|
||||
- Sending POST requests with curl
|
||||
use: [zets]
|
||||
note: true
|
||||
permalink: /notes/24-posting-data-from-a-json-file
|
||||
---
|
||||
|
||||
When sending JSON data in a POST request, instead of writing it inline with the `--data` or `--json` option, a filename can be entered - prefixed with an `@` symbol.
|
||||
When sending JSON data in a POST request, instead of writing it inline with the
|
||||
`--data` or `--json` option, a filename can be entered - prefixed with an `@`
|
||||
symbol.
|
||||
|
||||
For example, to POST the data from a data.json file:
|
||||
|
|
@ -7,6 +7,8 @@ links:
|
|||
- https://www.drupal.org/docs/develop/using-composer/using-drupals-lenient-composer-endpoint
|
||||
- https://github.com/mglaman/composer-drupal-lenient
|
||||
- https://github.com/cweagans/composer-patches
|
||||
note: true
|
||||
permalink: /notes/25-drupals-lenient-composer-endpoint
|
||||
---
|
||||
|
||||
Today, I tried to add the Content Access module to a Drupal 11 project, but there's no Drupal 11-compatible version.
|
|
@ -2,6 +2,8 @@
|
|||
title: Should I learn React?
|
||||
date: 2024-09-25 19:33:28
|
||||
tags: [React, JavaScript, Web Development]
|
||||
note: true
|
||||
permalink: /notes/26-should-i-learn-react
|
||||
---
|
||||
|
||||
I've usually used Vue.js or, more recently, Stimulus when I write JavaScript.
|
|
@ -7,6 +7,8 @@ links:
|
|||
- https://github.com/frctl/fractal/issues/1167
|
||||
- https://storybook.js.org
|
||||
- https://www.drupal.org/project/storybook
|
||||
note: true
|
||||
permalink: /notes/27-todo-re-evaluate-storybook
|
||||
---
|
||||
|
||||
I've used Fractal a lot for the past several years to build design systems and component libraries for projects, but as the last commit was in January 2023 and there was an issue saying the maintainers were stepping back and the project is unmaintained, it may be time to look at something else.
|
|
@ -2,6 +2,8 @@
|
|||
title: Excluding local files from Git
|
||||
date: 2024-11-07 10:10:19
|
||||
tags: [git]
|
||||
note: true
|
||||
permalink: /notes/28-excluding-local-files-from-git
|
||||
---
|
||||
|
||||
As well as using a shared `.gitignore` file in a directory, I've had a convention of putting my own files I want to ignore in an `.ignored` directory and having that in a [global excludes file](https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreexcludesFile).
|
|
@ -8,6 +8,8 @@ links:
|
|||
url: https://www.drupal.org/node/3522189
|
||||
- text: This Blog Is No Longer on Drupal CMS, and That's a Good Thing
|
||||
url: https://joshuami.com/blog/2025/recipe-unpack-blog-no-longer-drupal-cms-and-thats-good-thing
|
||||
note: true
|
||||
permalink: /notes/29-drupal-recipe-unpacking
|
||||
---
|
||||
|
||||
Drupal now supports recipe unpacking.
|
|
@ -2,6 +2,8 @@
|
|||
title: Writing bash scripts with Nix
|
||||
date: 2024-08-21 18:30:24
|
||||
tags: [Bash, Linux, Nix]
|
||||
note: true
|
||||
permalink: /notes/3-writing-bash-scripts-with-nix
|
||||
---
|
||||
|
||||
- Variables, such as username, can be injected.
|
|
@ -8,6 +8,8 @@ links:
|
|||
url: https://code.oliverdavies.uk/opdavies/nix-config/src/commit/a620888277654fa413d14413d0d2a4ce82d1ad56/packages/get-tags.nix
|
||||
- text: My count-tags script
|
||||
url: https://code.oliverdavies.uk/opdavies/nix-config/src/commit/a620888277654fa413d14413d0d2a4ce82d1ad56/packages/count-tags.nix
|
||||
note: true
|
||||
permalink: /notes/30-counting-tags
|
||||
---
|
||||
|
||||
To see all the tags in a repository, run `git tag`.
|
|
@ -3,6 +3,8 @@ title: Using Vim filters
|
|||
date: 2025-07-12 23:13:54
|
||||
tags:
|
||||
- vim
|
||||
note: true
|
||||
permalink: /notes/31-using-vim-filters
|
||||
---
|
||||
|
||||
In Vim, insert some text into a file, such as `date`.
|
|
@ -4,6 +4,8 @@ date: 2025-07-12 23:25:52
|
|||
tags:
|
||||
- drupal
|
||||
- php
|
||||
note: true
|
||||
permalink: /notes/32-drupal-bundle-classes
|
||||
---
|
||||
|
||||
By overridding a given bundle type:
|
|
@ -2,6 +2,8 @@
|
|||
title: Drush now uses Laravel Prompts
|
||||
date: 2024-08-21 18:43:15
|
||||
tags: [Drupal, Drush, Laravel, PHP]
|
||||
note: true
|
||||
permalink: /notes/4-drush-now-uses-laravel-prompts
|
||||
---
|
||||
|
||||
By Jess:
|
|
@ -2,6 +2,8 @@
|
|||
title: Using code snippets for effective live demos
|
||||
date: 2024-08-21 18:53:51
|
||||
tags: [Vim, Neovim, Public Speaking, Laravel, PHP, Jenkins]
|
||||
note: true
|
||||
permalink: /notes/5-using-code-snippets-for-effective-live-demos
|
||||
---
|
||||
|
||||
[This tweet](https://x.com/DCoulbourne/status/1820068237226262810) mentions using code snippets whilst doing live demos to make them easier and less risky:
|
|
@ -2,6 +2,8 @@
|
|||
title: Unveiling Laravel Prompts
|
||||
date: 2024-08-22 08:09:22
|
||||
tags: [PHP, Laravel, Drush]
|
||||
note: true
|
||||
permalink: /notes/6-unveiling-laravel-prompts
|
||||
---
|
||||
|
||||
Now [Drush is using Laravel Prompts](../4), I should re-watch this video from Laracon US last year where Prompts was unveiled by Jess Archer:
|
|
@ -2,6 +2,8 @@
|
|||
title: Scaling personal projects
|
||||
date: 2024-08-22 09:00:00
|
||||
tags: [PHPSW, Public Speaking, Software Development]
|
||||
note: true
|
||||
permalink: /notes/7-scaling-personal-projects
|
||||
---
|
||||
|
||||
Here are some quick notes from Ferdie De Oliveria's talk, "Scaling Personal Projects", at [PHP South West last week](https://www.meetup.com/php-sw/events/302521220):
|
|
@ -2,6 +2,8 @@
|
|||
title: One of my earliest Tailwind CSS projects
|
||||
date: 2024-08-22 09:01:00
|
||||
tags: [CSS, Tailwind CSS, PHPSW]
|
||||
note: true
|
||||
permalink: /notes/8-one-of-my-earliest-tailwind-css-projects
|
||||
---
|
||||
|
||||
[The PHPSW website](https://phpsw.uk) is one of the earliest Tailwind CSS projects I did, at least that I can remember.
|
|
@ -2,6 +2,8 @@
|
|||
title: Git remotes can have more than one URL
|
||||
date: 2024-08-22 09:43:42
|
||||
tags: [Software Development, Git]
|
||||
note: true
|
||||
permalink: /notes/9-git-remotes-can-have-more-than-one-url
|
||||
---
|
||||
|
||||
If you want to have multiple URLs for a single remote so `git push origin ...` will push to multiple remotes, such as GitHub and GitLab, or a personal repository and a client repository, you can do `git remote set-url --add origin <url>`.
|
|
@ -1,8 +0,0 @@
|
|||
---
|
||||
title: 'TODO: Try zellij as a potential tmux alternative'
|
||||
date: 2024-08-23 16:52:06
|
||||
tags: [Linux, Shell, Zellij, tmux, Command-Line]
|
||||
---
|
||||
|
||||
- <https://zellij.dev>
|
||||
- <https://mynixos.com/search?q=zellij>
|
Loading…
Add table
Add a link
Reference in a new issue