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
fastcgi_param QUERY_STRING $query_string; | |
fastcgi_param REQUEST_METHOD $request_method; | |
fastcgi_param CONTENT_TYPE $content_type; | |
fastcgi_param CONTENT_LENGTH $content_length; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
fastcgi_param REQUEST_URI $request_uri; | |
fastcgi_param DOCUMENT_URI $document_uri; | |
fastcgi_param DOCUMENT_ROOT $document_root; |
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 -a | |
Interactive shell | |
php > $date = new DateTime('now'); | |
php > $timestamp = $date->format('U'); | |
php > var_dump($timestamp); | |
string(10) "1307626589" | |
php > $timestamp = $date->getTimestamp(); | |
php > var_dump($timestamp); | |
int(1307626589) |
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
if (![2,3].include? location['province'].length) | |
raise 'Invalid State/Province Code. Must be 2 or 3 char. See Drupal location.module' | |
else |
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
# Generate a password meeting policy standards. | |
pass = ((0...8).map{ (('a'..'z').to_a + ('A'..'Z').to_a + ('2'..'9').to_a)[rand(60)] } + (0...2).map{ (('a'..'z').to_a)[rand(26)] } + (0...2).map{ (('A'..'Z').to_a)[rand(26)] } + (0...2).map{ (('2'..'9').to_a)[rand(8)] } + (0...2).map{ (['!','$','&','@'])[rand(4)] }).shuffle.join |
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
require 'json' | |
# User information for ec2 key pair. | |
set :user, 'ubuntu' | |
ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "devallplayerscom.pem")] | |
# Get app server nodes in this environment. | |
data = JSON.parse(`knife search node "chef_environment:dev AND tags:app" -F json -a cloud.public_hostname`) | |
app_servers = [] | |
data['rows'].each {|row| app_servers << row['cloud.public_hostname']} |
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
[Thu, 28 Jul 2011 13:17:22 -0500] DEBUG: template[/etc/memcached.conf] content has not changed. | |
[Thu, 28 Jul 2011 13:17:22 -0500] DEBUG: Processing package[imagemagick] on vagrantup.com | |
[Thu, 28 Jul 2011 13:17:22 -0500] INFO: Processing package[imagemagick] action install (imagemagick::default line 24) | |
[Thu, 28 Jul 2011 13:17:22 -0500] DEBUG: Checking package status for imagemagick | |
[Thu, 28 Jul 2011 13:17:22 -0500] DEBUG: sh(aptitude show imagemagick) | |
Package: imagemagick | |
New: yes | |
State: not installed | |
Version: 7:6.5.7.8-1ubuntu1.1 | |
Priority: optional |
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
diff --git a/www/modules/user/user.pages.inc b/www/modules/user/user.pages.inc | |
index 748f08c..e5f7e5b 100644 | |
--- a/www/modules/user/user.pages.inc | |
+++ b/www/modules/user/user.pages.inc | |
@@ -293,10 +293,6 @@ function user_profile_form_submit($form, &$form_state) { | |
// Clear the page cache because pages can contain usernames and/or profile information: | |
cache_clear_all(); | |
- if (user_access('select different theme')) { | |
- // This prevents the system theme from getting corrupted. |
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 | |
if ($rc != 'local') { | |
// Need SauceLabs PEAR. | |
include_once 'PHPUnit/Extensions/SeleniumTestCase/SauceOnDemandTestCase.php'; | |
class SeleniumWrapper extends PHPUnit_Extensions_SeleniumTestCase_SauceOnDemandTestCase { | |
// @TODO - Allow this list to be configured. | |
public static $browsers = array( | |
array( |
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
{ | |
"name:": "gpratt_mbp", | |
"role": "drupal_database_master", | |
"chef_environment": "_default", | |
"fqdn": "10.234.90.1" | |
} |