- Credentials for site admin
- Credentials for hosting environment
- Credentials for domain registration & DNS
- Admin access to any site analytics platforms
- If the code is in version control, copy of full repository including metadata (so we can preserve commit history)
- Explanation of how code is currently deployed to the server, including a copy of any scripts used
- License keys & registration information for any platform third-party modules purchased
- Any code or architecture documentation
- List of any known outstanding defects or maintenance improvements needed
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
font-family: helvetica, sans-serif; | |
margin: 0; | |
} | |
p { | |
margin: 0 0 1em; | |
} |
<?php | |
class Foo extends Exception {} | |
class Bar extends Exception {} | |
class Baz extends Exception {} | |
try { | |
throw new Foo(); | |
} catch (Exception $e) { | |
switch (get_class($e)) { | |
case 'Foo': |
<?php | |
class Example { | |
protected $_defaultItemKey; | |
protected $_items; | |
// BUG: forces a zero-base reindex when default item is added to front of array | |
public function __construct($defaultItem) { | |
// Pretend these are loaded from the database | |
$this->_items = [ |
javascript:open('https://www.google.com/webhp?#q=set+a+reminder','targetname','height=480,width=980'); |
#!/bin/sh | |
# Execute git commands passed on command line as whatever user owns the current Git repository. | |
# Script can be substituted 1:1 for git in commands. | |
# Available under the MIT license. | |
sudo -u $(stat -c %U $(git rev-parse --git-dir)) git "$@" |
#!/bin/sh | |
for FILE in `git diff --cached --name-only` ; do | |
# Check if the file contains 'debugger' | |
grep -qE '^[ \t]*xdebug_break()' $FILE | |
if [[ $? -eq 0 ]] | |
then | |
echo $FILE ' contains xdebug_break()! To commit retry with --no-verify' | |
exit 1 | |
fi |
Component Library Generators for Existing Sites
Goal
Identify a tool for generating a living component/pattern library that can be integrated alongside a pre-existing code base. Ideally should be able to generate static HTML as part of a Grunt/Gulp job.
Finalists
#!/bin/bash | |
# Settings | |
SUFFIX=alt | |
MAGERUNCMD=magerun | |
# Sanity Checks | |
type $MAGERUNCMD >/dev/null 2>&1 || { | |
echo "ERROR: This script requires the command '$MAGERUNCMD' to be executable in the current path." | |
exit |
The WooCommerce Authorize.net DPM plugin (v.1.8.0) has a bug in the SHA2 response calculation, causing the following error to appear to customers when they enter invalid credit card information (as well as an email to the merchant admin email):
An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.
As a quick fix, open the file class-wc-authorize-net-relay-response-handler.php
and search for this bit of code:
! empty( $data[ $hash_field ] )
And replace with this: