Skip to content

Instantly share code, notes, and snippets.

View ericduran's full-sized avatar
🎯
Focusing

Eric J. Duran ericduran

🎯
Focusing
View GitHub Profile
https://gist.github.com/11405412
@ericduran
ericduran / -
Last active August 29, 2015 13:57
Metatag/ Workbench v1
/**
* Checks if this entity is the default revision (published).
*
* @param object $entity
* The entity object, e.g., $node.
*
* @return bool
* TRUE if the entity is the default revision, FALSE otherwise.
*/
function _metatag_isdefaultrevision($entity) {

Keybase proof

I hereby claim:

  • I am erciduran on github.
  • I am ericduran (https://keybase.io/ericduran) on keybase.
  • I have a public key whose fingerprint is CE82 BFC0 DA5E 4976 2366 94CC 9488 9238 3E65 5119

To claim this, I am signing this object:

@ericduran
ericduran / drupal.html
Last active January 4, 2016 20:59
full Stack
<!DOCTYPE HTML>
<html>
<head>
<title>Drupal Vs</title>
<script src="http://d3js.org/d3.v2.min.js?2.10.0"></script>
<script src="xkcd.js"></script>
<style>
<?php
// Register our shutdown function so that no other shutdown functions run before this one.
// This shutdown function calls exit(), immediately short-circuiting any other shutdown functions,
// such as those registered by the devel.module for statistics.
register_shutdown_function('status_shutdown');
function status_shutdown() {
exit();
}
// Drupal bootstrap.
@ericduran
ericduran / ubuntu.md
Last active December 24, 2015 07:29
Thinking of switching to ubuntu

###Work Requirements

  • Work VPN (Cisco
  • Exchange Email
  • Exchange Calendar
  • vmware
  • join.me Support Issue
  • webex

Current Apps installed on Mac:

@ericduran
ericduran / durpal.md
Last active December 22, 2015 10:29
durpal
  • Heavily Patch Drupal 7.x install
  • API Compatible with Drupal 7.x
  • Twig Template Engine & PHP Template Engine
  • jQuery 2.x support
  • HTML5 Support
  • Entity API Support
  • Views Support

Random extra features.

@ericduran
ericduran / gist:6336861
Created August 25, 2013 23:07
Running custom dev tools
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --remote-debugging-port=9222 --no-first-run --remote-debugging-frontend="http://localhost:8000/front_end/inspector.html" --user-data-dir=Workspace/chromium/chromeServerProfile
@ericduran
ericduran / ericduran.github.io.har
Created August 24, 2013 20:17
sample har file
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2013-08-24T20:16:16.997Z",
@ericduran
ericduran / updots.sh
Last active December 18, 2015 12:59
I don't like git init ~. I mush rather keep a bunch of scatter gist file. I tend to just update my gist file then update my local from the web.
#!/bin/bash
curl -s https://gist.github.com/ericduran/742193/raw > ~/.gitconfig
curl -s https://gist.github.com/ericduran/5069301/raw > ~/.zshrc
curl -s https://gist.github.com/ericduran/5786967/raw > ~/.gitignore_global