Skip to content

Instantly share code, notes, and snippets.

View filler's full-sized avatar

Nick Silkey filler

View GitHub Profile
@filler
filler / gist:917724
Created April 13, 2011 15:17
sqlite atop netapp nfs does puke
[root@vm-pkgdevyum-01 yale.foo]# createrepo -d /data02/pkgdev01/pkg/yale.foo/
55/55 - php-pear-1.8.1-2.el5.noarch.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
(process:19846): GLib-CRITICAL **: g_timer_stop: assertion `timer != NULL' failed
(process:19846): GLib-CRITICAL **: g_timer_destroy: assertion `timer != NULL' failed
Traceback (most recent call last):
@filler
filler / gist:934414
Created April 21, 2011 12:48
dazed and confused centos xen dom0 kernel? o_O
[silkey@deadbeef ~]$ dmesg | tail -5
usb 2-2: USB disconnect, address 2
usb 2-2.1: USB disconnect, address 3
Uhhuh. NMI received for unknown reason 00 on CPU 0.
Do you have a strange power saving mode enabled?
Dazed and confused, but trying to continue
[silkey@deadbeef ~]$ uname -a
Linux deadbeef.its.yale.edu 2.6.18-194.32.1.el5xen #1 SMP Wed Jan 5 19:32:33 EST 2011 i686 i686 i386 GNU/Linux
[silkey@deadbeef ~]$ cat /etc/redhat-release
CentOS release 5.6 (Final)
@filler
filler / gist:969306
Created May 12, 2011 19:52
cherrypy anger via filelocker
ERROR:root:[system] [getUser] [Unable to get user: cannot import name pluginPackagePaths]
ERROR:cherrypy.error.203834704:[12/May/2011:15:51:25] Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cprequest.py", line 98, in run
hook()
File "/usr/lib/python2.4/site-packages/cherrypy/_cprequest.py", line 58, in __call__
return self.callback(**self.kwargs)
File "webFilelocker2.py", line 105, in requires_login
currentUser = fl.get_user(userId, True)
File "/opt/filelocker-trunk/core/Filelocker.py", line 376, in get_user
raise FLError(False, ["Unable to get user: %s" % str(e)])
@filler
filler / gist:982819
Created May 20, 2011 12:43
mysql enterprise obsoletes mess
*********************************************************************
Main Tree Sched: packages pass 1 @ Thu May 19 16:37:47 2011
*********************************************************************
RPM Package httpd-2.2.3-43.el5.x86_64 not installed.
RPM Package mod_ssl-2.2.3-43.el5.x86_64 not installed.
RPM Package clamav-0.97-13.el5.x86_64 not installed.
RPM Package mysql-5.0.77-4.el5_4.2.x86_64 not installed.
RPM Package MySQL-python-1.2.1-1.x86_64 not installed.
RPM Package python-crypto-2.0.1-4.el5.2.x86_64 not installed.
@filler
filler / gist:983251
Created May 20, 2011 16:18
obsoletes=0? thats unpossible!
[rs253@vm-pkgprdyum-01 yale]$ for i in `ls -1 *.rpm` ; do echo -ne "`rpm -qp --obsoletes $i 2>/dev/null | wc -l`\t$i\n"; done | sort -n
0 apache-maven2-2.2.1-1.noarch.rpm
0 apache-maven-3.0.2-1.noarch.rpm
0 cfengine-community-3.0.5p1-1.el5.x86_64.rpm
0 CollabNetSubversion-client-1.6.11-3.i386.rpm
0 epel-release-5-4.noarch.rpm
0 jboss-5.0.1-1.x86_64.rpm
0 jboss-debuginfo-5.0.1-1.x86_64.rpm
0 jdk-1.6.0_21-1.x86_64.rpm
0 jdk-debuginfo-1.6.0_21-1.x86_64.rpm
@filler
filler / gist:983263
Created May 20, 2011 16:23
MySQL-python from rhel5 needs mysql, obsoleted by MySQL-server-advanced-gpl.x86_64 ; doh!
[root@vm-filedevapp-01 ~]# yum info MySQL-python
Loaded plugins: downloadonly, security
Available Packages
Name : MySQL-python
Arch : x86_64
Version : 1.2.1
Release : 1
Size : 83 k
Repo : redhat
Summary : An interface to MySQL
@filler
filler / gist:983675
Created May 20, 2011 20:01
redirect_by_host_and_uri
rule redirect_by_host_and_uri {
when HTTP_REQUEST {
foreach row [lsort -decreasing -index 1 $::host_uri_redirector_class] {
if { [string tolower [HTTP::host]] equals [getfield $row " " 1] or [string tolower [HTTP::host]] starts_with "[getfield $row " " 1]:" }{
if { [string tolower [HTTP::uri]] equals [getfield $row " " 2] }{
HTTP::redirect [getfield $row " " 3]
break
} elseif { [string tolower [HTTP::uri]] starts_with "[getfield $row " " 2]/" } {
HTTP::redirect [getfield $row " " 3]
break
@filler
filler / gist:984826
Created May 21, 2011 19:30
rspec-core-2.6.2 invalid date format in specification
rdj:~ silkey$ sudo gem update
Updating installed gems
Updating formatador
Fetching: formatador-0.1.4.gem (100%)
Successfully installed formatador-0.1.4
Updating rake
Fetching: rake-0.9.0.gem (100%)
Successfully installed rake-0.9.0
Updating rspec-core
Fetching: rspec-core-2.6.2.gem (100%)
@filler
filler / gist:989300
Created May 24, 2011 18:16
rhel 5.6 @ left ; centos 5.6 @ right
python-2.4.3-44.el5 | python-2.4.3-44.el5
python-cheetah-2.0.1-1.el5.rf | python-cheetah-2.0.1-1.el5.rf
python-cherrypy-3.1.2-1.el5.rf | python-cherrypy-3.1.2-1.el5.rf
python-crypto-2.0.1-4.el5.2 | python-crypto-2.0.1-4.el5.2
python-devel-2.4.3-44.el5 | -------------------------------------------------------------------
python-devel-2.4.3-44.el5 | -------------------------------------------------------------------
python-dmidecode-3.10.13-1.el5_5.1 | -------------------------------------------------------------------
python-elementtree-1.2.6-5
===== Filelocker Configuration Wizard =====
Where would you like to save the config file? [/misc/filesw01/filelocker/2.4.1/conf/filelocker.conf]:
No previous config entry for dbtype. Default will be "mysql".
What kind of database will you be using (mysql)? [mysql]:
No previous config entry for dbuser. Default will be "filelocker".
Database user? [filelocker]: filedevdb00
No previous config entry for dbpassword. Default will be "none set".
Database password? [none set]:
No previous config entry for dbhost. Default will be "localhost".
Database host? [localhost]: vip-iwdevdb-01.example.com