Instantly share code, notes, and snippets.

Coby Tamayo acobster

View GitHub Profile
View .lando.yml
name: networking-bug
recipe: pantheon
framework: wordpress
site: networking-bug
id: fake-site-id
  1. Retrieve TRANQ GUN and BLAST Rick & Morty
  2. Retrieve 2 vials (Blue & Yellow) + AMMONIA SALTS
  3. Place BLUE VIAL into HELMET and place on Rick
  4. Wait 60 seconds and then remove HELMET
  5. Reload with YELLOW VIAL and place on Morty
  6. Wait 60 seconds then remove HELMET
  7. Drag Rick & Morty to the TV COUCH
  9. Break the AMMONIA SALTS and wave under noses
  10. When Rick & Morty awake leave the room
View poc.ino
#include <Bounce2.h>
const int channel = 9;
const int LED = 14;
const int POT = 15;
const int DEBOUNCE_INTERVAL = 55;
int level;
View .bashrc
# You want your prompt to warn you if you are in the directory tree of a production environment.
# Set the `LIVE_DIRS` array to the list of whatever directories should be considered production,
# and your prompt will contain a big, red "[PRODUCTION]" whenever you're in one of those directories,
# or a subdirectory thereof.
# Customize this variable
LIVE_DIRS=(/var/www/ /var/www/
cwdEnvironment() {
local _live
View output
$ ./cluster/
... Starting cluster using provider: vagrant
... calling verify-prereqs
... calling kube-up
Bringing machine 'master' up with 'virtualbox' provider...
Bringing machine 'node-1' up with 'virtualbox' provider...
==> master: Box 'kube-fedora23' could not be found. Attempting to find and install...
master: Box Provider: virtualbox
master: Box Version: >= 0
==> master: Box file was not detected as metadata. Adding it directly...

Keybase proof

I hereby claim:

  • I am acobster on github.
  • I am acobster ( on keybase.
  • I have a public key ASCoxDMqIGdEVRgPACqiDJecZRkRXeyRy1oDKkVW2Bcz7go

To claim this, I am signing this object:

View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View CustomMenu.php
* Custom Menu class to add special nav behavior on top of
* TimberMenu instances.
* Context:
class CustomMenu extends \TimberMenu {
public $MenuItemClass = '\CustomMenuItem';
View functions.php
/** Custom Functions... **/
require_once( 'lib/custom-functions.php' );
/** And Now Our Regularly Scheduled Brogramming... **/
if ( ! class_exists( 'Timber' ) ) {
add_action( 'admin_notices', function() {
echo '<div class="error"><p>Timber not activated. Make sure you activate the plugin in <a href="' . esc_url( admin_url( 'plugins.php#timber' ) ) . '">' . esc_url( admin_url( 'plugins.php' ) ) . '</a></p></div>';
View ModuleTest.php
/* /test/module/ModuleTest.php */
class ModuleTest extends PlatformSpecificTestCase {
public function setUp() {
// test stuff