Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
party 🥳

Jason Stallings octalmage

💭
party 🥳
View GitHub Profile
@octalmage
octalmage / roles.md
Last active Oct 19, 2021
Default WordPress user roles and capabilities.
View roles.md

WordPress v4.3.1

Admin wp_capabilities wp_user_level 10

a:1:{s:13:"administrator";b:1;}

Contributor wp_capabilities wp_user_level 1

View keplr.js gist
window.keplr.experimentalSuggestChain({
// Chain-id of the Cosmos SDK chain.
chainId: "columbus-5",
// The name of the chain to be displayed to the user.
chainName: "Terra",
// RPC endpoint of the chain.
rpc: "https://lcd.terra.dev",
// REST endpoint of the chain.
rest: "https://fcd.terra.dev",
// Staking coin information
@octalmage
octalmage / clearcart.php
Created Oct 26, 2015
Force clear WooCommerce cart for WordPress user.
View clearcart.php
<?php
add_action( 'init', 'force_clear_woocommerce_cart' );
function force_clear_woocommerce_cart()
{
$user_ID = get_current_user_id();
if ($user_ID === 68364)
{
@octalmage
octalmage / virus.sol
Created Jul 2, 2021
Virus ERC20 Token
View virus.sol
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
@octalmage
octalmage / Original Pokemon
Created Oct 11, 2013
I recently needed an array of the original 150 Pokemon. Somehow it didn't exist, so I thought I'd share it!
View Original Pokemon
var Pokemon=new Array("Bulbasaur","Ivysaur","Venusaur","Charmander","Charmeleon","Charizard","Squirtle","Wartortle","Blastoise","Caterpie","Metapod","Butterfree","Weedle","Kakuna","Beedrill","Pidgey","Pidgeotto","Pidgeot","Rattata","Raticate","Spearow","Fearow","Ekans","Arbok","Pikachu","Raichu","Sandshrew","Sandslash","Nidoran","Nidorina","Nidoqueen","Nidoran","Nidorino","Nidoking","Clefairy","Clefable","Vulpix","Ninetales","Jigglypuff","Wigglytuff","Zubat","Golbat","Oddish","Gloom","Vileplume","Paras","Parasect","Venonat","Venomoth","Diglett","Dugtrio","Meowth","Persian","Psyduck","Golduck","Mankey","Primeape","Growlithe","Arcanine","Poliwag","Poliwhirl","Poliwrath","Abra","Kadabra","Alakazam","Machop","Machoke","Machamp","Bellsprout","Weepinbell","Victreebel","Tentacool","Tentacruel","Geodude","Graveler","Golem","Ponyta","Rapidash","Slowpoke","Slowbro","Magnemite","Magneton","Farfetch'd","Doduo","Dodrio","Seel","Dewgong","Grimer","Muk","Shellder","Cloyster","Gastly","Haunter","Gengar","Onix","Drowzee","Hyp
@octalmage
octalmage / play_music.h
Created Dec 8, 2014
Google Music Class Dump - iOS
View play_music.h
/*
* Generated by class-dump 3.1.2.
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
*/
struct CATransform3D {
float _field1;
float _field2;
float _field3;
@octalmage
octalmage / release.md
Last active Mar 12, 2020
Local v5.2.6 Beta
View release.md
@octalmage
octalmage / ico.js
Last active Feb 28, 2020
IOST ICO Example
View ico.js
const TOKEN = 'TIX';
const IOST_COST = '.1';
const TOKEN_DECIMALS = 8;
class ICO {
init() {
// Runs on deploy.
}
// Remove to disable updates.
@octalmage
octalmage / wax.js
Created Feb 7, 2020
Checking the inline calls of a transaction.
View wax.js
const tx = await theWallet.transact({
actions: [{
account: 'blockarcade1',
name: 'result',
authorization: [{
actor: theAccount,
permission: 'active',
}],
data: {
customer_string: userID,
@octalmage
octalmage / bid.yaml
Last active Jun 22, 2019
Sonm Web Server bid.yaml
View bid.yaml
duration: 0
price: 0.01 USD/h price: 1 USD/h
identity: anonymous
tag: wp
resources:
network:
overlay: true
outbound: true