Skip to content

Instantly share code, notes, and snippets.

View nossila's full-sized avatar

Alisson Patricio nossila

View GitHub Profile
type UseCase implements Asset {
uuid: ID!
image: [Image] @relation(name: "HAS_IMAGE", direction: "OUT")
name: String
slug: String
summary: String
graphgist: GraphGist @relation(name: "FOR_USE_CASE", direction: "IN")
num_graphgists: Int @cypher(statement: "RETURN this")
my_perms: [String]
server {
listen 80;
listen [::]:80;
server_name biomas.octoplustest.com;
charset utf-8;
client_max_body_size 100M;
send_timeout 600s;

Keybase proof

I hereby claim:

  • I am nossila on github.
  • I am alisson (https://keybase.io/alisson) on keybase.
  • I have a public key whose fingerprint is 2BC7 C8BE 01E6 0C73 8776 83A1 810E 5EF6 9A05 B2F8

To claim this, I am signing this object:

import React from 'react';
import Relay from 'react-relay';
import ReactList from "react-list";
const pageSize = 30;
class Home extends React.Component {
constructor(props){
super(props);
this.renderRow = this.renderRow.bind(this);
@nossila
nossila / nginx.conf
Created January 17, 2013 16:06
This gist shows how to setup a custom error_page on nginx when using a simple upstream server
server {
location / {
proxy_pass http://upstreamserver;
# or
# try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/error-pages/;
@nossila
nossila / nginx.conf
Created January 17, 2013 16:04
This gist shows how to setup a custom error_page on nginx when using error_page as a way to redirect requests to a upstream server. You need to set recursive_error_pages on for error_page to work like expected.
server {
recursive_error_pages on;
location / {
error_page 404 = @memcached;
}
location @memcached {
proxy_pass http://upstreamserver;
}
@nossila
nossila / vaga.md
Created May 13, 2011 18:41 — forked from herberthamaral/vaga.md
Vaga de estagiário @DeskMetricsBR

A DeskMetrics

A DeskMetrics é umastartup global que fornece informações estratégicas em tempo real sobre o uso de sofware. Somos uma startup bem jovem, com menos de um ano de vida e logo nesse início, conseguimos dois destaques no TechCrunch, um dos maiores blogs sobre startups do mundo.

Atualmente estamos com uma sede na Savassi em Belo Horizonte e estamos abrindo um outro escritório em Nova Iorque.

Quem está usando a DeskMetrics?

/* Python(ish) string formatting:
* >>> format('{0}', ['zzz'])
* "zzz"
* >>> format('{x}', {x: 1})
* "1"
*/
var format = (function() {
var re = /\{([^}]+)\}/g;
return function(s, args) {
return s.replace(re, function(_, match){ return args[match]; });