Skip to content

Instantly share code, notes, and snippets.

View ndom91's full-sized avatar

Nico Domino ndom91

View GitHub Profile
@ndom91
ndom91 / intento_matches.js
Created August 8, 2025 13:44
Intento Help Desk Migration - URL Matches
export const urlMapping = {
// MT Studio
"https://help.inten.to/hc/en-us/categories/360003100099-Intento-MT-Studio":
"https://help.inten.to/section/intento-mt-studio",
"https://help.inten.to/hc/en-us/sections/4413578103442-Evaluation-Projects":
"https://help.inten.to/section/evaluation-projects",
"https://help.inten.to/hc/en-us/articles/4749773136924-Data-Cleaning":
"https://help.inten.to/article/mt-studio-data-cleaning",
"https://help.inten.to/hc/en-us/articles/360020905319-Train-Custom-Models-With-MT-Studio":
@ndom91
ndom91 / index.ts
Last active July 25, 2025 17:42
Plain Help Center markdown Migration
import path from "node:path";
import fs from "node:fs";
import { GraphQLClient, gql } from "graphql-request";
import { marked } from "marked";
type HelpCenterArticle = {
id: string;
title: string;
description: string;
contentHtml: string;
@ndom91
ndom91 / automation-pause-media-voice-pe.yaml
Last active April 20, 2025 11:01
Voice PE - Pause Media while Listening
alias: Voice PE - Pause TV when Voice PE Listening
description: "In order to improve voice command recognition, pause any media players playing in the background while listening for a command."
triggers:
- trigger: state
entity_id:
- assist_satellite.home_assistant_voice_090de2_assist_satellite # Voice PE Satellite entity
to: listening
conditions:
- condition: not
conditions:
@ndom91
ndom91 / test.md
Created November 3, 2024 19:44
Test123

grep.app search preview dialog

console.log('TEST FROM REMOTE SRC')
@ndom91
ndom91 / new-reset.css
Created August 30, 2024 18:49
2024 CSS Reset
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Prevent font size inflation */
html {
@ndom91
ndom91 / silicon.vim
Last active February 9, 2024 18:51
silicon-vim always copy to clipboard
" vim: et sw=2 sts=2
" Plugin: https://github.com/segeljakt/vim-silicon
" Description: Create beautiful images of source code.
" Maintainer: Klas Segeljakt <http://github.com/segeljakt>
"
" Update: Slightly modified to always copy to clipboard and never write image to disk - ndom91
if exists('s:autoloaded') | finish | el | let s:autoloaded = v:true | en
@ndom91
ndom91 / index.js
Last active November 29, 2023 23:07
Parallel Scheduling Test Worker
export default {
mapMap: {
'CA': 'πŸ‡¨πŸ‡¦',
'BR': 'πŸ‡§πŸ‡·',
'US': 'πŸ‡ΊπŸ‡Έ',
'JP': 'πŸ‡―πŸ‡΅',
'UK': 'πŸ‡¬πŸ‡§',
'FR': 'πŸ‡«πŸ‡·',
},
async fetch(request, env, ctx) {
@ndom91
ndom91 / example-eslint-ts-package.json
Last active June 21, 2023 11:06
Example `package.json` with ESLint+Prettier+Typescript
{
"name": "app",
"version": "0.0.1",
"description": "",
"main": "index.js",
"author": "",
"scripts": {
"prepare": "npx simple-git-hooks"
},
"type": "module",
@ndom91
ndom91 / auth0_user_export.sh
Created February 23, 2023 15:27
Auth0 Bulk User Export
#!/usr/bin/env bash
#
# ndom91 - 23.02.2023
# Based off of: https://github.com/ory/docs/blob/cef92348c250b06efdf65de0ce6c3721147a718c/code-examples/migrate-to-ory/0-get-auth0-user-data.sh
# Management API Tokens: https://manage.auth0.com/dashboard/eu/checkly/apis/management/explorer
# Auth0 API /users-exports docs: https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports
GREEN='\033[0;32m'
BLUE='\033[0;34m'
BRED='\033[1;31m'