Skip to content

Instantly share code, notes, and snippets.

Juan Felipe Alvarez Saldarriaga nebiros

Block or report user

Report or block nebiros

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nebiros
nebiros / app.js
Last active Dec 15, 2015
phonegap + jquery + app-UI + dust.js + fastclick.js
View app.js
var App = App || {};
App.UI = (function ($) {
var module = {};
function Template(options) {
var defaults = {
cache: {}
, nav: {target: document.body, backLabel: "Back"}
, templatesDir: "templates"
@nebiros
nebiros / hubot_error.log
Created Jan 14, 2013
hubot-scripts 2.4.0 not found
View hubot_error.log
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 635 bytes, done.
Total 6 (delta 4), reused 0 (delta 0)
-----> Node.js app detected
-----> Resolving engine versions
Using Node.js version: 0.6.20
Using npm version: 1.0.106
-----> Fetching Node.js binaries
@nebiros
nebiros / postgresql.rb
Created Dec 3, 2012
postgres 9.1.6 homebrew formula
View postgresql.rb
require 'formula'
class Postgresql < Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.postgresql.org/pub/source/v9.1.6/postgresql-9.1.6.tar.bz2'
sha1 'a24b7c002463572ee7371f055e566b69e39cda3e'
depends_on 'readline'
depends_on 'libxml2' if MacOS.leopard? # Leopard libxml is too old
depends_on 'ossp-uuid' unless build.include? 'without-ossp-uuid'
@nebiros
nebiros / gist:3206973
Created Jul 30, 2012
homebrew + nokogiri
View gist:3206973
$ brew install libxml2 libxslt
$ brew link libxml2 libxslt
$ gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.8.0/include/libxml2 \
--with-xml2-lib=/usr/local/Cellar/libxml2/2.8.0/lib \
--with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26
@nebiros
nebiros / unicorn.rake
Created Jun 5, 2012
rails rake tasks for managing unicorn server instances + rbenv
View unicorn.rake
ENV["RAILS_ENV"] ||= "production"
module UnicornServer
# http://unicorn.bogomips.org/Unicorn/Configurator.html
CONFIG_PATH = File.join(Rails.root, "config", "unicorn.rb")
PID_PATH = File.join(Rails.root, "tmp", "pids", "unicorn.pid")
RBENV = %x[which rbenv].strip
DAEMON = "bundle exec unicorn_rails"
DAEMON_OPTS = "-c #{CONFIG_PATH} -E #{ENV["RAILS_ENV"]} -D"
@nebiros
nebiros / Gemfile
Created May 23, 2012
rails + unicorn + rbenv + init.d daemon
View Gemfile
group :production do
gem "unicorn"
end
@nebiros
nebiros / .htaccess
Created May 23, 2012
osx localhost apache's config
View .htaccess
# ----------------------------------------------------------------------
# Gzip compression
# ----------------------------------------------------------------------
<IfModule mod_deflate.c>
# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
@nebiros
nebiros / gist:2649031
Created May 9, 2012
gegl 0.2 compilation error
View gist:2649031
==> Installing gimp dependency: gegl
==> Downloading ftp://ftp.gimp.org/pub/gegl/0.2/gegl-0.2.0.tar.bz2
Already downloaded: /Users/nebiros/Library/Caches/Homebrew/gegl-0.2.0.tar.bz2
==> ./configure --disable-docs --disable-debug --prefix=/usr/local/Cellar/gegl/0.2.0
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
@nebiros
nebiros / ubuntu_rbenv_install_how_to.txt
Created Mar 24, 2012
how to install ruby's rbenv in ubuntu
View ubuntu_rbenv_install_how_to.txt
$ sudo aptitude update
$ sudo aptitude install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion
$ cd
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ git clone git://github.com/sstephenson/ruby-build.git
$ cd ruby-build
$ sudo ./install.sh
$ rbenv install 1.9.3-p125
@nebiros
nebiros / fuse4x.rb
Created Mar 22, 2012
fuse4x formula fixed for AM_ICONV error
View fuse4x.rb
require 'formula'
class Fuse4x < Formula
homepage 'http://fuse4x.org/'
url 'https://github.com/fuse4x/fuse.git', :tag => "fuse4x_0_9_0"
version "0.9.0"
depends_on 'gettext'
depends_on 'fuse4x-kext'
depends_on "automake" => :build
You can’t perform that action at this time.