Skip to content

Instantly share code, notes, and snippets.

View wrabbit-revisited's full-sized avatar

wrabbit-revisited wrabbit-revisited

View GitHub Profile

This is a small sample showing serialization of a data structure containing shared_ptr. The shared_ptr contains a pointer to an interface class. The code was causing a lot of Cereal errors until a pure virtual method was added to the interface class. Just saying.. maybe it helps..

package csvdata
// csvdata complements the csv package by allowing you to map a custom structure to
// the columns of data in a CSV file. The struct needs to be annotated so that each
// field can match a column in the data
//
// type Person struct {
// FirstName string `field:"First Name"`
// Second_Name string
// Age int
// }
@wrabbit-revisited
wrabbit-revisited / out.txt
Created December 9, 2014 03:26
gluu-server install
Script started on Mon Dec 8 19:26:11 2014
]0;root@ce:~/community-edition-setup-master[?1034hGLUU.[root@ce community-edition-setup-master]# ./setup.py
Installing Gluu Server...
For more info see:
./setup.log
./setup_error.log
canIpForward: false
creationTimestamp: '2014-11-21T07:17:41.101-08:00'
disks:
- autoDelete: true
boot: true
deviceName: persistent-disk-0
index: 0
interface: SCSI
kind: compute#attachedDisk
mode: READ_WRITE
@wrabbit-revisited
wrabbit-revisited / cloud.sh
Last active August 29, 2015 14:09
context for stack overflow question
#!/bin/bash
gcloud compute instances create imaginout \
--image container-vm-v20140925 \
--image-project google-containers \
--metadata-from-file google-container-manifest=containers.yaml \
--tags http-server \
--zone us-central1-a \
--machine-type f1-micro