This gist provides different approaches to delete all labels from a GitHub repository using the GitHub CLI (gh).
# ❌ This doesn't work - gh doesn't support wildcards
gh label delete *| import { config } from "dotenv"; | |
| import { | |
| createThirdwebClient, | |
| getContract, | |
| prepareContractCall, | |
| resolveMethod, | |
| sendAndConfirmTransaction, | |
| } from "thirdweb"; | |
| import { contractURI } from "thirdweb/extensions/common"; | |
| import { defineChain } from "thirdweb/chains"; |
| import { config } from "dotenv"; | |
| import { ThirdwebSDK } from "@thirdweb-dev/sdk"; | |
| config(); | |
| const main = async () => { | |
| if (!process.env.WALLET_PRIVATE_KEY) { | |
| throw new Error("No private key found"); | |
| } |
This is useful when your admin for your contract has been compromised. For example, when you add balance to your admin address and suddenly your admin balance goes to random address. It is painful to remove your admin address if you don't have a gas to spend to assign a new admin address.
npx thirdweb create app --node --javascript --evm.env.example to .env.env
| # Please visit https://github.com/froobynooby/FarmControl/wiki/Profiles for help with making profiles. | |
| profiles: | |
| ########################################################### | |
| # PROACTIVE MODE | |
| ########################################################### | |
| # ======================================================= # | |
| # nerf animal farms |
| <?php | |
| // logout without confirmation | |
| function logout_without_confirmation($action, $result) { | |
| if ($action == "log-out" && !isset($_GET['_wpnonce'])) { | |
| $redirect_to = isset($_REQUEST['redirect_to'])?$_REQUEST['redirect_to']:''; | |
| $location = str_replace('&', '&', wp_logout_url($redirect_to)); | |
| header("Location: $location"); | |
| die; | |
| } |
I hereby claim:
To claim this, I am signing this object: