Skip to content

Instantly share code, notes, and snippets.

Avatar

Pierre Yager zedalaye

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am zedalaye on github.
  • I am zedalaye (https://keybase.io/zedalaye) on keybase.
  • I have a public key ASCQiR8V17vuAwTO2MsOKJ-8ORLxnV-RNndlRl_WO5MLVgo

To claim this, I am signing this object:

@zedalaye
zedalaye / build_zeromq_vs2017.bat
Last active Oct 24, 2019
Build ZeroMQ (LibZMQ/CZMQ/Zyre) Ecosystem from sources on Windows using Visual Studio 2017
View build_zeromq_vs2017.bat
@echo off
setlocal EnableDelayedExpansion
@REM Build LibZMQ, CZMQ et Zyre with their dependencies
@REM Toolchain : Visual Studio 2017
@REM Dependencies : CMAKE, GIT (Git for Windows), PERL (Strawberry Perl), NASM
@REM
@REM After successful build the resulting DLL are moved into zmq_build_%TODAY%\out
@REM
@zedalaye
zedalaye / Gemfile
Last active Jun 5, 2017
Test Mailjet Resource#save from Mailjet-Gem
View Gemfile
source 'https://rubygems.org'
ruby '2.4.1'
gem 'mail'
gem 'mailjet', git: 'https://github.com/mailjet/mailjet-gem.git', branch: 'prerelease/v1.5.2'
gem 'activesupport', :require => 'active_support/all'
@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 / 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 !
@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 / 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:
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 / .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 / 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