This file contains hidden or 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
Grab the 'PHP Remote Debugging Client' (the pre-complied xdebug binary for OSX) from here: | |
http://code.activestate.com/komodo/remotedebugging/ | |
Unzip it, find the folder that corresponds to the version of PHP you want to install it for and copy the xdebug.so file from there into your php extensions folder in the relevant PHP version directory. E.g. for PHP 5.4: | |
/Applications/AMPSS/php-5.4/lib/extensions/ext/ | |
Now open PHP.ini in a text editor: | |
/Applications/AMPSS/php-5.4/etc/php.ini |
This file contains hidden or 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
# Use PHP5 as default | |
AddHandler application/x-httpd-php5 .php | |
# 5G BLACKLIST/FIREWALL (2013) | |
# @ http://perishablepress.com/5g-blacklist-2013/ | |
# 5G:[QUERY STRINGS] | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / |
This file contains hidden or 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
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}' |
This file contains hidden or 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
// Constants causing serious damage (application *states* are never constant): | |
DOING_AJAX | |
DOING_AUTOSAVE | |
DOING_CRON | |
IFRAME_REQUEST | |
IS_PROFILE_PAGE | |
WP_ADMIN | |
WP_BLOG_ADMIN | |
WP_IMPORTING |
This file contains hidden or 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 | |
namespace Insig\UtilBundle\Validator\Constraints; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* Metadata for the UpcEanValidator. | |
* | |
* @Annotation |
This file contains hidden or 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
// Notes on how to extend [postman](http://www.getpostman.com/) to support | |
// sharing small util scripts, like fabric tasks, along with a collection | |
// so we have repeatables/easy access for non-tech folks. | |
// | |
// How to extend schema? Build on collection or a new ground up like | |
// environments? Struct looks something like: | |
var scripts = [ | |
{ | |
"name": "Continuous Health Check", | |
"description": "Runs health-check every 60 seconds and logs result", |
This file contains hidden or 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
# Install `dnsmasq` and configure for *.test domains | |
$ brew install dnsmasq | |
$ vim /usr/local/etc/dnsmasq.conf | |
# Reload configuration and clear cache | |
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ dscacheutil -flushcache |
This file contains hidden or 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 | |
######################################################## | |
# | |
# MODX (modx.com) CLI updater | |
# Kreuder 20140308 [email protected] | |
# | |
######################################################## | |
# | |
# Description: perform a MODX Basic Upgrade via CLI. | |
# |
This file contains hidden or 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
$ dpkg --get-selections | grep -v deinstall | |
acpid install | |
adduser install | |
anacron install | |
apache2-mpm-prefork install | |
apache2-utils install | |
apache2.2-bin install | |
apache2.2-common install | |
apt install |
This file contains hidden or 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
ProcessWire Webpage Workflow | |
1. Setup v-hosts, database and install processwire (usually fixate's boilerplate generator) | |
a. the generator already does bower install. | |
2. Determine project structure and install all required modules. | |
3. Setup all required fields and templates in PW admin. | |
4. Program the logic of the web page. All php that handles dynamic data. Site specific and contact controller. | |
5. Use styleguide to program initial css. | |
6. Program site css that was not done in styleguide. | |
7. finalize by adding javascripts that are used. |