Skip to content

Instantly share code, notes, and snippets.

View amrnt's full-sized avatar

Amr Tamimi amrnt

View GitHub Profile
# ========================================
# Testing n-gram analysis in ElasticSearch
# ========================================
curl -X DELETE localhost:9200/ngram_test
curl -X PUT localhost:9200/ngram_test -d '
{
"settings" : {
"index" : {
"analysis" : {
@amrnt
amrnt / ror.md
Created August 8, 2012 23:40 — forked from ticktricktrack/ror.md
RoR dependencies

RoR setup instructions: I guess you already have XCode on your machine.

In general: avoid sudo where you can, with this setup you can install and run everything without sudo

homebrew

http://mxcl.github.com/homebrew/

here is a list of the packages on my machine

@amrnt
amrnt / Gemfile
Created August 11, 2012 18:29 — forked from igrigorik/Gemfile
HTML5 SSE / EventSource demo with Goliath
source :gemcutter
gem 'goliath', :git => 'git://github.com/postrank-labs/goliath.git'
gem 'em-synchrony', :git => 'git://github.com/igrigorik/em-synchrony.git'
@amrnt
amrnt / gist:3660339
Created September 6, 2012 20:59
SublimeLinter instructions
Package Control Messages
========================
SublimeLinter:
-------------
SublimeLinter
=============
SublimeLinter is a plugin that supports "lint" programs (known as "linters"). SublimeLinter highlights
@amrnt
amrnt / 0-readme.md
Created December 1, 2012 23:26 — forked from burke/0-readme.md
ruby-1.9.3-p327 cumulative performance patch for rbenv

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@amrnt
amrnt / gemspec-usage.md
Created December 10, 2012 23:24 — forked from holman/gemspec-usage.md
test/spec/mini

Just install this in your apps like so:

gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'

@amrnt
amrnt / upgrade_psql.sh
Created February 9, 2013 12:47
Upgrading PostgreSQL
# from: 9.2.2
# to: 9.2.3
mv /usr/local/var/postgres /usr/local/var/postgresOLD
brew upgrade postgresql
initdb /usr/local/var/postgres -E utf8
pg_upgrade -b /usr/local/Cellar/postgresql/9.2.2/bin -B /usr/local/Cellar/postgresql/9.2.3/bin -d /usr/local/var/postgresOLD -D /usr/local/var/postgres

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

@amrnt
amrnt / pr.md
Created March 25, 2013 13:44 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@amrnt
amrnt / Gemfile
Created June 22, 2013 10:20
Ruby Ramallah - Day II
source "https://rubygems.org/"
gem 'sinatra'
gem 'nokogiri'