Skip to content

Instantly share code, notes, and snippets.

@flymop
flymop / clean-new-chat-conversations.js
Created March 23, 2023 16:15
Clean ChatGPT "New Chat" Conversations
// ==UserScript==
// @name Clean New Chat Conversations
// @version 1
// @description Deletes all conversations with the title "New chat" in ChatGPT chat page
// @match https://chat.openai.com/*
// ==/UserScript==
const KEY_ACCESS_TOKEN = "chatgpt_access_token";
(async function() {
@flymop
flymop / create-sa.sh
Created November 24, 2023 10:58
create a service account and bind it with cluster-admin role, then export as a kubeconfig
#!/bin/bash
# create a service account and bind it with cluster-admin role, then export as a kubeconfig
# typically used when creating a new minikube/kind cluster
set -ex
set -o pipefail
NAMESPACE=$1
SA_ACCOUNT_NAME=$2
EXPORT_KUBECONFIG_PATH=$3