Skip to content

Instantly share code, notes, and snippets.

View solrevdev's full-sized avatar
💭
🤓

John Smith solrevdev

💭
🤓
View GitHub Profile
@solrevdev
solrevdev / setup.sh
Created July 6, 2020 20:50 — forked from chris-sev/setup.sh
Mac Setup
# how to run this thingy
# create a file on your mac called setup.sh
# run it from terminal with: sh setup.sh
#!/bin/bash
set -euo pipefail
# Display message 'Setting up your Mac...'
echo "Setting up your Mac..."
sudo -v

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@solrevdev
solrevdev / .NET6Migration.md
Created November 19, 2021 11:45 — forked from davidfowl/.NET6Migration.md
.NET 6 ASP.NET Core Migration
@solrevdev
solrevdev / search-my-gists.md
Last active August 18, 2022 07:29 — forked from santisbon/Search my gists.md
How to search gists

Enter this in the search box along with your search terms:

Get all gists from the user solrevdev.
user:solrevdev

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@solrevdev
solrevdev / MinimalAPIs.md
Created August 18, 2022 07:56 — forked from davidfowl/MinimalAPIs.md
Minimal APIs at a glance
@solrevdev
solrevdev / archive-all-chatgpt-chats.js
Created December 22, 2023 09:54 — forked from aomarks/archive-all-chatgpt-chats.js
Archive all ChatGPT chats browser script
// This script will iterate over all of your ChatGPT sessions and archive them one-by-one.
//
// 1. Go to https://chat.openai.com/
// 2. Open Chrome devtools (see https://developer.chrome.com/docs/devtools/open) or equivalent in your browser
// 3. Open the console tab
// 4. Paste the code below and press enter
const pause = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const history = document.querySelector('[aria-label="Chat history"]');
while (true) {