Skip to content

Instantly share code, notes, and snippets.

View zachharkey's full-sized avatar

Zach Harkey zachharkey

  • Harkey Design
  • Deep South
View GitHub Profile
@zachharkey
zachharkey / plaeholder-social-media-icons.html
Created August 27, 2014 17:44
Placeholder social media images
<img src="http://placehold.it/50x50/333333/dddddd&text=F" alt="F" width="50" height="50" />
<img src="http://placehold.it/50x50/333333/dddddd&text=T" alt="T" width="50" height="50" />
<img src="http://placehold.it/50x50/333333/dddddd&text=P" alt="P" width="50" height="50" />
<img src="http://placehold.it/50x50/333333/dddddd&text=Y" alt="Y" width="50" height="50" />
@zachharkey
zachharkey / drupal-stackexchange-126522.md
Created August 15, 2014 06:57
Debugging drush archive-dump settings.md

The Full Test Setup

I created a brand new default Drupal 7 website and I added the following additional test files which match my exclude patterns and therefore be excluded from the archive dumps:

$ cd ~/Sites/example.com/public_html  

Here is the exact alias record from ~/.drush/aliases.drushrc.php

$aliases['example.com'] = array(

'uri' => 'example.com',

Group Domain First Appearance
ShinRa Mako Reactors FFVII
Moogles MogNet FFIII
Vana'diel Chocobo Society Chocobo Raising FFXI:TOAU

Apple : Pomaceous fruit of plants of the genus Malus in

@mixin coverer($position: absolute) {
position: $position;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
@mixin centerer($position: absolute) {
position: $position;
@zachharkey
zachharkey / new_gist_file_0
Created June 11, 2014 00:19
Use drush to save a list of all enabled non-core modules to a text file, then disable/re-enable all modules on that list
#
drush pml --no-core --type=module --status=enabled --pipe > modules.txt
cat modules.txt | xargs drush -y dis
cat modules.txt | xargs drush -y en
@zachharkey
zachharkey / gist:9901836
Last active August 29, 2015 13:57
Troubleshooting drush sql-sync issues with D6

1. Drush sql-sync problem

First nightmare was caused when I tried to run drush rsync and drush sql-sync between two mismatched versions of Drupal.

      drush sql-sync -v --no-cache -y  @hdchd.he245 @hdchd.xulu 
      drush rsync -v -y @hdchd.he245 @hdchd.xulu 

sql-sync kept failing with the following error:

drush --all 2>&1 Error: no database record could be found for target

@zachharkey
zachharkey / SassMeister-input-HTML.html
Created March 19, 2014 19:53
Generated by SassMeister.com.
<div class="payment-methods">
<span class="pay pay--2co"></span>
<span class="pay pay--ach"></span>
<span class="pay pay--american-express"></span>
<span class="pay pay--cirrus"></span>
<span class="pay pay--delta"></span>
<span class="pay pay--diners-club"></span>
<span class="pay pay--direct-debit"></span>
<span class="pay pay--discover"></span>
<span class="pay pay--jcb"></span>
@zachharkey
zachharkey / README.md
Last active August 29, 2015 13:57
Drupal Commerce Custom Payment Methods Block

Code for use with the free Lovicons Payment Card Glyphs Icon Set

This icon set contains 18 free vector glyphs for most popular payment methods: Visa, Visa Electron, Western Union, 2CO, American Express and others.

Here is some HTML and CSS to use:

Styling the Drupal Commerce Shopping Cart Block

This block is provided by a view. Note how the markup changes when cart is empty vs not empty. This stuff is very tricky to style.

Cart Empty

<div id="block-views-shopping-cart-zz-block" class="block block-views contextual-links-region">
# Get Sublime Text to use your rvm ruby without hardcoding a `$USER`.
#
# Include the configurations below the commend in the appropriate file listed below:
#
# - OS X ST2: ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build
# - OS X ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build
# - Linux ST2: ~/.config/sublime-text-2/Packages/Ruby/Ruby.sublime-build
# - Linux ST3: ~/.config/sublime-text-3/Packages/User/Ruby.sublime-build
{