Skip to content

Instantly share code, notes, and snippets.

View rolltidehero's full-sized avatar
☠️
chemo & radiation treatments again... I hate cancer :(

Heath B rolltidehero

☠️
chemo & radiation treatments again... I hate cancer :(
View GitHub Profile
@rolltidehero
rolltidehero / programmer-commands.md
Created February 4, 2025 06:14
This is a list of commands that I can enter to result in the expected prompt that it equals to.

Below is a list of commands that I can enter to result in the expected prompt it equals to.

Format: /COMMAND = PROMPT

/help = List all the available commands and the associated prompt.


/create = Let's create a corrected, production-ready tool using the best coding standards available. We'll structure this as you, a senior engineer, mentoring me, a junior engineer with no experience, with detailed technical explanations and fully generated code with completed features. You can suggest 10 ideas to create and I will pick one or I will likely reply with my own idea. Whatever I respond with, your job is to respond with a detailed project plan and feature roadmap. Do you understand?

@rolltidehero
rolltidehero / ai.instructions-detailed.guide.md
Last active February 4, 2025 06:22
Here’s an example of a **hyper-detailed guide** designed in markdown to walk me through whatever task that I propose.

Here’s an example of a hyper-detailed guide designed in markdown to walk me through whatever task that I propose. Format it like below so I can copy-paste this into Obsidian and check off each tiny step as I go! ✨

The example below is a request to "create a step-by-step guide to help me build the best PC possible with the inventory I have."


Tools & Safety

  • ⚠️ Anti-static wristband (or touch a metal chair/faucet first!).
  • 🪛 Screwdriver (comes with your case).
Go ahead, make my day.
@rolltidehero
rolltidehero / using-google-takeout.md
Created October 28, 2024 16:22 — forked from chabala/using-google-takeout.md
Merge and extract tgz files from Google Takeout

Recently found some clowny gist was the top result for 'google takeout multiple tgz', where it was using two bash scripts to extract all the tgz files and then merge them together. Don't do that. Use brace expansion, cat the TGZs, and extract:

$ cat takeout-20201023T123551Z-{001..011}.tgz | tar xzivf -

You don't even need to use brace expansion. Globbing will order the files numerically:

$ cat takeout-20201023T123551Z-*.tgz | tar xzivf -
@rolltidehero
rolltidehero / PowerShell: Enable Windows Features [Hyper-V & Containers].md
Last active October 24, 2024 16:19
This code snippet runs as an administrator, checks existing features and displays the current state. It also installs missing features if any are not installed or requires management tools to restart them with a specific color of "Green". If there is no

Administrator Feature Installation and Restart

Preview:
# Run as Administrator
$requiredFeatures = @(
    "Containers",
    "Hyper-V",
    "Hyper-V-PowerShell"
)
@rolltidehero
rolltidehero / .zshrc
Created September 7, 2023 23:30
.zshrc
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
@rolltidehero
rolltidehero / 1pass_dups.py
Last active September 7, 2023 06:53 — forked from thehesiod/1pass_dups.py
1password duplicate remover (alpha, only run in debugger with breakpoints everywhere *g*)
#!/usr/bin/env python3
import json
import subprocess
import sys
from concurrent.futures import ThreadPoolExecutor
import html
import dictdiffer
import iso8601

Using a simple little command to copy multiple files to one location, this trick basically works by merging a compressed file with an image. In other words, you can save your top-secret files inside an image by saving them both into one file.

The final result is an image file that also contains the secretly stored compressed file, which you can access in 2 ways: opening the file normally will show the image and hide the rest; otherwise, choosing to open the file with an archiver will reveal all the secrets (which only you can know about).

REQUIREMENTS:

Windows Command Prompt (cmd)

ZIP or RAR file archiver (extractor and compressor)

@rolltidehero
rolltidehero / Activate.js
Last active May 2, 2023 02:06
capture-the-flag
/** @format */
!(function (e) {
var t = {}
function n(r) {
if (t[r]) return t[r].exports
var o = (t[r] = { i: r, l: !1, exports: {} })
return e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports
}
;(n.m = e),
@rolltidehero
rolltidehero / Auth.js
Created May 2, 2023 01:40
Sample file for testing
"use strict";(()=>{function C(e){return chrome.runtime.getURL(e)}function M(e,t){chrome.tabs.sendMessage(e,t)}function z(e){chrome.runtime.sendMessage(e)}function H(e,t={}){chrome.tabs.create({url:e,...t})}async function V(){try{return await chrome.tabs.captureVisibleTab(null,{format:"png"})}catch(e){throw e}}var B={local:{store:async e=>{try{await chrome.storage.local.set(e)}catch(t){throw console.log(t),t}},get:async e=>{try{let t=await chrome.storage.local.get([e]);return t[e]?t[e]:null}catch(t){throw console.log(t),t}},remove:async e=>{try{await chrome.storage.local.remove([e])}catch(t){throw console.log(t),t}},clear:async()=>{try{await chrome.storage.local.clear()}catch(e){throw console.log(e),e}}}},d={getURL:C,sendMessage:z,sendMessageToTab:M,openTab:H,captureVisibleArea:V,storage:B};function b(e,t={},n){t.action=e,n?d.sendMessageToTab(n,t):d.sendMessage(t)}function L(e){chrome.runtime.onMessage.addListener((t,n,i)=>(i({}),e(t,n),!0))}var v={send:b,listen:L};function m(e,t,n){let i=document.createElemen