Skip to content

Instantly share code, notes, and snippets.

@rodrigomaia
rodrigomaia / error.libv8
Created May 30, 2014 18:43
Could not find libv8
gem install libv8 -- --with-system-v8
bundle config build.libv8 --with-system-v8
@rodrigomaia
rodrigomaia / erro.rmagick
Last active August 29, 2015 14:01
Can't install RMagick 2.13.2. Can't find MagickWand.h.
# Erro no bundle
brew install pkgconfig
brew install imagemagick
export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"
# Erro no rails s
brew install ghostscript
brew install libtool --universal
brew link libtool
@rodrigomaia
rodrigomaia / Untitled.txt
Created March 26, 2014 17:40
No description
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST http://127.0.0.1:3000/prechamados/receber.json -d "{\"email\": {\"from\": \"[email protected]\", \"to\": \"[email protected]\", \"subject\": \"estou com um novo problema\", \"body\": \"Corpo do chamado do novo problema..\", \"attach\": \"TESTE DE ANEXRES\"}}" -v
@rodrigomaia
rodrigomaia / newrelic.atlas
Created March 24, 2014 13:37
New Relic - Atlas
https://rpm.newrelic.com/accounts/642017/applications/setup
https://rpm.newrelic.com/accounts/642017/servers/get_started#platform=debian
@rodrigomaia
rodrigomaia / error.solr-404.sh
Last active February 12, 2016 11:15
Rails 4: RSolr::Error::Http (RSolr::Error::Http - 404 Not Found
1) stopping all running solr processes
2) removing the solr folder BUT keep a copy of it accessible in case you need some of the old config, synonyms and such.
3) gem uninstall all related gems
> for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
4) bundle install
5) rails generate sunspot_rails:install
fontes:
@rodrigomaia
rodrigomaia / time.mysql
Created December 10, 2013 11:58
Manipulação de hora no MySQL
http://www.devmedia.com.br/funcoes-de-manipulacao-de-hora-no-mysql/25558
@rodrigomaia
rodrigomaia / bundle.error.ssh
Last active December 29, 2015 13:49
OpenSSL Errors and Rails – Certificate Verify Failed
From http://railsapps.github.io/openssl-certificate-verify-failed.html
$ rvm -v
# rvm 1.19.1 (stable)
$ rvm osx-ssl-certs status all
# Certificates for...
$ rvm osx-ssl-certs update all
# Updating certificates...
@rodrigomaia
rodrigomaia / rvmrc.txt
Created November 27, 2013 17:46
Typical RVM Project Workflow (how to create rvmrc)
From http://rvm.io/workflow/projects
rvm --create use ree@tedxperth --rvmrc
@rodrigomaia
rodrigomaia / wishlist.2013
Last active December 27, 2015 18:29
Wishlist
http://www.buildbot.com.br/produto/arduino-motor-shield-rev-3/
http://www.labdegaragem.org/loja/37-robotica/esteira-de-robo-tanque.html
http://www.labdegaragem.org/loja/37-robotica/suporte-pan-tilt.html
http://www.robocore.net/modules.php?name=GR_LojaVirtual&prod=232
http://www.robocore.net/modules.php?name=GR_LojaVirtual&prod=188
http://www.robocore.net/modules.php?name=GR_LojaVirtual&prod=197
http://www.robocore.net/modules.php?name=GR_LojaVirtual&prod=258
http://www.robocore.net/modules.php?name=GR_LojaVirtual&prod=183
http://www.robocore.net/modules.php?name=GR_LojaVirtual&prod=233
http://www.labdegaragem.org/loja/42-acessorios/gabinete-pcduino-arduino-transparente.html
@rodrigomaia
rodrigomaia / github_api.v3
Created October 15, 2013 16:06
Ruby interface to github API v3
https://github.com/peter-murach/github