Skip to content

Instantly share code, notes, and snippets.

View mstyne's full-sized avatar
🐍
Improving my Python skills

Michael Styne mstyne

🐍
Improving my Python skills
View GitHub Profile
Generated at 2012-05-18 14:17:09 -0400
NameError: wrong constant name Yum-uberKey
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/provider.rb:89:in `const_defined?'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/provider.rb:89:in `build_from_file'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:89:in `block in load_lwrp_providers'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:120:in `call'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:120:in `block (2 levels) in foreach_cookbook_load_segment'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:119:in `each'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:119:in `block in foreach_cookbook_load_segment'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:117:in `each'
$ irb
>> require 'shellwords'
=> true
>> foo = Array['argument', 'var!able']
=> ["argument", "var!able"]
>> bar = foo.shelljoin
=> "argument var\\!able"
read(14, "\1\0\0\1\6I\0\0\2\3def\tubersmith\tapplianc"..., 16384) = 540
rt_sigaction(SIGALRM, NULL, {SIG_DFL, [], SA_RESTORER, 0x7ffdb1447230}, 8) = 0
rt_sigaction(SIGALRM, {0x7ffda9eb1f40, [], SA_RESTORER, 0x7ffdb1447230}, NULL, 8) = 0
alarm(30) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
alarm(0) = 30
rt_sigaction(SIGALRM, {SIG_DFL, [], SA_RESTORER, 0x7ffdb1447230}, NULL, 8) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 16
fcntl(16, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(16, F_SETFL, O_RDWR|O_NONBLOCK) = 0
# gdb apache2
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
recvfrom(15, "HTTP/1.1 200 OK\r\nDate: Tue, 14 Aug 2012 22:15:53 GMT\r\nServer: Apache/2.2.16 (Debian)\r\nX-Powered-By: PHP/5.3.3-7+squeeze13\r\nSet-Cookie: PHPSESSID=ecps90dc4u6k0li94f6oqc1aj7; path=/\r\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\nSet-Cookie: PHPSESSID=0kkdd44k881tgkfjjlqp6oqte1; path=/\r\nSet-Cookie: authchallenge=4ae1e1426c755829a270f84c66187ecc; path=/\r\nContent-Length: 204\r\nContent-Encoding: gzip\r\nVary: Accept-Encoding\r\nContent-Type: text/xml; charset=ISO-8859-1\r\n\r\n\37\213\10\0\0\0\0\0\0\3|P\313\16\2020\20\274\373\25\rw\254\230\230`\262\224\203^<\231\310\27 ]\264\tmM\37\304\317\267\24|p\220\323\356\354\314\316d\27\312\247\354H\217\306\n\255\212$[o\22\202\252\321\\\250[\221\234\252s\232\347\273}\232%%[\201Dw\327\374\202\366\241\225\3050hk\3379\266\"\4\372\272\3638t\241\267\316\370\306\215 @\211\362\212\346\r\303@\325\22Y\\=h\216@#\376\322\243\25\10\345\330\26\350P\200\376\330\7\5\
Selecting from queue...
Processing...
ticketpostdocument 50371 add
ticketpostdocument 50372 add
ticketpostdocument 50373 add
ticketpostdocument 50374 add
ticketpostdocument 50375 add
ticketpostdocument 50376 add
ticketpostdocument 50377 add
ticketpostdocument 50378 add
DEBUG: 174.3 Mb invoicing 6676
DEBUG: 174.3 Mb invoicing 6677
DEBUG: 174.3 Mb invoicing 6678
DEBUG: 174.3 Mb invoicing 6679
DEBUG: 174.3 Mb invoicing 6680
DEBUG: 174.3 Mb invoicing 6683
DEBUG: 174.3 Mb invoicing 6684
DEBUG: 174.5 Mb invoicing 6685
DEBUG: 174.5 Mb invoicing 6686
DEBUG: 174.5 Mb invoicing 6687
@mstyne
mstyne / gist:3744554
Created September 18, 2012 17:41
couchdb init, from debian
#!/bin/sh -e
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10:46 <mstyne> it might beat the shit out of the solr server
10:46 <mstyne> but hey
10:46 <jcallaway> beat it down
10:46 <mstyne> that's its job
10:46 <jcallaway> that's its job
@mstyne
mstyne / gist:3794318
Created September 27, 2012 14:32
InnoDB table size, courtesy Peter Zaitsev
SELECT CONCAT(table_schema, '.', table_name),
CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows,
CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA,
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx,
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size,
ROUND(index_length / data_length, 2) idxfrac
FROM information_schema.TABLES
WHERE table_schema = 'de_160'
ORDER BY data_length + index_length DESC
LIMIT 10;