Skip to content

Instantly share code, notes, and snippets.

View btisdall's full-sized avatar

Ben Tisdall btisdall

View GitHub Profile
def convertToSlow(line)
return <<HERE
# Time: #{line['timestamp'].strftime('%y%m%d %k:%M:%S')}
# User@Host: photobox[photobox] @ [10.52.1.9]
# Query_time: #{"%.6f" % (line['time'].to_f/1000)} \
Lock_time: 0.000000 Rows_sent: #{line['rows_sent']} \
Rows_examined: #{line['rows_read']}
SET timestamp=#{line['timestamp'].strftime('%s')};
#{line['sql']} ;
HERE
# mysql::server::config { 'basic_config':
# settings => {
# 'mysqld' => {
# 'query_cache_limit' => '5M',
# 'query_cache_size' => '128M',
# 'port' => 3300,
# 'skip-external-locking' => true,
# 'replicate-ignore-db' => [
# 'tmp_table',
# 'whateveryouwant'
Date: Fri, 22 Mar 2013 16:27:21 GMT
Server: Apache/2.2.14 (Ubuntu) mod_perl/2.0.4 Perl/v5.10.1
Access-Control-Allow-Origin: *
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
20
0 - error - incorrect parameters
0
bentis@b2b03:~$ sudo /etc/init.d/backend_httpd start
* Starting web server backend
httpd: Syntax error on line 93 of /opt/Babel/scripts/httpd.conf.rendered: Cannot load /opt/httpd/modules/mod_perl.so into server: libperl.so: cannot open shared object file: No such file or directory
Mar 12 14:31:47 b1xenhost01 -- MARK --
Mar 12 14:51:47 b1xenhost01 -- MARK --
Mar 12 15:11:47 b1xenhost01 -- MARK --
Mar 12 15:31:48 b1xenhost01 -- MARK --
Mar 12 15:28:36 b1xenhost01 syslogd 1.5.0#1ubuntu1: restart.
Mar 12 15:28:36 b1xenhost01 kernel: Inspecting /boot/System.map-2.6.18.8-xen
Mar 12 15:28:36 b1xenhost01 kernel: Loaded 23722 symbols from /boot/System.map-2.6.18.8-xen.
Mar 12 15:28:36 b1xenhost01 kernel: Symbols match kernel version 2.6.18.
Mar 12 15:28:36 b1xenhost01 kernel: Loaded 10178 symbols from 41 modules.
cat ~/.gitignore_global
.vagrant
*.swp
.DS_Store*
.svn/
META.*
MYMETA.*
blib/
_build/
*tar.gz
Live loadbalancer 2b (v1.10) (retired) -- i-dc48e197 ami-eb898d9f 2012-10-14 18:50:24 ST
Connect Load balancer (v0.1) -- i-c71a418f ami-ab9491df 2012-07-30 10:15:13 ST
Live Loadbalancer (V1.9) (RETIRED 2012-07-18) -- i-2b3f4963 ami-c32420b7 2012-07-05 12:58:30 ST
------------------------------------------------------------------------
r74 | roseg | 2011-12-28 14:57:45 +0100 (Wed, 28 Dec 2011) | 10 lines
Release 2.6
Enhancements:
- allow multiple AddHeader directives
Bug fixes:
- fixed memory leak in config/AddHeader
Index: what_version
===================================================================
--- what_version (revision 46893)
+++ what_version (working copy)
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby
-require_relative "BabelRelease"
+$: << '.' if RUBY_VERSION >= '1.9.2'
+
# development.pp
stage { 'req-install': before => Stage['rvm-install'] }
class misc {
package {
[
'vim',
]:
ensure => installed,
}