Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Bruno Casali brunoocasali

🏠
Working from home
  • Rockstar Coders
  • window.location
View GitHub Profile
View smile_api_README
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
View sublime-desktop-arch.md
@brunoocasali
brunoocasali / start-neo4j-error
Last active Aug 29, 2015
Command to start the Neo4j
View start-neo4j-error
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 Dec 6, 2014
Command to start the Neo4j with root
View root-executing-start-neo
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 / terminal
Last active Aug 29, 2015
terminal commands - first impressions Neo4j
View terminal
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/
View grub.sh
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 Apr 10, 2015
Erros e mais erros :/ AHAHHAHAHA
View error.sh
# 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:
View testing.rb
module MpaStory
module Job
class FakeNotificationCounter
def initialize
@count = {}
end
def increment(name)
@count[name.to_sym] ||= 0
@count[name.to_sym] += 1
View children_helper_spec.rb
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 Aug 29, 2015
Installing OpenCV at Linux
View instructions.md

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