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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_URI} !^/index\.html$ | |
RewriteRule ^(.*)$ https://drupal.org/index.html [R=307,L] |
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
d.o users as of nowish | |
mysql> select count(1), status, length(login) from users group by status, length(login); | |
+----------+--------+---------------+ | |
| count(1) | status | length(login) | | |
+----------+--------+---------------+ | |
| 7062 | 0 | 1 | | |
| 86379 | 0 | 10 | | |
| 483270 | 1 | 1 | | |
| 1000229 | 1 | 10 | | |
+----------+--------+---------------+ |
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
date | |
/usr/bin/drush @cap.l sql-drop -y | |
bunzip2 -c /Users/greggles/db/card_db_backups/card.prod_backup_post_sanitize_latest.sql.bz2 | /usr/bin/drush @cap.l sqlc | |
compass compile /Users/greggles/workspace/cap/sites/all/themes/atelerix/ | |
/usr/bin/drush @cap.l cc all | |
/usr/bin/drush @cap.l dis -y paranoia | |
/usr/bin/drush @cap.l php-eval "user_role_grant_permissions(1, array('access devel information'));" | |
/usr/bin/drush @cap.l php-eval "user_role_grant_permissions(2, array('access devel information'));" | |
/usr/bin/drush @cap.l updb -y | |
date |
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
date | |
/usr/bin/drush @cap.l sql-drop -y | |
bunzip2 -c /Users/greggles/db/card_db_backups/card.prod_backup_post_sanitize_latest.sql.bz2 | /usr/bin/drush @cap.l sqlc | |
compass compile /Users/greggles/workspace/cap/sites/all/themes/atelerix/ | |
/usr/bin/drush @cap.l cc all | |
/usr/bin/drush @cap.l dis -y paranoia | |
/usr/bin/drush @cap.l php-eval "user_role_grant_permissions(1, array('access devel information'));" | |
/usr/bin/drush @cap.l php-eval "user_role_grant_permissions(2, array('access devel information'));" | |
/usr/bin/drush @cap.l updb -y | |
date |
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
4889 0 | |
1343 1 | |
2909 2 | |
5251 3 | |
730 4 | |
1392 5 | |
907 6 | |
720 7 | |
653 8 | |
294 9 |
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 CONCAT(table_schema, '.', table_name), CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows, CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA, CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx, CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size, ROUND(index_length / data_length, 2) idxfrac FROM information_schema.TABLES ORDER BY data_length + index_length DESC LIMIT 10; |
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
date | |
/usr/bin/drush @cap.l sql-drop -y | |
bunzip2 -c /Users/greggles/db/card_db_backups/card.prod_backup_post_sanitize_latest.sql.bz2 | /usr/bin/drush @cap.l sqlc | |
compass compile /Users/greggles/workspace/cap/sites/all/themes/atelerix/ | |
/usr/bin/drush @cap.l cc all | |
/usr/bin/drush @cap.l dis -y paranoia | |
/usr/bin/drush @cap.l php-eval "user_role_grant_permissions(1, array('access devel information'));" | |
/usr/bin/drush @cap.l php-eval "user_role_grant_permissions(2, array('access devel information'));" | |
/usr/bin/drush @cap.l updb -y | |
date |
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
+--------+--------+----------------------------+ | |
| status | weight | name | | |
+--------+--------+----------------------------+ | |
| 1 | 3 | project_verify_package | | |
| 1 | 3 | project_package | | |
| 1 | 2 | project | | |
| 1 | 2 | project_release | | |
| 1 | 0 | project_usage | | |
| 1 | 0 | project_dependency | | |
| 1 | 0 | project_git_instructions | |
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 | |
function project_issue_preprocess_page(&$vars) { | |
if (isset($vars['node']) && ($vars['node']->type == 'project_issue')) { | |
$vars['head_title'] = '#' . $vars['node']->nid . ': ' . $vars['head_title']; | |
} | |
} |
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 | |
function monkey_add_origin($request) { | |
$request->top('MonkeyXMLRequest') | |
->append('<Origin></Origin>') | |
->children('Origin') | |
->append('<OriginType>ExtAPI</OriginType>'); | |
} | |
// What's the new way of doing this? |