This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in order to complete Devise initial requirements: | |
# app/views/layout/application.html.erb | |
<% flash.each do |key, value| %> | |
<div class='flash' id='<%= key %>'> | |
<%= value %> | |
</div> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'rqr' | |
string = "http://google.com" | |
mecard = "MECARD:N:Android OS;EMAIL:[email protected];URL:http://google.com;;" | |
RQR::QRCode.create() do |qr| | |
qr.save(string, "google.jpg") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
helpers do | |
def partial(page) | |
erb page, :layout => false | |
end | |
end | |
get '/' do | |
@page_title = 'Mi pagina web' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== IMPORT YOUR EXISTING SITES TO AEGIR IN 8 EASY STEPS | |
1. Upload or rsync full drupal root of your site to static/custom/name | |
2. Chmod everything with command: | |
$ chmod -R 775 static/custom/name | |
and files only with: | |
$ chmod -R 777 static/custom/name/sites/default/files/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# primero colocarnos en el folder donde queremos tener nuestros dotfiles, en el ejemplo, | |
# directamente en el directorio de usuario | |
$ cd | |
# clonar repositorio que ya tienes | |
$ git clone git://github.com/badbit/dotvim.git | |
# esto creara el directorio dotvim en el directorio en que estábamos | |
$ ls -l | |
drwx------+ 65 aantillon staff 2210 Jan 30 02:53 dotvim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ruta/a/directorio/app | |
# la app la instalé dentro de /home/atomix/mse2012, por lo que el comando anterior debería ser: | |
# cd ~/mse2012 | |
$ git pull | |
# traemos el nuevo codigo de la app. | |
$ export RAILS_ENV=production | |
# con esto nos aseguramos de que todos los comandos que ejecutemos se realicen en el ambiente de producción. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instalar y Configurar Git | |
Instalar Git | |
Identificándonos | |
$ git config --global user.name "Mi Nombre" | |
$ git config --global user.email "[email protected]" | |
$ ssh-keygen -t rsa -C "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Agregar en nuestro archivo ~/.gitconfig | |
[alias] | |
hist = log --graph --pretty=format:'%C(yellow)%h%Creset -%C(green)%d%Creset %s %C(cyan)(%cr) %C(magenta)<%an>%Creset' --abbrev-commit --date=relative | |
# hist es un alias, en el ejemplo que se menciona, al escribir en el shell: | |
$ git hist | |
# obtendríamos la siguiente salida: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Avances | |
-Exposiciones | |
http://museoamparo.hechoendrupal.com/es/exposiciones | |
http://museoamparo.hechoendrupal.com/es/exposiciones/actuales/estructura-sin-contenido-una-intervencion-en-el-patio-geometrico-del-ma | |
http://museoamparo.hechoendrupal.com/es/exposiciones/anteriores | |
http://museoamparo.hechoendrupal.com/es/exposiciones/proximas | |
-Coleccion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mis params para el shell prompt | |
export PS1='\[\033[0;36m\]\w\[\033[0m\]$(parse_git_branch)$ ' | |
# resultado | |
~/Documents/Apps/2011/registrame [master]$ | |
# los que menciona Miguel | |
export PS1="\[\033[35m\]\t\[\033[m\]-\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]$(parse_git_branch)$ " | |
# resultado | |
14:49:19-aantillon@phoenix:~/Documents/Apps/2011/registrame$ |
OlderNewer