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
@bcmiller
bcmiller / home-page-diff.txt
Created March 2, 2012 13:31
home page diff
root@mercury:/tmp# diff index.html.1 index.html
90c90
< </ul></div><input type="hidden" name="form_build_id" id="form-40645ca510fc3e6adb6c4b4c7a96217d" value="form-40645ca510fc3e6adb6c4b4c7a96217d" />
---
> </ul></div><input type="hidden" name="form_build_id" id="form-a84df0483f9de9081b65791f36b1f91d" value="form-a84df0483f9de9081b65791f36b1f91d" />
162c162
< <input type="hidden" name="name" id="edit-name-1" value="QL7pMnQS2b" />
---
> <input type="hidden" name="name" id="edit-name-1" value="YnyACzdXgQ" />
164c164
@bcmiller
bcmiller / node-rev
Created February 28, 2012 20:04
node-rev
mysql> select * from uuid_node where nid=2457738;
Empty set (0.00 sec)
mysql> select * from uuid_node_revisions where nid=2457738;
Empty set (0.05 sec)
mysql> select nid,from_unixtime(changed) from node where nid=2457738;+---------+------------------------+
| nid | from_unixtime(changed) |
+---------+------------------------+
| 2457738 | 2012-02-27 16:14:42 |
@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.
@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 / fixed-my-tab.txt
Created February 21, 2012 16:59
fixed-my-tab issyue
root@a.bcmiller.allplayers.com:/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 / features-revert-needed.txt
Created February 20, 2012 21:30
features-revert-needed opposed to features-revert-all change.
root@a.bcmiller.allplayers.com:/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
root@a.bcmiller.allplayers.com:/mnt/apci/main/www/sites/all/modules/contrib/features# time drush -y fra
@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 / 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 / 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 <cosimo@cpan.org>
# Based on reload-vcl, by Stig Sandbeck Mathisen <ssm at debian dot org>
# Settings
defaults=/etc/default/varnish