Skip to content

Instantly share code, notes, and snippets.

Avatar

Walker walker

  • Saint Louis, MO
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am walker on github.
  • I am walker (https://keybase.io/walker) on keybase.
  • I have a public key whose fingerprint is B77A 3F90 D1F8 5729 601A D265 1B1C 6FF8 B5BF A8DB

To claim this, I am signing this object:

View boundless-exchange-install-v1.1.md

Configuration

The installation is a two virtual machine setup.

  • Virtual Machine 1 (Applications)
  • Virtual Machine 2 (Services)

Disable the Red Hat Base repository

subscription-manager config --rhsm.manage_repos=0
service rhsmcertd stop
View Track Outbound Link
View bsd_spud_helper.js
// SPUD HELPER
function getUniversalProfile(cb) {
var bsd_fields = ['firstname', 'lastname', 'email', 'phone', 'addr1', 'addr2', 'city', 'state_cd', 'zip'];
bQuery.bsd.spud(
'get',
bsd_fields,
{
View keybase.md

Keybase proof

I hereby claim:

  • I am walker on github.
  • I am walker (https://keybase.io/walker) on keybase.
  • I have a public key whose fingerprint is B77A 3F90 D1F8 5729 601A D265 1B1C 6FF8 B5BF A8DB

To claim this, I am signing this object:

View Validate Uniqueness - CakePHP Model
/**
* Checks that a value is unique
*
* @param string $check Value to check
* @param string $field Field to check for value
* @return boolean Success
* @access public
*/
function _isUnique($check, $field) {
$conditions = array();
View Use mod_deflate on certain files
<FilesMatch "\\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
View Expire certain mime types later or earlier
ExpiresActive On
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
View mod_gzip for htaccess
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>