Skip to content

Instantly share code, notes, and snippets.

View kuryaki's full-sized avatar
🏠
Working from home

David Roncancio kuryaki

🏠
Working from home
View GitHub Profile
@kuryaki
kuryaki / Code of Conduct.md
Created March 1, 2019 19:01 — forked from Integralist/Code of Conduct.md
Code of Conduct (Template)

Code of Conduct

A code of conduct is a set of rules outlining the social norms and rules and responsibilities of, or proper practices for, an individual, party or organization

Sumary

The {NAME} is dedicated to providing a harassment-free working environment for all, regardless of gender, sexual orientation, disability, physical appearance, body size, race, or religion. We do not tolerate harassment of any form. All communication should be appropriate for a professional audience including people of many different backgrounds.

Sexual language and imagery is not appropriate for any communication and/or talks. Be kind and do not insult or put down others. Behave professionally. Remember that harassment and sexist, racist, or exclusionary jokes are not appropriate for {NAME}. Staff violating these rules should be reported to an appropriate line manager.

@kuryaki
kuryaki / index.js
Created September 18, 2018 19:26
Minimal HTTP server that prints request information in rfc 2616
const http = require('http');
const server = http.createServer((req, res) => {
let body = '';
req.on('data', chunk => {
body += chunk;
});
Ground Concepts explaining
https://www.innoq.com/en/blog/why-restful-communication-between-microservices-can-be-perfectly-fine/
Very well rounded tl;dr of implications
http://stackoverflow.com/questions/16838416/service-oriented-architecture-amqp-or-http
Interprocess communicataion concepts and patterns
https://dzone.com/articles/building-microservices-inter-process-communication-1
## entities / models:
```
'use strict';
const Mongoose = require('mongoose');
const internals = {};
internals.schema = new Mongoose.Schema(
### Payload
#### Simple text notification for patient or provider
```
{
to: '234',
sender: '987',
text: 'You have a visit scheduled',

Keybase proof

I hereby claim:

  • I am kuryaki on github.
  • I am kuryaki (https://keybase.io/kuryaki) on keybase.
  • I have a public key whose fingerprint is 7085 92C8 321B FF55 AB93 C105 9369 B713 C74D 8D29

To claim this, I am signing this object:

var object = {"hola":"mundo", "data":""}
var objectBuffer = new Buffer(JSON.stringify(object))
console.log(objectBuffer.length) // this should be 26 OK
var data0 = new Buffer('normal', 'utf-8')
console.log(data0.length) // this should be 6 OK
var data1 = new Buffer('"normal', 'utf-8') // Note extra double quote (it only happends with double quotes weird characters like ó work ok)
console.log(data1.length) // this should be 7 OK
# You will need to make this file executable (chmod u+x) and run it with sudo
apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
mkdir -p /src/erlang
cd /src/erlang
wget http://www.erlang.org/download/otp_src_R15B.tar.gz
tar -xvzf otp_src_R15B.tar.gz
chmod -R 777 otp_src_R15B
cd otp_src_R15B
./configure
make
@kuryaki
kuryaki / gist:8273927
Created January 5, 2014 21:11
Dynamic Router with express ??
var http = require('http')
, express = require('express');
var app = express();
var controllers = [
{
method: 'get',
path: '/',
exec: function(req, res) {
@kuryaki
kuryaki / gist:7474407
Created November 14, 2013 21:12
small start API project
/*
test/someTest.js
*/
'use strict';
require('should');
var supertest = require('supertest');
var app = require('../app');
var request = supertest(app);