Skip to content

Instantly share code, notes, and snippets.

View embs's full-sized avatar

Matheus Santana embs

View GitHub Profile
@viniciusteles
viniciusteles / gist:556029
Created August 29, 2010 06:20
Sete Atitudes para Hackear a Indústria de Software
Sete Atitudes para Hackear a Indústria de Software
By Klaus Wuestefeld
1) Torne-se excelente.
Seja realmente bom em alguma coisa. Não fique só choramingando ou
querendo progredir às custas dos outros. Não pense q pq vc sentou 4
anos numa faculdade ouvindo um professor falar sobre software q vc
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo
@nz
nz / Delete all documents in a Solr index using curl.md
Last active February 12, 2024 10:55
Delete all documents in a Solr index using curl
# http://wiki.apache.org/solr/FAQ#How_can_I_delete_all_documents_from_my_index.3F
# http://wiki.apache.org/solr/UpdateXmlMessages#Updating_a_Data_Record_via_curl

curl "http://index.websolr.com/solr/a0b1c2d3/update?commit=true" -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>'

I'm amused at the traction this little gist is getting on Google! I would be remiss not to point out that six+ years later I'm still helping thousands of companies on a daily basis with their search index management, by providing managed Solr as a service over at Websolr, and hosted Elasticsearch at Bonsai. Check us out if you'd like an expert helping hand at Solr and Elasticsearch hosting, ops and support!

@ftao
ftao / install_pytho27.sh
Created July 7, 2011 10:00
install python 2.7 on debian 6
#!/bin/sh
mkdir ~/down/
cd ~/down/
sudo apt-get install build-essential
wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar -xzf Python-2.7.2.tgz
cd Python-2.7.2
sudo apt-get install libsqlite3-dev zlib1g-dev libncurses5-dev
sudo apt-get install libgdbm-dev libbz2-dev libreadline5-dev
sudo apt-get install libssl-dev libdb-dev
@jasonrudolph
jasonrudolph / about.md
Last active May 14, 2024 16:36
Programming Achievements: How to Level Up as a Developer
@brunnogomes
brunnogomes / gist:1584523
Created January 9, 2012 19:32 — forked from filipevarjao/gist:1579616
Configurando ambiente ruby
Instalação do Ruby 1.8/Rails 3 usando o RVM no Ubuntu
1) Colar essa linha no terminal (bash)
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)l libssl-dev libreadline5-dev zlib1g-dev
2) Instalar a versão 1.8.7 do ruby com
$ rvm install 1.8.7
@guiocavalcanti
guiocavalcanti / gist:1600711
Created January 12, 2012 14:10
Configurando ambiente ruby

O que são essas coisas?

  • RVM: gerenciador de versões de ruby. Porém o mais legal dele é facilitar a compilação.
  • RubyGems: gerenciador de dependências entre Gems (biblioticas ruby). É o apt-get do Ruby.
  • Rails 3: um gem (biblioteca) da linguagem Ruby
  • MySQL: Sistema de gerenciamento de banco de dados usado no Redu
  • SQLite: Sistema de gerenciamento de banco de dados portátil.

Instalação do Ruby 1.8/Rails 3 usando o RVM no Ubuntu

@Mikke
Mikke / 01_step.sh
Created March 13, 2012 20:35
Rails 3 has_many use checkboxes and multiple select in the form
rails g scaffold Book title:string description:text
rails g scaffold Pubhouse title:string address:text
rails g model BookPubhouse book_id:integer pubhouse_id:integer
rake db:migrate
@yuki24
yuki24 / rack.rb
Created April 5, 2012 05:37
simplest rack app
require 'rack'
Rack::Server.start(app: Proc.new{|env| [200, {'Content-Type' => 'text/html'}, env]}, Port: 8080)
@fltiago
fltiago / References
Created May 10, 2012 16:51
Cross Domain Request
JSONP
-> http://en.wikipedia.org/wiki/JSONP
Cross-origin resource sharing
-> http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing
http://www.nczonline.net/blog/2010/05/25/cross-domain-ajax-with-cross-origin-resource-sharing/
print 'teste'