Skip to content

Instantly share code, notes, and snippets.

(query
(type with-subtypes 'xinmods:page')
(offset 100)
(limit 10)
(scopes
(include '/content/documents/xin')
(include '/content/documents/configuration')
(exclude '/content/documents/xin/secret')
)
(where
@marnixk
marnixk / docker-compose.yml
Created April 2, 2025 23:44
brXM Quickstart Docker Compose file
version: '3'
services:
mysql:
image: xinsolutions/bloomreach-xinmods-mysql
stdin_open: true
tty: true
restart: always
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
.model tiny
.code
org 0100h
start:
; initialise counters
mov cl, 0
@marnixk
marnixk / gist:522715fc078ad1ca5a49a49b62f189fa
Created April 2, 2025 04:07
cloudwatch.sh for better metrics
#!/bin/bash
cd /home/ec2-user
# get amazon cloudwatch agent and install it on the system
wget https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm
yum localinstall -y amazon-cloudwatch-agent.rpm
cat << 'EOF' > amazon-cloudwatch-agent.json
{
@marnixk
marnixk / gist:c748fb6c8ee9fb3e06682efdd45f232c
Created March 28, 2025 09:46
Flutter Web builds to Cloudflare Pages
%.PHONY: clean build usage
CURRENT_BRANCH=$(shell git branch --show-current)
ifndef BUILD_VERSION
$(error BUILD_VERSION variable is not set. Please refer to the README.md for build instructions.)
endif
usage:
@echo "Use `make build` to build the web version of the Flutter app. It will be available in `target/`"
name: Build & Deploy Flutter Web App
on:
push:
branches:
- main
- dev
jobs:
build:
@marnixk
marnixk / pocketbase_stripe_utils.js
Created July 18, 2024 10:15
Pocketbase Stripe Javascript Functions
/*
____ _ _ _ _ _ _ _
/ ___|| |_ _ __(_)_ __ ___ | | | | |_(_) |___
\___ \| __| '__| | '_ \ / _ \ | | | | __| | / __|
___) | |_| | | | |_) | __/ | |_| | |_| | \__ \
|____/ \__|_| |_| .__/ \___| \___/ \__|_|_|___/
|_|
Purpose:
@marnixk
marnixk / gist:d43040df870ebec66e02130c7c49501c
Created August 3, 2023 08:11
Bloomreach XM: Configuration for more toolbar items on HTML component
Overlayed:
{
"plugins": "a11yhelp,autolink,basicstyles,button,clipboard,codemirror,contextmenu,copyformatting,dialog,dialogadvtab,dialogui,divarea,elementspath,enterkey,entities,floatingspace,floatpanel,hippopicker,htmlwriter,indent,indentblock,indentlist,justify,link,list,listblock,liststyle,magicline,maximize,menu,menubutton,panel,panelbutton,pastefromword,pastetext,pastetools,popup,removeformat,resize,richcombo,showblocks,showborders,specialchar,stylescombo,tab,table,tableresize,tableselection,tabletools,textselection,toolbar,undo,youtube"
}
Appended:
{
"toolbar" : [