I hereby claim:
- I am warengonzaga on github.
- I am warengonzaga (https://keybase.io/warengonzaga) on keybase.
- I have a public key ASCbM3a16TPIOtOhQj0UF3Hf2qBqZt21ZJbfMh_tBgBWzgo
To claim this, I am signing this object:
function defer_parsing_of_js( $url ) { | |
if ( is_user_logged_in() ) return $url; //don't break WP Admin | |
if ( FALSE === strpos( $url, '.js' ) ) return $url; | |
if ( strpos( $url, 'jquery.js' ) ) return $url; | |
return str_replace( ' src', ' defer src', $url ); | |
} | |
add_filter( 'script_loader_tag', 'defer_parsing_of_js', 10 ); |
I hereby claim:
To claim this, I am signing this object:
<?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; | |
} |
# Please visit https://github.com/froobynooby/FarmControl/wiki/Profiles for help with making profiles. | |
profiles: | |
########################################################### | |
# PROACTIVE MODE | |
########################################################### | |
# ======================================================= # | |
# nerf animal farms |
/** | |
* Electronic Ultrasonic Emitter (Project E.U.E) - Basic Version | |
* by Waren Gonzaga | |
* Version: 1.0.6 | |
* | |
* A simple project that emits ultrasonic waves and possible to repel mosquiotoes. | |
* Check this project on Instructables.com | |
* Link: https://www.instructables.com/id/Electronic-Ultrasonic-Emitter-Basic-Version/ | |
* | |
* Contribute to improve this project on gist! |
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
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"); | |
} |