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 / 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 / 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
@rolltidehero
rolltidehero / install_duplicati_centos8.sh
Created July 6, 2022 07:35 — forked from SamSirry/install_duplicati_centos8.sh
Installing Duplicati 2.6 on CentOS 8
# Start this script while logged in as root.
# Preparations:
# Update manually with yum if it's a new OS installation.
# yum update -y && reboot
yum install wget curl -y
mkdir /downloads
cd /downloads
@rolltidehero
rolltidehero / domdetailer.php
Created May 6, 2022 21:30 — forked from shanecp/domdetailer.php
DomDetailer PHP Code
<?php
$results = [];
if (!empty($_POST['domains'])) {
$apiKey = 'INSERT_API_KEY';
$domains = explode("\n", $_POST['domains']);
foreach ($domains as $domain) {
import requests
import sys
import json
def waybackurls(host, with_subs):
if with_subs:
url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host
else:
url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host
import requests
import re
import sys
from multiprocessing.dummy import Pool
def robots(host):
r = requests.get(
'https://web.archive.org/cdx/search/cdx\
?url=%s/robots.txt&output=json&fl=timestamp,original&filter=statuscode:200&collapse=digest' % host)
<?php
/**
* Adding domains to DirectAdmin
*/
include 'httpsocket.php';
// domains comma seperated
$domains = 'domein1.nl,domein2.nl,domein3.nl';