Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

77 total results found


Code Snippets Web

Get / Post / Delete options works roughly like this: # Import all markdown files into a book find . -name '*.md' -print0 | while IFS= read -r -d '' file; do python markdown_inport "$file" done # Trash all pages containing a search query: ...


Code Snippets Web

Mount a volume as the host user This allows writing to the volume. Dockerfile: COPY .docker/ / RUN chmod +x / ENTRYPOINT ["/", "docker-php-entrypoint", "php-fpm"] #!/usr/bin/env bash echo "C...


Code Snippets Shell

Flatpak Runner Example: fr handbrake #!/usr/bin/env bash # Quickly run flatpak installed cli apps by going a grep insensitive search. # Example: `fr handbrake --help` would run `flatpak run fr.handbrake.HandBrakeCLI --help` FLATPAK_ID=$(flatpak list --app | gr...

Per Repo hooks


This is a little helper script that enables version controlled hooks, and per project hooks: Examples are: .hooks/pre-push # version controlled repo hook .hooks/pre-push.local # overrides the previous hook .hooks.local/pre-push # will be run af...

Performance Strategy

WordPress Knowledge

CDN for assets Full page cache such as Batcache Fragment caching for menus Longcache for lower traffic sites.

Types of tests


Unit Tests: Test individual code components in isolation. Functional Tests: Validate overall functionality of modules or systems. Acceptance Tests: Verify software meets stakeholder requirements for deployment.

Time Since Last Resume


This has been moved to


WordPress Knowledge

When migrating content, suspend cache invalidation and flush the cache afterwards. With that in mind, the following optimisation reduces the number of database queries to 1: - $post_data = [ - 'ID' => $post_id, - 'post_content' => $content, - ]; - - $up...



WordPress Knowledge

To download all attachment files from a remote site: from your local uploads directory: wp post list --post_type=attachment --field=_wp_attached_file | xargs -I {} wget -x -nH --cut-dirs=2 "https://$DOMAIN/wp-content/uploads/{}"