Skip to content

Instantly share code, notes, and snippets.

View Fronix's full-sized avatar
🏠
Working from home

fronix Fronix

🏠
Working from home
View GitHub Profile
@Fronix
Fronix / gist:82d1091d2666de088541d9495f5954b6
Created February 27, 2025 07:10
chatgpt ttrpg project instruction
You are a creative assistant focused on helping users create and maintain a <system> campaign set in the world of <worldname>.
You will emphasize keeping track of the existing lore and structure of <worldname>, ensuring that all generated sessions, plots, and ideas are grounded in the established world. You must actively use and reference uploaded knowledge files to maintain consistency with the established lore, avoiding the introduction of elements that do not align with the world's lore unless explicitly asked to generate new lore for unexplored parts of the world. It provides guidance on developing engaging storylines, creating characters, balancing encounters, and maintaining the overall narrative flow, while also offering creative inspiration within the established framework of <worldname>.
When planning a session, you will ask for details on the campaign's current state, suggest a session structure, and help with NPC interactions and plot twists but will not assist in generating maps. You can also help
@Fronix
Fronix / meilisearch-install-update-windows.ps1
Last active October 1, 2024 14:50
Meilisearch installer/updater for windows
# Provided as is
# Make sure to check the code!
# Folder for Meilisearch should include config.toml, this is not created automatically atm
# Script will require you to have the meilisearch binary exe on the filesystem
# IT WIL NOT FETCH FROM GITHUB
function Show-Menu {
Write-Host "================================="
Write-Host " Meilisearch Management Program"
Write-Host "================================="
@Fronix
Fronix / @meilisearch+instant-meilisearch+0.13.6.patch
Last active July 7, 2024 13:23
Add handleResults to InstantMeilisearch patch
This file has been truncated, but you can view the full file.
diff --git a/node_modules/@meilisearch/instant-meilisearch/dist/instant-meilisearch.cjs.js b/node_modules/@meilisearch/instant-meilisearch/dist/instant-meilisearch.cjs.js
index 0727dba..1f822cf 100644
--- a/node_modules/@meilisearch/instant-meilisearch/dist/instant-meilisearch.cjs.js
+++ b/node_modules/@meilisearch/instant-meilisearch/dist/instant-meilisearch.cjs.js
@@ -90,11 +90,6 @@ function __spreadArray(to, from, pack) {
return to.concat(ar || Array.prototype.slice.call(from));
}
-typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
- var e = new Error(message);
@Fronix
Fronix / usePagination.ts
Last active May 22, 2023 12:00
MUI Pagination hook adjusted for InstantSearch zerobased pagination
import { unstable_useControlled as useControlled } from '@mui/utils';
import type {
UsePaginationItem,
UsePaginationProps,
UsePaginationResult
} from './usePaginationTypes';
/**
* VERIFIED USING
* - [email protected]
@Fronix
Fronix / release-cleanup.ps1
Last active October 11, 2022 10:33
Cleanup release folders
# Clean up old releases on the server
# This script will check a specified folder for all release versions (i.e. R1, R2, R3, etc.) and delete all except the last X releases.
# Can be used together with Azure DevOps releases, each rlease is named RX which this script takes care of
# Modify $regex = '^.*?\(R(?<release>\d+)\).*' if you want to look for your own foldertype
# Usage
# release-cleanup.ps1 -releasesPath /path/to/release -releasesToKeep 3
# Options
@Fronix
Fronix / sql-server-m1-mac.md
Created May 11, 2022 14:15
How to use SQL server on M1 Mac

How to use SQL server on M1 Mac

Prerequisites

  • Docker & docker-compose
  • Brew

Setup Colima VM

brew install colima
services:
mssql:
image: mcr.microsoft.com/mssql/server
ports:
- '1433:1433'
environment:
SA_PASSWORD: 'SoM3C0mLiC4t3dP4szWoRd'
ACCEPT_EULA: 'Y'
MSSQL_PID: 'Express'
volumes:
@Fronix
Fronix / GitVersion.yml
Created December 15, 2021 10:43
GitVersion for GitFlow workflows (develop, main, releases)
mode: ContinuousDelivery
increment: Inherit
major-version-bump-message: '\+ver:\s?(breaking|major)'
minor-version-bump-message: '\+ver:\s?(feature|minor)'
patch-version-bump-message: '\+ver:\s?(fix|patch)'
no-bump-message: '\+ver:\s?(none|skip)'
tag-prefix: '[vV]'
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatchTag
assembly-informational-format: '{InformationalVersion}'
@Fronix
Fronix / radarr-delete-unmonitored-olderthanx.sh
Created August 4, 2021 12:40
Delete unmonitored radarr movies added before X date
#!/bin/sh
HOST=http://local.radarr
API_KEY=
# Add your min date here
# All movies added before this date gets deleted
date=$(date "+%s" -d "2020-04-01")
ids=$(curl --silent $HOST/api/v3/movie -X GET -H "X-Api-Key: $API_KEY" \ |
jq '[.[] | select ((.monitored == false) and (.added | fromdateiso8601 < '"$date"')) | .id'])
@Fronix
Fronix / RadarrTautulliPlexDelete.js
Last active July 24, 2021 15:57
Script to delete movies that are not downloaded or watched for X months/last played date from Radarr (Outdated)
{
/** OUTDATED **/
//based on https://gist.github.com/ojame/93560d99149124ea2f89b9d78cbcadd1
// RadarrAPI: Go to Radarr and click 'settings' => 'general'.
// TautulliAPI: Go to Tautulli and click 'Settings' => 'Web Interface'
// Open the JavaScript Console in Google Chrome (View => Developer => Javascript Console)
// Past the following in. Hit enter and away you go.
// Alternatively you can use Sources->Snippets in Chrome
//Update 2020-04-08: