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
<?php | |
/* | |
Plugin Name: FD WP Migrate DB Pro Tweaks | |
Plugin URI: https://gist.github.com/heyfletch/7c563c418cc23b224af161eb5baea408 | |
Description: Migration tweaks when running WP Migrate DB Pro | |
Author: Delicious Brains, Fletcher Digital | |
Version: 0.2.1 | |
Author URI: https://github.com/deliciousbrains/wp-migrate-db-pro-tweaks | |
*/ |
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
/******************************************************************************* | |
* Description: | |
* | |
* Gulp file to push changes to remote servers (eg: staging/production) | |
* | |
* Usage: | |
* | |
* gulp deploy --target | |
* | |
* Examples: |
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
body { | |
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
font-weight: 300; | |
} |
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
/* Stylish Chrome Extension: | |
* https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe | |
*/ | |
#ad, | |
#promotions_feature_div, | |
#sponsored-products-dp_feature_div, | |
#dp-ads-middle_feature_div, | |
#detail-ilm_div, | |
#heroQuickPromo_feature_div { |
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
<a class="highlight" href="#myIDorClass">AnchorText</a> | |
<script> | |
jQuery(".highlight").on("click", function(){ | |
jQuery("#myIDorClass").css({'background':'yellow'}); | |
}); | |
</script> |
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
<reference name="head"> | |
<action method="addJs"><script>temgra/colorCustomOptions.js</script></action> | |
<action method="addItem"><type>skin_css</type><name>css/colorCustomOptions.css</name></action> | |
</reference> | |
<reference name="content"> | |
<remove name="product.info.addto" /><!-- optional --> | |
</reference> | |
<reference name="product.info"> | |
<action method="setTemplate"><template>catalog/product/view-custom.phtml</template></action> | |
</reference> |
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
function findit() { | |
{ mlfind . -iname "*$1*"; | |
grep -irl "$1" . | |
} | sort -u | |
} | |
export -f findit | |
# Returns a list of filepaths where the key phrase occurs. | |
# Case insensitive | |
# Usage: |
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
<?php | |
$check = $this->checkStatus(); | |
$auto = (($check === 1) OR ($check === 3)); | |
?> | |
<script type="text/javascript"> | |
addSubscribeToPost = function (element) | |
{ | |
if($('magemonkey-subscribe')) | |
{ | |
$('magemonkey-subscribe').remove(); |
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/sh | |
# Modified from: https://coderwall.com/p/r7yh6g/create-a-new-gitlab-repo-from-the-command-line | |
# to use: | |
## Setup script locally: | |
# download gist (use this node helper: https://www.npmjs.com/package/download-gist) | |
# dg af568a27686e560de21d | |
# First, replace MyGitlabToken from https://gitlab.com/profile/account | |
# chmod +x gitlab-init-remote |
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 | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro | |
# | |
WP_OWNER=web # -- wordpress owner | |
WP_GROUP=www-data # -- wordpress group | |
WP_ROOT=/srv/www/webproguru/project/web # -- wordpress root directory |