Skip to content

Instantly share code, notes, and snippets.

<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "/Library/WebServer/bromine/app/webroot"
ServerName bromine
<Directory /Library/WebServer/bromine/app/webroot>
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
[Thu Mar 25 18:43:29 2010] [error] 2010-03-25 18:43:29,480 ERROR MoinMoin.macro:132 Macro FullSearchCached (page: 'CategoryCategory') raised an exception:
[Thu Mar 25 18:43:29 2010] [error] Traceback (most recent call last):
[Thu Mar 25 18:43:29 2010] [error] File "/usr/local/lib/python2.6/site-packages/MoinMoin/macro/__init__.py", line 122, in execute
[Thu Mar 25 18:43:29 2010] [error] return execute(self, args)
[Thu Mar 25 18:43:29 2010] [error] File "/usr/local/lib/python2.6/site-packages/MoinMoin/macro/FullSearch.py", line 106, in execute
[Thu Mar 25 18:43:29 2010] [error] results = search.searchPages(request, needle, sort='page_name')
[Thu Mar 25 18:43:29 2010] [error] File "/usr/local/lib/python2.6/site-packages/MoinMoin/search/__init__.py", line 35, in searchPages
[Thu Mar 25 18:43:29 2010] [error] return _get_searcher(request, query, sort, mtime, historysearch, **kw).run()
[Thu Mar 25 18:43:29 2010] [error] File "/usr/local/lib/python2.6/site-packages/MoinMoin/search/builtin.py", l
Typo in the $HOME/examples/rvmrc file results in this output:
gilgamesh:stderr-glow uxp$ gem env gemdir
/Users/uxp/.rvm/gems/ruby-1.8.7-p249@rails2
gilgamesh:stderr-glow uxp$ rvm system
-bash: ${$rvm_path}/bin: bad substitution
mv: rename /Users/uxp/.rvm/gems/ruby-1.8.7-p249@rails2/cache/bundler to /Users/uxp/.gem/cache/bundler: Directory not empty
rmdir: /Users/uxp/.rvm/gems/ruby-1.8.7-p249@rails2/cache: Directory not empty
gilgamesh:stderr-glow uxp$ gem env gemdir
/Library/Ruby/Gems/1.8
ActiveRecord::StatementInvalid in 'Weather.fetch_for_zipcode should populate recorded_at'
PGError: ERROR: operator does not exist: character varying = integer
LINE 1: ...ECT * FROM "weathers" WHERE ("weathers"."zipcode" = 90210) ...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT * FROM "weathers" WHERE ("weathers"."zipcode" = 90210) LIMIT 1
/home/uxp/.rvm/gems/ruby-1.8.7-p249@rails2/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log'
/home/uxp/.rvm/gems/ruby-1.8.7-p249@rails2/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:550:in `execute'
/home/uxp/.rvm/gems/ruby-1.8.7-p249@rails2/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:1037:in `select_raw'
/home/uxp/.rvm/gems/ruby-1.8.7-p249@rails2/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_
gilgamesh:~ uxp$ curl -D - http://mail.dixonslc.com
HTTP/1.0 404 Not Found
Server: uhttpd/1.0.0
Date: Thu, 03 Jun 2010 01:09:31 GMT
Content-Type: text/html; charset="UTF-8"
Connection: close
<HTML><HEAD><TITLE>404 Not Found</TITLE><LINK rel= stylesheet href= /form.css><META http-equiv=content-type content='text/html; charset=UTF-8'><STYLE type=text/javascript>classes.num.all.fontFamily = Courier; classes.num.all.fontSize = 10pt;</STYLE></HEAD>
<BODY><H1>404 NOT Found</H1>
File not found
Jan 23 19:43:04 bahamut sshd[50155]: error: connect_to rzqeizqvmu: unknown host (hostname nor servname provided, or not known)
Jan 23 19:43:04 bahamut sshd[50155]: error: connect_to vunnmcfkwe: unknown host (hostname nor servname provided, or not known)
Jan 23 19:43:04 bahamut sshd[50155]: error: connect_to gobscdeiar: unknown host (hostname nor servname provided, or not
#!/bin/sh
/usr/bin/osascript -e "tell application \"Chromium\" to open location \"$1\" activate"
<?php
class MySQLDumper {
/**
*
*/
private $_dbuser;
/**
@uxp
uxp / hamlhtml5boilerplate.html.haml
Created February 3, 2012 02:59 — forked from neiled/hamlhtml5boilerplate.html.haml
My haml version of the html 5 boiler plate code
!!! 5
/[if lt IE 7] <html lang="en" class="no-js ie6">
/[if IE 7 ] <html lang="en" class="no-js ie7">
/[if IE 8 ] <html lang="en" class="no-js ie8">
/[if IE 9 ] <html lang="en" class="no-js ie9">
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
%head
%meta{:charset => "utf-8"}/
/
Always force latest IE rendering engine (even in intranet) &amp; Chrome Frame
@uxp
uxp / gist:4689141
Last active December 12, 2015 01:09
Mac OS X Mountain Lion Server.app (v2.2 - 166) Rails Vulnerability Patch - Cumulative
diff -ru a/Server.app/Contents/ServerRoot/usr/share/collabd/gems/vendor/bundle/ruby/1.8/gems/actionpack-3.0.10/lib/action_dispatch/http/request.rb b/Server.app/Contents/ServerRoot/usr/share/collabd/gems/vendor/bundle/ruby/1.8/gems/actionpack-3.0.10/lib/action_dispatch/http/request.rb
--- a/Server.app/Contents/ServerRoot/usr/share/collabd/gems/vendor/bundle/ruby/1.8/gems/actionpack-3.0.10/lib/action_dispatch/http/request.rb 2013-01-26 14:46:11.000000000 -0700
+++ b/Server.app/Contents/ServerRoot/usr/share/collabd/gems/vendor/bundle/ruby/1.8/gems/actionpack-3.0.10/lib/action_dispatch/http/request.rb 2013-01-31 20:48:46.000000000 -0700
@@ -257,5 +257,30 @@
def local?
LOCALHOST.any? { |local_ip| local_ip === remote_addr && local_ip === remote_ip }
end
+
+ # Remove nils from the params hash
+ def deep_munge(hash)