Skip to content

Instantly share code, notes, and snippets.

Avatar

Pierre Yager zedalaye

View GitHub Profile
@zedalaye
zedalaye / journalctl -u etcd
Created Jul 17, 2015
etcd journal for failing node
View journalctl -u etcd
Jul 17 13:47:21 coreos3 systemd[1]: etcd.service: Service hold-off time over, scheduling restart.
Jul 17 13:47:21 coreos3 systemd[1]: Started etcd.
Jul 17 13:47:21 coreos3 systemd[1]: Starting etcd...
Jul 17 13:47:21 coreos3 etcd[746]: [etcd] Jul 17 13:47:21.628 INFO | Discovery via https://discovery.etcd.io using prefix /dbce198e983f853f4be64c00187a3a6e.
Jul 17 13:47:23 coreos3 etcd[746]: [etcd] Jul 17 13:47:23.030 INFO | Discovery found peers [http://192.168.57.32:7001 http://192.168.57.32:7001 http://192.168.57.31:7001 836d6a8c4772499fbceb10230c842754=http://192.168.57.31:2380 http://192.168.57.33:7001]
Jul 17 13:47:23 coreos3 etcd[746]: [etcd] Jul 17 13:47:23.031 INFO | Discovery fetched back peer list: [192.168.57.32:7001 192.168.57.32:7001 192.168.57.31:7001 192.168.57.33:7001]
Jul 17 13:47:23 coreos3 etcd[746]: [etcd] Jul 17 13:47:23.032 INFO | de858fb1bdf641abab0a6457f4bb53d7 attempted to join via 192.168.57.32:7001 failed: fail checking join version: Client Internal Error (Get ht
@zedalaye
zedalaye / fb_search_root_dir.patch
Created Dec 30, 2010
Improve the search of Firebird Root algorithm under Windows
View fb_search_root_dir.patch
From ed6cd80bdd2e289befdad1e5e15eed425e19e2e8 Mon Sep 17 00:00:00 2001
From: Pierre Yager <pierre@levosgien.net>
Date: Thu, 30 Dec 2010 15:06:06 +0100
Subject: [PATCH 1/2] Improved searching of the Firebird root directory.
---
extconf.rb | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/extconf.rb b/extconf.rb
@zedalaye
zedalaye / output.txt
Created Aug 3, 2011
Try to make a hash stack in Ruby
View output.txt
$ rbx stack.rb
[4, 8, 12, 16, 20, 24, 28, 32, 36]
[{:done=>[9, 0, 5, 9, 6, 5, 2, 0],
:last=>nil,
:cells=>[1, nil, 1, nil, nil, 1, 1, nil, nil, 1],
:values=>[]},
{:done=>[9, 0, 5, 9, 6, 5, 2, 0],
:last=>9,
:cells=>[1, nil, 1, nil, nil, 1, 1, nil, nil, 1],
:values=>[]},
@zedalaye
zedalaye / console.log
Created Oct 3, 2011
Rubinius Build fails
View console.log
Building bootstrap Melbourne for MRI
GEN runtime/18/signature
RBC 1.8 kernel/bootstrap/alias.rb
RBC 1.8 kernel/bootstrap/array.rb
RBC 1.8 kernel/bootstrap/array18.rb
RBC 1.8 kernel/bootstrap/bignum.rb
RBC 1.8 kernel/bootstrap/block_environment.rb
RBC 1.8 kernel/bootstrap/bytearray.rb
RBC 1.8 kernel/bootstrap/chararray.rb
RBC 1.8 kernel/bootstrap/channel.rb
@zedalaye
zedalaye / build.log
Created Oct 18, 2011
Rubinius Build still fails
View build.log
/usr/bin/ruby1.9.1 vm/codegen/config_vars.rb vm/gen/config_variables.h
GEN vm/gen/config_variables.h
/usr/bin/ruby1.9.1 vm/codegen/encoding_extract.rb /home/pierre/Sources/vendor/onig vm/gen/encoding_database.cpp
/usr/bin/ruby1.9.1 vm/codegen/field_extract.rb vm/builtin/basicobject.hpp vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/chararray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledmethod.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/ffi_pointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/randomizer.hpp vm/b
@zedalaye
zedalaye / .rubinius_last_error
Created Jun 22, 2012
Rubinius Automanuallyreported Crash Report
View .rubinius_last_error
Rubinius Crash Report #rbxcrashreport
[[Exception]]
A toplevel exception occurred
undefined local variable or method `this_does_not_exist' on an instance of Object. (NameError)
Backtrace:
Kernel(Object)#this_does_not_exist (method_missing) at kernel/delta
/kernel.rb:81
{ } in Object#__script__ at -e:1
@zedalaye
zedalaye / README
Last active Oct 27, 2015
How to migrate your PostgreSQL Database from Shelly Cloud to Scalingo
View README
1) Make sure you have these tools installed and configured
* Ruby
* The ShellyCloud CLI
* The Scalingo CLI
* tar, gunzip
* The PostgreSQL client tools (pg_restore)
2) Make sure your database on scalingo side is empty (delete your postgresql addon and recreate it)
BEWARE : YOU WILL LOOSE ALL YOUR DATA ! So make backups before deleting your PG Addon !
View nmatrix_gem_rbx_failure.log
$ LC_ALL=C bin/rbx -X19 gem install nmatrix
Building native extensions. This could take a while...
ERROR: Error installing nmatrix:
ERROR: Failed to build gem native extension.
/home/pierre/Sources/rubinius/bin/rbx extconf.rb
checking for main() in -llapack... yes
checking for main() in -lcblas... yes
checking for main() in -latlas... yes
checking for clapack.h... no
@zedalaye
zedalaye / update-testing-db.rb
Last active Jan 25, 2016
Synchronize database between 2 apps at Scalingo
View update-testing-db.rb
#!/usr/bin/env ruby
require 'uri'
require 'pty'
require 'expect'
if ARGV.length == 2
app = ARGV[0]
dump = ARGV[1]
else
@zedalaye
zedalaye / user_data
Created Jul 17, 2015
My deix cloudconfig for coreos running on xen
View user_data
#cloud-config
---
hostname: %XSVMNAMETOHOSTNAME%
ssh_authorized_keys:
# - ssh-rsa <my key !>
# The following entry will automatically be replaced with a public key
# generated by XenServer's container management. The key-entry must exist,
# in order to enable container management for this VM.
- ssh-rsa %XSCONTAINERRSAPUB%
coreos: