Skip to content

Instantly share code, notes, and snippets.

View aomarks's full-sized avatar
🐟

Al Marks aomarks

🐟
View GitHub Profile
@aomarks
aomarks / keybase.md
Created February 11, 2017 21:18
Keybase proof

Keybase proof

I hereby claim:

  • I am aomarks on github.
  • I am aomarks (https://keybase.io/aomarks) on keybase.
  • I have a public key ASAE2gJedIpr5YK55-6Z_TOSJAfaPCl2UH8-AFQCUC3kNgo

To claim this, I am signing this object:

@aomarks
aomarks / test-webdriver.js
Last active June 18, 2019 21:42
Repro script for Chrome Windows WebDriver performance issue
/**
* This Node script is to demonstrate an issue whereby WebDriver for
* Chrome on Windows runs very slowly -- significantly slower than both
* Chrome on macOS and Firefox on Windows.
*
* Results:
*
* macOS Mojave / Chrome 76: 2,806 ms
* macOS Mojave / Firefox 67: 3,504 ms
* Windows 10 / Firefox 67: 2,380 ms
/**
* 1) Install WebDriver for Node:
* $ npm install selenium-webdriver
*
* 2) Download the latest WebDriver plugins:
* http://chromedriver.chromium.org/downloads
* https://github.com/mozilla/geckodriver/releases
* https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
*
* 3) Optionally settings block below.
// This script finds all open issues in the Lit org and adds
// them to the Lit project board, if they are not already there.
import { graphql } from "@octokit/graphql";
const graphqlWithAuth = graphql.defaults({
headers: {
// This PAT must have repo and admin:org scopes
authorization: `token <INSERT PERSONAL ACCESS TOKEN HERE>`,
},
@aomarks
aomarks / archive-all-chatgpt-chats.js
Last active January 24, 2024 05:41
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) {