Skip to content

Instantly share code, notes, and snippets.

View gilsondev's full-sized avatar
💼
Work

Gilson Filho gilsondev

💼
Work
View GitHub Profile
hiredis.target.mk:102: recipe for target 'Release/obj.target/hiredis/src/hiredis.o' failed
make: *** [Release/obj.target/hiredis/src/hiredis.o] Error 1
make: Leaving directory '/home/gilson/Developer/Study/nodejs_casacodigo/livro-nodejs/projeto/ntalk/node_modules/hiredis/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.3.3-2-ARCH
@gilsondev
gilsondev / roteiro_carreira_java.md
Last active January 12, 2016 20:11
Pequeno roteiro para praticar e ensinar com a criação de projetos com Java

Carreira Java - Roteiro de projetos

Esse pequeno roteiro lista alguns dos projetos, que mesmo simples, mostram como podem ser implementado usando tecnologias desenvolvidas com Java, seja desktop, web ou mobile.

A cada projeto, tem uma lógica de negócios diferentes, e cada uma terá sua arquitetura definida. Pode ocorrer de ter projetos com a mesma regra de negócio, mas com uma outra arquitetura para comparação de versões diferentes.

Siscontatos - Versão 1.0

@gilsondev
gilsondev / restapi.py
Created October 25, 2015 14:12
Resource class with Falcon Framework
# -*- coding: utf-8 -*-
import falcon
try:
import ujson as json
except Exception as e:
import json
class LeroleroResource:
<?php
namespace PROCERGS\LoginCidadao\CoreBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Response;
class ProfileControllerTest extends WebTestCase
{
/**
@gilsondev
gilsondev / login_cidadao_install.md
Created July 20, 2015 23:59
Procedimento de instalação e configuração do login cidadão usando a branch "symphony2.7"

este guia precisa ser testado novamente e corrigido para novos problemas

este guia precisa ser testado novamente e corrigido para novos problemas

Passo a passo

Instalação

Obtendo o Login Cidadão e instalando

@gilsondev
gilsondev / run-app.txt
Created May 22, 2015 18:43
Erro ao rodar o run-app
| Running Grails application
| Error 2015-05-22 15:41:33,823 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table cotacao drop constraint FK_ti5xoc89jvnfjbkbhbahdx9os if exists
| Error 2015-05-22 15:41:33,824 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Table "COTACAO" not found; SQL statement:
alter table cotacao drop constraint FK_ti5xoc89jvnfjbkbhbahdx9os if exists [42102-176]
| Error 2015-05-22 15:41:33,825 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table cotacao drop constraint FK_m6sijb79k67i61378rh2frsep if exists
| Error 2015-05-22 15:41:33,825 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Table "COTACAO" not found; SQL statement:
alter table cotacao drop constraint FK_m6sijb79k67i61378rh2frsep if exists [42102-176]
| Error 2015-05-22 15:41:33,826 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table cotacao drop constraint FK_7gy0iwnjx1hgqofpxyd4af5n6 if exists
| Error
<!DOCTYPE html>
<html data-ng-app="webapp">
<head>
<title>angular nav</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<style>
body{
padding-top: 70px;
}
@gilsondev
gilsondev / gulpfile.js
Created January 17, 2015 19:42
Gulpfile basics
var gulp = require('gulp'),
connect = require('gulp-connect');
gulp.task('watch', function() {
gulp.watch('js/**/*.js', []);
});
gulp.task('webserver', function() {
connect.server({
port: 8000
@gilsondev
gilsondev / web_app_30.xml
Created January 9, 2015 01:32
Header of web.xml to Java projects that use 3.0 version
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name>Web Application with 3.0 version</display-name>
</web-app>
@gilsondev
gilsondev / glossary.py
Last active August 29, 2015 14:06
Organizing queryset with alphabetical groups. The glossary style
import string
glossary = []
object_list = Model.objects.all()
for letter in string.ascii_uppercase:
entries = filter(lambda c: letter == c.word[0], object_list)
letter_list = {'letter': letter, 'entries': entries}
glossary.append(letter_list)