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
| # Load common, useful tasks from Chef. | |
| # rake -T to see the tasks this loads. | |
| load 'chef/tasks/chef_repo.rake' | |
| desc "Upload everything!?! Ok, just cookbooks, databags and roles, what about environments?" | |
| task :upload_all => [ :metadata ] | |
| task :upload_all do | |
| # Upload cookbooks | |
| Rake::Task['upload_cookbooks'].execute |
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 this file to store the commands used to bring up running sites. | |
| # rake create_site:dev | |
| namespace :create_site do | |
| desc "Upload a single databag" | |
| task :dev do | |
| system "knife ec2 server create \ | |
| -G default \ | |
| -I ami-7000f019 \ | |
| -f m1.small \ |
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
| SELECT DISTINCT(users.uid) AS uid | |
| , og_uid.created AS og_uid_created | |
| FROM users users LEFT JOIN og_uid og_uid ON users.uid = og_uid.uid | |
| WHERE og_uid.nid IN (127998, 128028, 196548, 196558, 196538, 196528, 196568, 128018, 128098, 128068, 128088, 128078, 128058, 128038); |
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
| Glenn-Pratts-MacBook-Pro in ~ | |
| ○ → sudo gem install plist | |
| Fetching: plist-3.1.0.gem (100%) | |
| Successfully installed plist-3.1.0 | |
| 1 gem installed | |
| Installing ri documentation for plist-3.1.0... | |
| Installing RDoc documentation for plist-3.1.0... | |
| Glenn-Pratts-MacBook-Pro in ~ | |
| ○ → irb |
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
| Glenn-Pratts-MacBook-Pro in /srv/store/current/www/profiles/apci_store | |
| ± |group_sync ✗| → drush cc all | |
| Invalid argument supplied for foreach() field.info.inc:215 [warning] | |
| Invalid argument supplied for foreach() field.info.inc:215 [warning] | |
| Invalid argument supplied for foreach() field.info.inc:215 [warning] | |
| Invalid argument supplied for foreach() field.info.inc:215 [warning] | |
| array_keys() expects parameter 1 to be array, null given field.info.inc:306 [warning] | |
| array_merge(): Argument #2 is not an array field.info.inc:306 [warning] | |
| Invalid argument supplied for foreach() field.module:661 |
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
| projects[views][type] = "module" | |
| projects[views][subdir] = contrib | |
| projects[views][download][type] = "git" | |
| projects[views][download][url] = "http://git.drupal.org/project/views.git" | |
| projects[views][download][revision] = "5854b366268b6ba644109ec334e50c483d7c693f" | |
| projects[views][patch][] = "http://drupal.org/files/issues/789674-11_vocabulary_module.patch" | |
| projects[views][patch][] = "http://drupal.org/files/issues/76a09a7293a3089ff685402f695939d66ec989e6_d6.patch" | |
| projects[views][patch][] = "http://drupal.org/files/issues/1108040-notice-argument_convert-node_0.patch" | |
| projects[views][patch][] = "http://drupal.org/files/issues/fix_invalid_argument_for_foreach-1224730-2.patch" | |
| projects[views][patch][] = "http://drupalcode.org/project/views.git/patch/c222f619ebd12e381e9f4729f56585b0aa55c0a3" |
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 | |
| global $user; | |
| // Create a file object. | |
| $file = new stdClass(); | |
| $file->fid = NULL; | |
| $file->uri = 'https://www.allplayers.local/g/low_level_group_2b/sites/default/files/imagecache/profile_normal/sites/all/modules/apci_features/apci_defaults/group-icon.png'; | |
| $url_parts = parse_url($file->uri); | |
| $file->filename = basename($url_parts['path']); | |
| $file->filemime = file_get_mimetype($file->uri); |
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
| top - 00:45:34 up 6 days, 16:23, 1 user, load average: 17.84, 11.19, 6.32 | |
| Tasks: 166 total, 2 running, 164 sleeping, 0 stopped, 0 zombie | |
| Cpu(s): 1.3%us, 19.1%sy, 0.0%ni, 46.7%id, 28.0%wa, 0.0%hi, 0.0%si, 4.8%st | |
| Mem: 15728868k total, 15652152k used, 76716k free, 232k buffers | |
| Swap: 20971512k total, 20971512k used, 0k free, 56436k cached | |
| PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
| 43 root 20 0 0 0 0 D 18 0.0 5:12.16 kswapd0 | |
| 2260 root 20 0 32.3g 14g 68 D 11 94.9 7:29.38 emacs | |
| 872 syslog 20 0 191m 1156 80 S 2 0.0 5:28.07 rsyslogd |
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
| WD php: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uuid' in 'where clause': SELECT t.cid AS cid [error] | |
| FROM | |
| {comment} t | |
| WHERE ( (uuid = :db_condition_placeholder_0) OR (uuid IS NULL ) ); Array | |
| ( | |
| [:db_condition_placeholder_0] => | |
| ) | |
| in _uuid_sync_table() (line 116 of /srv/store/current/www/profiles/apci_store/modules/contrib/uuid/uuid.module). | |
| Cannot modify header information - headers already sent by (output started at /usr/local/lib/drush/includes/drush.inc:917) bootstrap.inc:1207 [warning] | |
| PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uuid' in 'where clause': SELECT t.cid AS cid |
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
| root@mercury:/mnt/apci/main/bin/drush# git show HEAD | |
| commit a901da7c85940720c1d524b2eccc84300a74901d | |
| Author: Christopher Gervais <chris@ergonlogic.com> | |
| Date: Mon Sep 12 09:19:26 2011 -0400 | |
| Issue #1214216 by ergonlogic: Use per-user directory (/home/ergonlogic/.drush) instead of global directory when latter is not writable | |
| diff --git a/commands/pm/pm.drush.inc b/commands/pm/pm.drush.inc | |
| index 8a9573c..a564881 100644 | |
| --- a/commands/pm/pm.drush.inc |