Skip to content

Instantly share code, notes, and snippets.

View brunoocasali's full-sized avatar

Bruno Casali brunoocasali

View GitHub Profile
@brunoocasali
brunoocasali / smile_api_README
Created April 2, 2014 03:56
Createing 1° Gist
Hello, this API makes you more happy :D, just in your begining but, I have much love to make it real.
The Smile API, going to a better World on the Web
@brunoocasali
brunoocasali / terminal
Last active August 29, 2015 14:10
terminal commands - first impressions Neo4j
bruno@cabuum:~$ cd /opt/
bruno@cabuum:/opt$ sudo tar -zxvf ~/Downloads/neo4j-community-2.1.6-unix.tar.gz
[sudo] password for bruno:
neo4j-community-2.1.6/
neo4j-community-2.1.6/plugins/
neo4j-community-2.1.6/data/
neo4j-community-2.1.6/data/log/
neo4j-community-2.1.6/lib/
neo4j-community-2.1.6/system/
neo4j-community-2.1.6/system/lib/
@brunoocasali
brunoocasali / start-neo4j-error
Last active August 29, 2015 14:10
Command to start the Neo4j
bruno@cabuum:/opt/neo4j-community-2.1.6/bin$ ./neo4j start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow
Starting Neo4j Server...ERROR: No write access to data/ directory, run either as user bruno or root
@brunoocasali
brunoocasali / root-executing-start-neo
Created December 6, 2014 13:58
Command to start the Neo4j with root
bruno@cabuum:/opt/neo4j-community-2.1.6/bin$ sudo ./neo4j start
[sudo] password for bruno:
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow
Starting Neo4j Server...process [10225]... waiting for server to be ready............. OK.
http://localhost:7474/ is ready.
bruno@cabuum:/opt/neo4j-community-2.1.6/bin$
@brunoocasali
brunoocasali / grub.sh
Created March 13, 2015 19:34
GrubFile
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=Antergos
GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=ba14b999-aa05-494d-ae56-52c3190cd7a2 quiet splash nomodeset"
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
@brunoocasali
brunoocasali / error.sh
Created April 10, 2015 17:37
Erros e mais erros :/ AHAHHAHAHA
# SEM USAR O require... no próprio arquivo
[bruno@chp repense-asi]$ rspec spec/jobs/the_job_spec.rb
F
Failures:
1) TheJob sets condition
Failure/Error: expect(subject.condition).to equal(subject.artifacts.number)
NoMethodError:
@brunoocasali
brunoocasali / testing.rb
Created April 13, 2015 19:23
Tirei o proc!
module MpaStory
module Job
class FakeNotificationCounter
def initialize
@count = {}
end
def increment(name)
@count[name.to_sym] ||= 0
@count[name.to_sym] += 1
require 'rails_helper'
module MpaStory
module Debugger
RSpec.describe ChildrenHelper, type: :helper do
describe '.show_as_link?' do
context 'when the archetype is not a story' do
let(:archetype) { create(:mpa_story_archetype, tier: ArchetypeTier::PROCESS) }
it 'needs to return a link tag' do
@brunoocasali
brunoocasali / instructions.md
Last active August 29, 2015 14:26
Installing OpenCV at Linux

OpenCV at Linux - How to install?

First of all you'll need to install this:

[compiler] sudo apt-get install build-essential
[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev