Skip to content

Instantly share code, notes, and snippets.

View Muffinman's full-sized avatar
🤠
Stuff

Matt Jones Muffinman

🤠
Stuff
View GitHub Profile
@Muffinman
Muffinman / example.sh
Created November 2, 2023 16:59
Typesense query token problem
#!/bin/bash
export TYPESENSE_API_KEY=xyz
curl "http://localhost:8108/debug" \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}"
curl "http://localhost:8108/collections" \
-X POST \
@Muffinman
Muffinman / webpack.config.js
Last active October 19, 2022 09:45
Webpack merge rules
const defaultConfig = require('@wordpress/scripts/config/webpack.config');
const { getWebpackEntryPoints } = require('@wordpress/scripts/utils/config');
module.exports = {
...defaultConfig,
stats: 'minimal',
entry: {
...getWebpackEntryPoints(),
'app-styles': ['./src/css/app.css'],
'app-scripts': ['./src/js/app.js'],