Skip to content

Instantly share code, notes, and snippets.

View bcmiller's full-sized avatar

Bill C. Miller bcmiller

  • emortgagelogic.om
  • arlington, tx
View GitHub Profile
Jun 2 12:59:15 ip-172-19-125-2 drupal: http://10.10.210.201|1307037555|content|10.10.110.4|http://10.10.210.201/api/rest/node/171545||1|view|book: updated Send a broadcast message.
Jun 2 12:59:15 ip-172-19-125-2 drupal: http://10.10.210.201|1307037555|services|10.10.110.4|http://10.10.210.201/api/rest/node/171545||1||Array#012(#012 [values] => Array#012 (#012 [nid] => 171545#012 [vid] => 180165#012 [uid] => 1#012 [created] => 1305670099#012 [type] => book#012 [language] => en#012 [changed] => 1307036731#012 [title] => Send a broadcast message#012 [teaser_js] => #012 [teaser_include] => 1#012 [body] => #015#012#015#012As a group administrator, you can send one message to all of your group members at once using our Broadcast tool.#015#012#015#012Your message will be sent to your members via either email or SMS text. Each member decides the method that is best and most efficient fo
@bcmiller
bcmiller / bad-prod-events.txt
Created September 9, 2011 15:34
prod-bad-events
mysql> select n.nid,title,delta,field_date_value, from_unixtime(n.created) FROM content_type_vevent ctv LEFT JOIN content_field_date cfd ON ctv.nid = cfd.nid JOIN node n ON ctv.nid = n.nid WHERE field_date_value IS NULL AND n.nid IS NOT NULL;
+--------+----------------------------+-------+------------------+--------------------------+
| nid | title | delta | field_date_value | from_unixtime(n.created) |
+--------+----------------------------+-------+------------------+--------------------------+
| 137758 | @ Waukesha West | 0 | NULL | 2010-09-21 15:08:45 |
| 137778 | 18 White Practice | 0 | NULL | 2010-09-21 15:43:00 |
| 145088 | Tryout | 0 | NULL | 2010-10-07 16:29:42 |
| 145098 | Tryout | 0 | NULL | 2010-10-07 16:32:40 |
| 145328 | PTO Meeting | 0 | NULL | 2010-10-10 20:11:27 |
| 145338 | PTO Meeting
@bcmiller
bcmiller / purge-cache.sh
Created September 21, 2011 19:04 — forked from cosimo/purge-cache.sh
Script to purge varnish cache by URL, by regexp or all of it (for Debian)
#!/bin/sh
# purge-cache: Script to purge varnish cache. Defaults are defined in
# /etc/default/varnish.
#
# Cosimo <[email protected]>
# Based on reload-vcl, by Stig Sandbeck Mathisen <ssm at debian dot org>
# Settings
defaults=/etc/default/varnish
@bcmiller
bcmiller / nginx-oboe-build.txt
Created October 11, 2011 18:23
nginx-oboe-build
root@mercury:~/nginx/nginx-1.0.5# make clean
rm -rf Makefile objs
#cat doit.1.sh
./configure --add-module=/root/nginx/masterzen-nginx-upload-progress-module-8b55a34 \
--add-module=/root/nginx/nginx_oboe/ \
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_gzip_static_module --with-http_realip_module --with-mail --with-mail_ssl_module --with-ipv6
root@mercury:~/nginx/nginx-1.0.5# ./doit.1.sh
./doit.1.sh: line 1: 1: command not found
@bcmiller
bcmiller / nginx-oboe-build.txt
Created October 11, 2011 18:23
nginx-oboe-build
root@mercury:~/nginx/nginx-1.0.5# make clean
rm -rf Makefile objs
#cat doit.1.sh
./configure --add-module=/root/nginx/masterzen-nginx-upload-progress-module-8b55a34 \
--add-module=/root/nginx/nginx_oboe/ \
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_gzip_static_module --with-http_realip_module --with-mail --with-mail_ssl_module --with-ipv6
root@mercury:~/nginx/nginx-1.0.5# ./doit.1.sh
./doit.1.sh: line 1: 1: command not found
@bcmiller
bcmiller / statusbook-odd.txt
Created February 8, 2012 00:30
statusbook-odd.txt
$items['user/%/edit/preferences'] = array(
'title' => t('Site Preferences'),
'page callback' => 'statusbook_preferences',
@@ -338,9 +337,11 @@ function statusbook_user($op, $edit, &$account, $category =
break;
case 'load':
// add statusbook-specific information
- $SQL = "SELECT privacy_data FROM {statusbook_users} S WHERE uid = %s";
+ $SQL = "SELECT * FROM {statusbook_users} S WHERE uid = %s";
$record = db_fetch_object(db_query($SQL, $account->uid));
@bcmiller
bcmiller / features-revert-needed.txt
Created February 20, 2012 21:30
features-revert-needed opposed to features-revert-all change.
[email protected]:/mnt/apci/main/www/sites/all/modules/contrib/features# time drush -y frn
The following modules will be reverted: apci_profile_feature
Do you really want to continue? (y/n): y
Reverted variable. [ok]
Do you really want to revert variable? (y/n): y
real 2m30.873s
user 2m21.670s
sys 0m4.290s
[email protected]:/mnt/apci/main/www/sites/all/modules/contrib/features# time drush -y fra
@bcmiller
bcmiller / fixed-my-tab.txt
Created February 21, 2012 16:59
fixed-my-tab issyue
[email protected]:/mnt/apci/main# git commit -m 'tab fred'
Error: This commit would contain a tab, which is against this repo's policy.
If you know what you are doing you can force this commit with:
git commit --no-verify
Or change the repo policy like so:
git config hooks.allowtabs true
@bcmiller
bcmiller / apci_brochure-update.txt
Created February 24, 2012 16:23
apci_brochure-Update
Executing apci_brochure_update_6003 [success]
array_merge(): Argument #2 is not an array FeedsConfigurable.inc:127 [warning]
array_intersect_key(): Argument #1 is not an array [warning]
FeedsConfigurable.inc:129
Contact Us webform updated. [success]
Executing apci_brochure_update_6003 [success]
array_merge(): Argument #2 is not an array FeedsConfigurable.inc:127 [warning]
array_intersect_key(): Argument #1 is not an array [warning]
FeedsConfigurable.inc:129
Contact Us webform updated. [success]
@bcmiller
bcmiller / update-db-run.txt
Created February 27, 2012 14:12
update-db-run
root@pdup-ap:/mnt/apci/main/www/sites/all/modules/allplayers/apci_user# ls -atl /usr/lib/php5/20090626/oboe.so
-rw-r--r-- 1 root root 102920 2011-12-02 16:37 /usr/lib/php5/20090626/oboe.so
root@pdup-ap:/mnt/apci/main/www/sites/all/modules/allplayers/apci_user# drush -y updatedb
The following updates are pending:
comment module
6004 - Add index to to node_comment_statistics on comment_count
6005 - Add indices to uid fields.