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
____ _ _ ____ _
| _ \(_)_ __| |_ _ _ / ___|__ _ (_)_ _ _ __
| | | | | '__| __| | | | | / _` || | | | | '_ \
| |_| | | | | |_| |_| | |__| (_| || | |_| | | | |
|____/|_|_| \__|\__, |\____\__,_|/ |\__,_|_| |_|
|___/ |__/
__________________________________________________
General Information
@dirtycajunrice
dirtycajunrice / index.html
Created July 19, 2018 01:44
Styled JavaScript Countdown Clock
<h1>Countdown Clock</h1>
<div id="clockdiv">
<div>
<span class="days"></span>
<div class="smalltext">Days</div>
</div>
<div>
<span class="hours"></span>
<div class="smalltext">Hours</div>
</div>
@dirtycajunrice
dirtycajunrice / get_folder_size.sh
Created December 11, 2018 00:01
Get folder size(s) in bytes in telegraf
#!/bin/bash
echo "["
du -bs "$@" | awk '{if (NR!=1) {printf ",\n"};printf " { \"directory_size_bytes\": "$1", \"path\": \""$2"\" }";}'
echo
echo "]"
@dirtycajunrice
dirtycajunrice / cachet_push.py
Created December 12, 2018 22:24
Cachet status push for streams and ms response time
import time
from json import dumps
from requests import Session
PLEX_URL = 'http://plex.asdf.asdf:32400'
PLEX_LATENCY_METRIC_ID = 2
CACHET_URL = 'https://status.asdf.asdf'
CACHET_API_KEY = 'asdfasdfasdf'
@dirtycajunrice
dirtycajunrice / manifest_yaml_generator.py
Last active January 16, 2019 21:26
Manifest YAML Generator
import yaml
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
VERSION = '0.1.0'
# Docker image, arch, variant, os
ARCH_LIST = [
('arm', 'arm', 'v6', 'linux'),
('armhf', 'arm', 'v7', 'linux'),
@dirtycajunrice
dirtycajunrice / output.lel
Created March 11, 2019 23:53
nvidia-smi -q -x
<?xml version="1.0" ?>
<!DOCTYPE nvidia_smi_log SYSTEM "nvsmi_device_v10.dtd">
<nvidia_smi_log>
<timestamp>Mon Mar 11 18:53:20 2019</timestamp>
<driver_version>410.78</driver_version>
<cuda_version>10.0</cuda_version>
<attached_gpus>1</attached_gpus>
<gpu id="00000000:04:00.0">
<product_name>Quadro P2000</product_name>
<product_brand>Quadro</product_brand>
@dirtycajunrice
dirtycajunrice / .kubectl_aliases
Last active January 18, 2021 20:02
kubectl convenience aliases
# kubectl convenience aliases
# requires https://github.com/cykerway/complete-alias
## base
alias k="kubectl"
complete -F _complete_alias k
## attach
alias katt="kubectl attach"
complete -F _complete_alias katt
alias katti="kubectl attach --stdin --tty"
@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
@dirtycajunrice
dirtycajunrice / getDiscordServerMembers.js
Last active June 7, 2025 04:52
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 / README.md
Last active January 25, 2022 12:46
Script to watch the block diff while syncing Harmony Validator Nodes