Skip to content

Instantly share code, notes, and snippets.

party 🥳

Jason Stallings octalmage

party 🥳
View GitHub Profile
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 / gist:11366947
Last active Aug 29, 2015
HHVM with WordPress
View gist:11366947
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python-software-properties curl
sudo apt-key adv --recv-keys --keyserver hkp:// 0xcbcb082a1bb943db
sudo add-apt-repository 'deb precise main'
sudo apt-get update
sudo echo -e "Package: *\nPin: origin\nPin-Priority: 1000" | tee /etc/apt/preferences.d/mariadb
sudo apt-get install mariadb-server
mysql -uroot -p 
octalmage / index.html
Created May 7, 2014
jQueryMobile Starter
View index.html
<!DOCTYPE html>
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="" />
<script src=""></script>
octalmage / dark.css
Created Jun 29, 2014
Zendesk theme for Stylebot
View dark.css
#notice {
background-color: #fefefe;
.blue_box_top, .blue_box_bottom, #show_agent_collision_for_ticket {
display: none;
.content {
border-radius: 5px;
octalmage / fix-login-403.php
Last active Sep 15, 2016
This fixes 403s for ajax login plugins.
View fix-login-403.php
* Plugin Name: Fix Ajax Login on WP Engine.
* Description: Removes the wpe_login_failed_403 action.
* Version: 0.1
* Author: Jason Stallings
// Prevent direct access to this file
if ( ! defined( 'ABSPATH' ) ) {
octalmage /
Last active Aug 29, 2015
Add domains to MaxCDN whitelist.


  1. Put comma separated list of domains in the domains variable (no spaces).
  2. Run in JavaScript console.
octalmage / mouse.js
Created Aug 31, 2014
Autonode example.
View mouse.js
var autonode = require("./autonode.node");
var mouse=autonode.getMousePos();
console.log("Mouse is at x:" + mouse.x + " y:" + mouse.y);
octalmage /
Created Sep 11, 2014
Automatically restart HHVM if a url is returning a 502. I'm using the HHVM nightlies to take advantage of some new features, but it will occasionally stop responding to requests. Add this to your crontab to run every minute.
response=$(curl -L --write-out %{http_code} --silent --output /dev/null;
echo $response
if [ "$response" = "502" ]
service hhvm restart
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;
View alsoviewing.user.js
// ==UserScript==
// @name Also Viewing
// @namespace
// @description See when another person is viewing the same post.
// @include*
// @require
// @require
// @version 0.1.0
// ==/UserScript==