Skip to content

Instantly share code, notes, and snippets.

View bartocc's full-sized avatar

Julien Palmas bartocc

View GitHub Profile
2013-05-27T12:53:06.932467+00:00 app[pgbackups]: Started: Mon May 27 12:53:06 UTC 2013
2013-05-27T12:53:06.968222+00:00 app[pgbackups]: Location: 344e5e70-4002-454a-8152-e23d3e0c369d:/tmp/DalArDkdGG
2013-05-27T12:53:07.061000+00:00 app[pgbackups]: psql: bin//psql-9.2.1-64bit
2013-05-27T12:53:07.083720+00:00 app[pgbackups]: pv: bin//pv-1.1.4-64bit
2013-05-27T12:53:07.183263+00:00 app[pgbackups]: SELECT count(*) = 0 as is_empty
2013-05-27T12:53:07.193292+00:00 app[pgbackups]: FROM pg_class INNER JOIN pg_roles ON relowner = pg_roles.oid
2013-05-27T12:53:07.200943+00:00 app[pgbackups]: WHERE rolname <> '\''postgres'\'''
2013-05-27T12:53:08.692559+00:00 app[pgbackups]: pg_restore: bin//pg_restore-9.2.1-64bit
2013-05-27T12:53:09.273732+00:00 app[pgbackups]: Schema | Name | Type | Info
2013-05-27T12:53:09.288548+00:00 app[pgbackups]: --------+-------------------------------------------------------------+-
[root]# yum list installed|grep post
postgresql90.i386 9.0.12-1PGDG.rhel4 installed
postgresql90-devel.i386 9.0.12-1PGDG.rhel4 installed
postgresql90-libs.i386 9.0.12-1PGDG.rhel4 installed
postgresql90-server.i386 9.0.12-1PGDG.rhel4 installed
{
"items": [
{
"id": 2119,
"title": "5 minutes pour convaincre",
"authors": [
"Jean-Claude Martin"
],
"globalWeather": 32,
"globalWeatherTrend": "decreasing",
@bartocc
bartocc / console.log
Created April 10, 2013 15:26
"Switch iOS keyboard layout" console log
10/04/13 17:25:26,519 Type2Phone[18872]: statemachine: state READY, event USER_OUTGOING_REQUEST, control 0x0, interrupt 0x0, channel 0x0
10/04/13 17:25:27,738 Type2Phone[18872]: statemachine: state OUTGOING_W4_CONTROL, event HID_CONTROL_OUTGOING_CONNECTED, control 0x2e86c0, interrupt 0x0, channel 0x0
10/04/13 17:25:27,000 kernel[0]: Sandbox: sandboxd(21065) deny mach-lookup com.apple.coresymbolicationd
10/04/13 17:25:27,762 Type2Phone[18872]: statemachine: state OUTGOING_W4_INTERRUPT, event HID_INTERRUPT_OUTGOING_CONNECTED, control 0x2e86c0, interrupt 0x2cf170, channel 0x0
10/04/13 17:25:27,946 sandboxd[21065]: ([18872]) Type2Phone(18872) deny iokit-set-properties AuthenticationAttempted
10/04/13 17:25:28,000 kernel[0]: [IOBluetoothHIDDriver][getDevicePropertiesWL][90-27-e4-12-8c-10] Error retrieving device properties.
10/04/13 17:25:28,000 kernel[0]: [IOBluetoothHIDDriver][probe] Couldn't retrieve device properties
10/04/13 17:25:31,153 Type2Phone[18872]: Disconnect: Resign active
10/04/13 17:25:31,155 Type2
@bartocc
bartocc / gist:5209153
Created March 20, 2013 22:31
gsl on heroku
Running `console` attached to terminal... up, run.7360
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require': libgsl.so.0: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/1.9.1/gems/gsl-1.15.3/lib/rb_gsl.so (LoadError)
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
from /app/vendor/bundle/ruby/1.9.1/gems/gsl-1.15.3/lib/gsl.rb:2:in `<top (required)>'
from /app/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.2/lib/bundler/runtime.rb:72:in `require'
from /app/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.2/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /app/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.2/lib/b
@bartocc
bartocc / file_in_ruby.rb
Created June 26, 2012 12:48
my first gist
puts "hello world"
puts "foo bar"
Counting objects: 13, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 568 bytes, done.
Total 7 (delta 6), reused 0 (delta 0)
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.1.rc.7
Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
require "digest"
s = "ma signature avant hash"
sha = Digest::SHA512.hexdigest(s)
puts sha
@bartocc
bartocc / gist:1014667
Created June 8, 2011 15:41
rbx-2.0.0pre pg gem compile error
Fetching: pg-0.11.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/Users/julien/.rvm/rubies/rbx-2.0.0pre/bin/rbx extconf.rb
checking for pg_config... yes
Using config values from /usr/local/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
/usr/local/lib/ruby/1.9.1/net/protocol.rb:135:in `read_nonblock'
/usr/local/lib/ruby/1.9.1/net/protocol.rb:135:in `rbuf_fill'
/usr/local/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
/usr/local/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
/usr/local/lib/ruby/1.9.1/net/http.rb:2211:in `read_status_line'