Skip to content

Instantly share code, notes, and snippets.

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

Nicholas St. Germain dirtycajunrice

🏠
Working from home
View GitHub Profile
@dirtycajunrice
dirtycajunrice / graphql.config.yml
Last active April 22, 2025 07:48
Subsquid GraphQL type hinting
schema:
- squid-schema.graphql
- schema.graphql
@dirtycajunrice
dirtycajunrice / .gitattributes
Created January 16, 2025 16:04
Standardized Unreal Engine git files
* text=auto
# Unreal Engine file types.
*.uasset filter=lfs diff=lfs merge=lfs -text
*.umap filter=lfs diff=lfs merge=lfs -text
# Anything in `/RawContent` dir.
/RawContent/**/* filter=lfs diff=lfs merge=lfs -text
#Asset files
@dirtycajunrice
dirtycajunrice / rename.sh
Last active July 23, 2024 19:18
Template renamer for UnrealEnginePluginTemplate
#!/usr/bin/env bash
export MODULE_NAME="$(basename $(git rev-parse --show-toplevel))"
if [ -z "${MODULE_NAME}" ]; then
echo "No module name available"
fi
# Replace file names
find . -name '*MyPlugin*' -printf "%d %p\n" | sort -r | cut -d' ' -f2 | xargs -I{} sh -c 'mv -v {} $(echo {} | sed "s/MyPlugin/$MODULE_NAME/g")'
# Replace content
@dirtycajunrice
dirtycajunrice / .gitattributes
Last active April 24, 2024 17:30
Standard .git files for UnrealEngine GitHub LFS
* text=auto
# Unreal Engine file types.
*.uasset filter=lfs diff=lfs merge=lfs -text
*.umap filter=lfs diff=lfs merge=lfs -text
# Anything in `/RawContent` dir.
/RawContent/**/* filter=lfs diff=lfs merge=lfs -text
#Asset files
@dirtycajunrice
dirtycajunrice / smart-drawer.tsx
Last active January 3, 2024 15:20
SmartDrawer (Drawer + Dialog) Component for shadcn/ui
'use client';
import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
@dirtycajunrice
dirtycajunrice / layout.tsx
Last active October 3, 2023 18:55
Custom theme via cookie
import CommandPalette from "@/app/_global/command-palette";
// noinspection JSUnusedGlobalSymbols
import NavBar from "@/app/_global/navbar";
import Settings from "@/app/_global/settings";
import Sidebar from "@/app/_global/sidebar";
import SVGGradient from "@/components/icons/SVGGradient";
import { ChildrenProps } from "@/interfaces/next";
import "@/styles/globals.css";
import "@/styles/notiflix.css";
@dirtycajunrice
dirtycajunrice / check-ipfs-iptables.sh
Created February 6, 2022 20:35
Script to check iptables rules for outbound access when using ipfs
#!/bin/bash
RFC1918=('10.0.0.0/8' '172.16.0.0/12' '192.168.0.0/16')
IPTCHAINS=('OUTPUT')
format () { echo -e "${1}${2}\033[0m"; }
ask () { format '\033[1;34m' "$1"; }
success () { format '\033[0;32m' "$1"; }
warn () { format '\033[1;33m' "$1"; }
danger () { format '\033[0;31m' "$1"; }
@dirtycajunrice
dirtycajunrice / README.md
Last active January 25, 2022 12:46
Script to watch the block diff while syncing Harmony Validator Nodes
@dirtycajunrice
dirtycajunrice / getDiscordServerMembers.js
Last active November 19, 2024 05:17
Script to pull users from discord server
// ==UserScript==
// @name Get Discord Server Members
// @namespace DirtyCajunRice
// @match https://discord.com/channels/*
// @grant GM_log
// @grant GM_registerMenuCommand
// @version 1.0.1
// @author DirtyCajunRice
// @description Gets all visible member IDs in a discord server
// @run-at document-idle
@dirtycajunrice
dirtycajunrice / update_all_metadata.py
Last active April 10, 2021 03:15 — forked from JonnyWong16/update_all_metadata.py
Updates all metadata in the Tautulli database after moving Plex libraries.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description: Updates all metadata in the Tautulli database after moving Plex libraries.
# Author: /u/SwiftPanda16
# Requires: plexapi, requests
from plexapi.server import PlexServer, CONFIG
import requests