This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Fallback for Google Pagespeed sharding. | |
* | |
* Presumptions: | |
* Pagespeed sharding is on. | |
* This javascript is included at the bottom of the body (or there-abouts). | |
* The website in question includes jQuery on this page. | |
* Pagespeed is sharding the jQuery javascript (it isn't being loaded externally). | |
* If the user cannot get one of the shard subdomains, they cannot get them all. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (typeof jQuery == 'undefined'){ | |
console.log('Filterizer: Cannot be ran. jQuery is not loaded yet.'); | |
} else { | |
(function($) { | |
$(document).ready(function(){ | |
var attempt_time = 10, // amount of time to keep trying in seconds | |
interval_ms = 150, // how frequently to attempt in ms | |
elapsed_time = 0, // elapsed time in ms | |
interval = setInterval(function(){ | |
elapsed_time += interval_ms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Cloud Hooks: code-deploy, code-update, db-copy, web-activate | |
# Essentially any time code or db changes are made. | |
# | |
# Purges Varnish cache for all .com domains assigned to the environment in Acquia Cloud. | |
site="$1" | |
target_env="$2" | |
drush_alias=$site'.'$target_env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Runs an acquia task, and waits for the task to complete before continuing. | |
# This is a helper script, to be used in others as needed. | |
if [[ $1 = "" ]] || [[ $2 = "" ]] | |
then | |
echo "Runs an acquia drush command, waiting for the results before continuing." | |
echo "Can be used as a replacement for drush." | |
echo | |
echo " Usage: $0 <site-alias> <ac-drush-command>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncaught TypeError: Cannot read property 'fields' of undefined | |
$.fn.addressfield.apply | |
(anonymous function) | |
f.event.dispatch | |
f.event.add.h.handle.i | |
f.event.trigger | |
(anonymous function) | |
e.extend.each | |
e.fn.e.each | |
f.fn.extend.trigger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Safely track outbound links in Google Analytics using jQuery | |
*/ | |
(function($) { | |
"use strict"; | |
// Wait till the dom has loaded | |
$(document).ready(function(){ | |
// Current page host | |
var host = window.location.host; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Retrieves past and present logs for a site in Acquia Enterprise | |
# Put this in your /usr/local/bin folder and chmod it 0755 | |
# Then you can search/view logs quickly from any terminal | |
if [ "$1" = "" ] || [ "$2" = "" ] | |
then | |
echo "Retrieves past and present logs for a site in Acquia Enterprise" | |
echo "Usage: $0 <site-alias> <site-environment>" | |
echo "Example: $0 qrk test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Linkedin auto-connect thingy. | |
* | |
* Step 1) Log in to Linkedin and go to https://www.linkedin.com/people/pymk | |
* (This is the "People You May Know page") | |
* Step 2) Open your browser console and run this javascript. | |
*/ | |
(function($) { | |
var processedCards = []; | |
var lih = function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Installs: | |
# Iterm2 | |
# Powerline fonts (for Menlo) | |
# Material Design (color scheme) | |
# Fish | |
# Oh-my-fish | |
# Agnoster theme (works well with Material) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
cf_user=<inset your email address here> | |
cf_token=<inset your api token here> | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' | |
if [ -z $1 ] |