Skip to content

Instantly share code, notes, and snippets.

View emedina's full-sized avatar

Enrique Medina Montenegro emedina

View GitHub Profile
test-multichain/multichain-node-1[multichain]: *** Error in `multichaind': malloc(): memory corruption: 0x00007f7d9c017f70 ***
test-multichain/multichain-node-1[multichain]: ======= Backtrace: =========
test-multichain/multichain-node-1[multichain]: [0x15521d1]
test-multichain/multichain-node-1[multichain]: [0x155ccca]
test-multichain/multichain-node-1[multichain]: [0x155ec51]
test-multichain/multichain-node-1[multichain]: [0x1431188]
test-multichain/multichain-node-1[multichain]: [0x83875b]
test-multichain/multichain-node-1[multichain]: [0x82cd8a]
test-multichain/multichain-node-1[multichain]: [0x81add7]
test-multichain/multichain-node-1[multichain]: [0x8240c1]
@emedina
emedina / affirmation
Created December 17, 2015 17:04
MuleSoft Contributor Agreement Acceptance by Enrique Medina Montenegro
I, Enrique Medina Montenegro, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Thu Dec 17 2015 18:04:39 GMT+0100 (Romance Standard Time)
# XD Configuration file
# You can set properties here to override the default which
# are set in the application.yml file loaded by Spring Boot.
#
# Properties set in here will take precedence.
#
# Alternatively, you can set the environment variable XD_CONFIG
# to point to a file (use a file:// URL). That file will then be
# used instead.
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"or": [
{
"and": [
# Remove all data.
curl -XDELETE 'http://127.0.0.1:9200/poc/'
# Create index with default settings.
curl -XPUT 'http://127.0.0.1:9200/poc/'
# Define mapping for taskA.
curl -XPUT 'http://127.0.0.1:9200/poc/taskA/_mapping' -d '
{
"taskA": {
curl -XPUT http://localhost:9200/_river/test_mysql_river/_meta -d '
{
"type":"jdbc",
"jdbc": {
"strategy":"simple",
"poll":"1m",
"driver":"com.mysql.jdbc.Driver",
"url" : "jdbc:mysql://localhost:3306/ohim",
"user":"root",
"password":"",
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 5,
class Controller1Controller {
def atmosphere1() {
broadcaster['/atmosphere/atmosphere1'].broadcast("MY BROADCAST MESSAGE")
render "DONE BROADCASTING MESSAGE"
}
}
class Atmosphere1Service {
static transactional = false
static atmosphere = [mapping: '/atmosphere/atmosphere1']
def onRequest = { event ->
event.suspend()
}
package unittestfailwithobjectid
import grails.test.*
import grails.datastore.test.DatastoreUnitTestMixin
import org.bson.types.ObjectId
import org.springframework.core.convert.converter.Converter
@Mixin(DatastoreUnitTestMixin)
class SampleTests extends GrailsUnitTestCase {
protected void setUp() {