Skip to content

Instantly share code, notes, and snippets.

View magick93's full-sized avatar
💩
Focusing

magick93

💩
Focusing
View GitHub Profile
This file has been truncated, but you can view the full file.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"version": "4.3.0",
"title": "PersonType",
"description": "A schema that represents all of the information of a person.",
"type": "object",
"allOf": [
{
"$schema": "http://json-schema.org/draft-04/schema#",
"version": "4.3.0",
@magick93
magick93 / topolvm-debug-lvmdEmbedded-false.txt
Created May 21, 2025 05:40
[blockprint] TopoLVM v15.5.5 Debug Output (lvmdEmbedded=false) v15.0.0
[OK] kubectl is available
=== Kubernetes Pod Status ===
Checking pods in namespace: topolvm-system
Pod: topolvm-controller-6fc6bcd4b5-q8t6t
Status: Running | Containers: 5 | Ready: true/true/true/true/true
Pod: topolvm-controller-6fc6bcd4b5-tgkc8
Status: Running | Containers: 5 | Ready: true/true/true/true/true
@magick93
magick93 / topolvm-debug-lvmdEmbedded-true.txt
Created May 21, 2025 05:23
[blockprint] TopoLVM v15.5.5 Debug Output (lvmdEmbedded=true) v15.0.0
[OK] kubectl is available
=== Kubernetes Pod Status ===
Checking pods in namespace: topolvm-system
Pod: topolvm-controller-6fc6bcd4b5-q9b8m
Status: Running | Containers: 5 | Ready: true/true/true/true/true
Pod: topolvm-controller-6fc6bcd4b5-smpqp
Status: Running | Containers: 5 | Ready: true/true/true/true/true
@magick93
magick93 / topolvm-debug-lvmdEmbedded-true.txt
Created May 21, 2025 04:46
[blockprint] TopoLVM v15.5.5 Debug Output (lvmdEmbedded=true) v15.0.0
[OK] kubectl is available
=== Kubernetes Pod Status ===
Checking pods in namespace: topolvm-system
Pod: topolvm-controller-6fc6bcd4b5-kjrlh
Status: Pending | Containers: 5 | Ready: false/false/false/false/false
[WARN] Pod is in Pending state
Recent events:
LAST SEEN TYPE REASON OBJECT MESSAGE
@magick93
magick93 / topolvm-debug-lvmdEmbedded-false.txt
Created May 21, 2025 04:17
[blockprint] TopoLVM v15.5.5 Debug Output (lvmdEmbedded=false) v15.0.0
[OK] kubectl is available
=== Kubernetes Pod Status ===
Checking pods in namespace: topolvm-system
Pod: topolvm-controller-6fc6bcd4b5-kjrlh
Status: Pending | Containers: 5 | Ready: false/false/false/false/false
[WARN] Pod is in Pending state
Recent events:
LAST SEEN TYPE REASON OBJECT MESSAGE
@magick93
magick93 / topolvm-debug-lvmdEmbedded-true.txt
Created May 21, 2025 04:00
[blockprint] TopoLVM v15.5.5 Debug Output (lvmdEmbedded=true) v15.0.0
[OK] kubectl is available
=== Kubernetes Pod Status ===
Checking pods in namespace: topolvm-system
Pod: topolvm-controller-6fc6bcd4b5-kjrlh
Status: Pending | Containers: 5 | Ready: false/false/false/false/false
[WARN] Pod is in Pending state
Recent events:
LAST SEEN TYPE REASON OBJECT MESSAGE
@magick93
magick93 / xstate_invoke.ts
Last active April 16, 2024 01:16
xstate invoke
import { assign, setup } from 'xstate';
function executeAction() {
console.log('executing action');
}
export type ConfirmationDialogMachineEvent =
| { type: 'OPEN_DIALOG'; action: void }
| { type: 'CONFIRM' }
| { type: 'CANCEL' };
@magick93
magick93 / ConfirmDeleteFSM.ts
Created April 15, 2024 22:15
Confirm delete FSM
import { assign, createMachine, fromPromise } from 'xstate';
import { setup } from 'xstate';
function executeAction() {
console.log('FSM: Executing action...');
};
export interface ConfirmationDialogMachineContext {
@magick93
magick93 / radiobuttongroup.svelte
Last active November 16, 2023 21:12
Re-creating Tailwind color radiobuttons
<script lang="ts">
import { createRadioGroup, melt } from '@melt-ui/svelte';
const {
elements: { root, item, hiddenInput },
helpers: { isChecked },
} = createRadioGroup({
defaultValue: 'default',
});
@magick93
magick93 / troublesome.sql
Created September 29, 2023 19:58
Error: 'character varying' cannot be found in EnumType's name.
-- DROP SCHEMA public;
CREATE SCHEMA public AUTHORIZATION pg_database_owner;
COMMENT ON SCHEMA public IS 'standard public schema';
-- DROP TYPE public."account_based_product_code_list_type";
CREATE TYPE public."account_based_product_code_list_type" AS ENUM (
'HSA',