Skip to content

Instantly share code, notes, and snippets.

View foca's full-sized avatar

Nicolás Sanguinetti foca

View GitHub Profile
Rails CMS alternatives
======================
Active projects:
---------------
adva-cms
repo: http://github.com/svenfuchs/adva_cms/
site: http://adva-cms.org/
Last update: 11/24/09
"the cutting edge Rails CMS platform"
@foca
foca / gist:238179
Created November 18, 2009 19:43 — forked from cschneid/gist:238124
### Make history behave itself
export HISTCONTROL=ignoredups # don't put duplicate lines in history
shopt -s histappend # make Bash append rather than overwrite history on disk
shopt -s cdspell # Help me get places
# write previous line to disk when prompt is displayed
export PROMPT_COMMAND='history -a'
export HISTFILESIZE=100000000
export HISTSIZE=10000000
@foca
foca / file.rb
Created September 17, 2009 18:19
class Array
def includes_a?(other_array)
self | other_array == self
end
def includes_b?(other_array)
(other_array - self).empty?
end
{
:a => 2,
# NOTE for partials, you need to include the format
# otherwise, it'll fail to find byows/_byow.erb even if byows/_byow.html.erb exists
:b => render(:partial => 'example.html')
}.to_json
@foca
foca / gist:55907
Created February 1, 2009 17:02 — forked from sinatra/gist:55898
# This method is heavily adapted from the Rails method of determining the subdomain.
require 'rubygems'
require 'sinatra'
helpers do
def subdomains(tld_len=1) # we set tld_len to 1, use 2 for co.uk or similar
@subdomains ||= if (!request.host.nil? &&
/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.match(request.host))
request.host.split('.')[0...(1 - tld_len - 2)]
else
Información del orador:
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información:
* Autores: Nombre completo y resumen curricular
Evan Henshaw-Plath
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas)
Desarrolladores
Información del orador:
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información:
* Autores: Nombre completo y resumen curricular
Evan Henshaw-Plath
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas)
Desarrolladores
Información del orador:
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información:
* Autores: Nombre completo y resumen curricular
Evan Henshaw-Plath
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas)
Gerentes & Desarrolladores
- Re-size displays
- Name computer and drive if not already done
- Set Network connection settings (default host 222 for primary system)
- Turn on all appropriate Sharing settings
- Start processes that will take a while:
- Start downloading latest Xcode package
- Start Software Update
- Start Time Machine's first backup to Time Capsule
- Start downloading latest EVE Online client
- Create /usr/local/src
Once upon a time a goat travelled happily through a green pasture