python3 -m venv venv
source ./venv/bin/activate
pip3 install -r requirements.txt
bunx playwright codegen --timeout 100000 --save-storage=auth.json
const sleep = ms => { return new Promise(resolve => setTimeout(resolve, ms)) } | |
const injectButton = async () => { | |
// Similiarly, we also need to wait for the page to load in... | |
await sleep(1000); | |
console.log("hey"); | |
const {url} = await fetch("https://bhchiang--get-url-get.modal.run/").then(r => r.json()); | |
const URL = `${url}/get_prompt`; |
Removing the last commit
To remove the last commit from git, you can simply run git reset --hard HEAD^
If you are removing multiple commits from the top, you can run git reset --hard HEAD~2 to remove the last two commits. You can increase the number to remove even more commits.
If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^
which will evict the commits from the branch and from the index, but leave the working tree around.
If you want to save the commits on a new branch name, then run git branch newbranchname
before doing the git reset.