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 / 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"
)
# 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
@rolltidehero
rolltidehero / heath-chatgpt.md
Last active February 8, 2023 03:21
Heath vs. ChatGPT - Biblical

HEATH

Some people think that ChatGPT could potentially fulfill the "Image of the Beast" prophecy in Revelation 13. Write an article that explains why that is false.

ASSISTANT

The idea that ChatGPT or any form of artificial intelligence could fulfill the "Image of the Beast" prophecy in Revelation 13 is a common misconception, but it is important to understand that the prophecy has a different meaning in the context of its original time and culture.

The Book of Revelation was written during a time of great persecution and upheaval for the early Christian communities. The author, John of Patmos, used powerful imagery and symbols to communicate messages of hope, encouragement, and warning to these communities. The "Image of the Beast" was one such symbol, representing the oppressive and idolatrous Roman Empire and its false gods.

Therefore, it is not a technology or machine, but rather a representation of human power and oppression. The prophecy serves as a warning to resist the lure of worldly power an

@rolltidehero
rolltidehero / hide-porkbun-handshake-tlds.js
Created January 9, 2023 01:42 — forked from MrDOS/hide-porkbun-handshake-tlds.js
Userscript to hide Handshake TLDs from Pornbun's all-extensions page.
// ==UserScript==
// @name Hide Porkbun Handshake TLDs
// @description Hide Handshake TLDs from Pornbun's all-extensions page.
// @namespace http://seenet.ca/
// @version 1.0
// @match https://porkbun.com/products/domains
// @icon https://www.google.com/s2/favicons?sz=64&domain=porkbun.com
// @grant none
// ==/UserScript==
curl -L "https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose