Skip to content

Instantly share code, notes, and snippets.

View f3bruary's full-sized avatar

f3bruary f3bruary

  • Self employed
  • /root/
View GitHub Profile
@f3bruary
f3bruary / traefik.yaml
Created January 29, 2026 18:00
Traefik redirect rules on Coolify for localized Astro 404 page support
# Example of Dutch 404 page support
# This assumes your 404 html file is at /nl/404/index.html
# Replace domain.com and CONTAINERNAME, and optionally all occurrences of projectname
traefik.http.routers.projectname-nl.rule=Host(`domain.com`) && PathPrefix(`/nl`)
traefik.http.routers.projectname-nl.entryPoints=https
traefik.http.routers.projectname-nl.tls=true
traefik.http.routers.projectname-nl.tls.certresolver=letsencrypt
traefik.http.routers.projectname-nl.service=http-0-CONTAINERNAME
traefik.http.routers.projectname-nl.priority=200
@f3bruary
f3bruary / facets.php
Created September 21, 2022 17:49
FacetWP: Register facets programmatically (via code)
<?php
/* updated 2022-09-21 */
$facets = [
[
'name' => 'test_checkboxes',
'label' => 'Test checkboxes',
'type' => 'checkboxes',
'source' => 'post_type',
'parent_term' => '',
@f3bruary
f3bruary / create-block.js
Last active July 7, 2022 21:08
NPM script to create ACF layout directory
#!/usr/bin/env node
/*
* Create ACF Flexible Layouts
*/
// Require modules.
const fs = require( 'fs' );
const args = process.argv.slice( 2 );