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 / new_gist_file_0
Created February 26, 2014 18:40
Being scanned for vulnerabilities.
[Sun Feb 09 23:51:00 2014] [error] [client 221.204.213.194] File does not exist: /Applications/MAMP/htdocs/phpTest
[Sun Feb 09 23:51:02 2014] [error] [client 221.204.213.194] client denied by server configuration: /Library/Application Support/appsolute/MAMP PRO/phpMyAdmin/scripts
[Sun Feb 09 23:51:03 2014] [error] [client 221.204.213.194] File does not exist: /Applications/MAMP/htdocs/pma
[Sun Feb 09 23:51:04 2014] [error] [client 221.204.213.194] File does not exist: /Applications/MAMP/htdocs/myadmin
[Mon Feb 10 00:41:35 2014] [error] [client 125.210.64.19] File does not exist: /Applications/MAMP/htdocs/w00tw00t.at.blackhats.romanian.anti-sec:)
[Mon Feb 10 00:41:39 2014] [error] [client 125.210.64.19] client denied by server configuration: /Library/Application Support/appsolute/MAMP PRO/phpMyAdmin/scripts
[Mon Feb 10 00:41:42 2014] [error] [client 125.210.64.19] File does not exist: /Applications/MAMP/htdocs/phpmyadmin
[Mon Feb 10 00:41:44 2014] [error] [client 125.210.64.19] File does not exist: /Applicatio
@zachharkey
zachharkey / gist:9382987
Last active August 29, 2015 13:57
Trying to understand syntax highlighting inconsistencies in Marked.app

Lets see how this works

Let's look at a few lines from my terminal as an example.

Here is what they look like if I simply indent the block of text without any code fence or anything.

~/Sites/d7sandbox1/sites/all/themes $ rm -R mybrokentheme
~/Sites/d7sandbox1/sites/all/themes $ drush vset -y theme_default bartik

Sweet. No syntax coloring. This is how it should be.

# 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
{
@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:

@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 / 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

@mixin coverer($position: absolute) {
position: $position;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
@mixin centerer($position: absolute) {
position: $position;
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

@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 / smashing-specs-response.md
Last active August 29, 2015 14:07
Response to Smashing Magazine article