undefined reference to `libnet_name2addr4'
I was getting the following error on Debian Squeeze while compiling the MS Windows Malformed IP Options DoS Exploit (MS05-019): "> : undefined reference to `libnet_name2addr4' > : undefined...
View ArticleMigrating LDAP groupOfNames to groups table in Postgresql
I love LDAP! Well... I hate LDAP too... But, LDAP is not the directory service for my current position, so I am moving my groupOfNames to a Postgresql database. I usually do this with BASH, but thought...
View ArticleRoot your box, and mount LVM partitions
I was teaching a friend how to root a box by adding: init=/bin/bash to the kernel line in grub, and then wanted to show him how to install some apps from the command line. I had never done this with...
View ArticleDebian / Mailman - mailman hangs after killing add_members process
I have figured out how to revive mailman (1:2.1.11-11+lenny1), on Debian. THE ISSUE: When I kill my bin/createemail.sh, which creates a home directory, and adds the user to our global mailing list...
View ArticleDebian - issues upgrading openssh-server
I was having problems upgrading both openssh-client and openssh-server on Debian Squeeze, after finding that both packages had a status of 'ic'. I found that both /usr/bin/ssh and /usr/sbin/sshd had...
View ArticleFirefox - remove headers and footers when printing
Firefox 11: Suppress Headers & Footers Page Setup Margins/Headers&Footers In Headers&Footers section: set all values to '--blank--'
View ArticleVMware ESXi 5 enable SSH on ESXi host
I am learning VMware ESXi 5, and found that you could enable SSH on the ESXi host for management. Very cool! VMware ESXi 5 tab: Hit Login with the root username and password that you created during...
View ArticleGREP - only display matching text in line
I used the following file to grab all of the CVE numbers from a mixed-text penetration test report: grep -Ei 'CVE-[0-9]{4}-[0-9]{4}' pentest.csv | grep -oEi 'CVE-[0-9]{4}-[0-9]{4}' Here is sample...
View ArticleColdfusion - Problems displaying PDFs using CFCONTENT
If you are having issues displaying PDFs via the CFCONTENT tag, (similar to this article), don't forget to ' -- Enable binary large object retrieval (BLOB).' for the DSN in the Administrator!...
View ArticleEclipse - TNS:listener does not currently know of SID given in connect...
Many of the blog entries mention using the "Other" driver instead of the Oracle Thin Client, but I found that I simply needed to change the colon to a forward slash like this:...
View Articlemacports - mysql socket causing '#2002 Cannot log in to the MySQL server'
I was trying to setup phpmyadmin on my Mac 10.7.4 with MacPorts and kept getting: #2002 Cannot log in to the MySQL server Here is how I fixed it: 1. find the MacPorts mysql5-server socket (mysql needs...
View ArticleThis is a RAID status update from mpt-statusd. The mpt-status program reports...
I got tired of receiving these messages from my Debian 6 vm This is a RAID status update from mpt-statusd. The mpt-status program reports that one of the RAIDs changed state: I fixed it by running:...
View ArticleDrupal 7 - date_popup options
I'm pulling this from the source code so that I can reference it more easily: * #date_timezone * The local timezone to be used to create this date. * * #date_format * Unlike earlier versions of this...
View ArticleDrupal - using JQuery in custom functions
For anyone this is getting the following error: Uncaught TypeError: Property '$' of object [object Window] is not a function yet sees that jquery.js is being loaded before their custom javascript. You...
View ArticleUsing EMACS sql-oracle without a tnsnames.ora
I am an Oracle wimp, and so when I couldn't get EMACS sql-oracle to find the tnsnames.ora on my Mac, I brought the tnsnames.ora to EMACS :) M-x sql-oracle User: myusername Password: mypassword...
View ArticleCKEditor width issues in Drupal 7
I was having issues getting CKEditor to stay within the width of our theme, and found this code that helped "tame the beast": function oe_workshops_wysiwyg_editor_settings_alter(&$settings,...
View ArticleTimeline.js - [blocked] The page at ...
Here is a patch to allow timeline.js, (a really nice looking timeline solution), to work from a secure (https) page: --- storyjs-embed.js.old 2012-12-18 09:53:41.000000000 -0800 +++ storyjs-embed.js...
View ArticleAdd custom thumbnail instead of pagepeeker preview
(copied from my feature request on the timeline.js Google Group) Hi all, I am implementing timeline.js with a class interactive here at MY, and found that pagepeeker couldn't access our protected...
View Articlejwerty keymapping
Just placing these here, as it is easier for me to access than the github source... I needed arrow keys, and if you look in the following code, you see a long text version for these, (ie. arrow-left,...
View ArticleEMACS 24 and Windows 7 - current-kill: Symbol's function definition is void:...
If you are getting the following error when setting up EMACS 24 on Windows 7: current-kill: Symbol's function definition is void: x-cut-buffer-or-selection-value Open your .emacs and change:...
View Articledyld: DYLD_ environment variables being ignored because main executable...
I just upgraded to Mountain Lion on Friday, and have been plagued by this error: dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid The best fix...
View Article/usr/lib64/python2.6/site-packages/rhsm/certificate.py:123:...
This is fixed with the following changes to /usr/libexec/rhsmd: #if warning_range.hasNow(): if warning_range.has_now(): Reference:...
View ArticleGmail: How to revert to old Gmail mailbox
If you find the tabbed Gmail interface cumbersome, you can revert to the old-school no-tab interface by clicking on: Settings -> Configure inbox And, unchecking all of the boxes, except for Primary.
View ArticleClick doesn't give element focus in Chrome?
Click doesn't give element focus in #chrome? Seems to be this issue: https://bugs.webkit.org/show_bug.cgi?id=22261 . Here is a fix: // fix webkit bug #22261, which doesn't give // radio buttons focus...
View ArticleEMACS - .emacs config notes when installing Magit through ELPA
Don't forget to load git-rebase-mode and git-commit-mode, in addition to magit. Here's a quick example config for your .emacs: (add-to-list 'load-path "~/.emacs.d/elpa/git-rebase-mode-20140605.520/")...
View Article