Skip to content

Instantly share code, notes, and snippets.

View eloyesp's full-sized avatar

Eloy Espinaco eloyesp

View GitHub Profile
@eloyesp
eloyesp / archivo.md
Last active August 29, 2015 14:03 — forked from olvap/archivo.md

App de rails

rails new archivo cd archivo

scaffold

La instrucción scaffold, ejecuta la instrucción model y controller para hacer un CRUD de un recurso dado. Es como hacer rails g model y rails g controller.

rails g scaffold file_record title 

rails g scaffold office name

@eloyesp
eloyesp / archivo.md
Last active August 29, 2015 14:03 — forked from olvap/archivo.md

App de rails

rails new archivo
cd archivo

Scaffold

La instrucción scaffold, ejecuta la instrucción model y controller para hacer un CRUD de un recurso dado. Es como hacer rails g model y rails g controller.

# To deploy the command is:
sudo chef-client
# being in the deployment group makes sense
sudo usermod -a -G deployer $USER
# good defaults for ~/.bash_aliases
#!/usr/bin/env ruby
#
# Syncs Ruby binstubs for ruby-communal-gems.
# Run this everytime you install a new Ruby, or when you install a new gem
# with a bin/ command. (ie, when you typically do rbenv rehash)
#
# See: https://github.com/tpope/rbenv-communal-gems/issues/5
#
require 'fileutils'
@eloyesp
eloyesp / adoptiva.pub
Last active August 29, 2015 14:07
My public keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9saZ+h1Mt0BHD4GQ/LMvrALXoNbo+0ThLSpQ+LRPbyoCZATIX8lsid522I/3q8RMJAX/kcc8OBspiiXZ8NUYOnITKf9TG1E6Se8pVIff2/fVMWxb2ENtsBBB7mEViEkpqQoImsRXYM5Nxcw/Hk1aJ+Zz78yph9sG/I6pWEdwsqIg67qsH0HuG63K+YnFvJJlATYJx8wKXTrNzuZD6SYRpglmG459r2nnuDmcsR5Tp3qYZi6g0VsNNIZ4K+rb6xQW4kAkb+xtI/xNBlKu8VpjK4OpC6BmRT21j5zNcR7ButIa6tNUbLT5IzM/rf5Q9wXgfnr11FcxN15TaA4c1qGDx eloyesp@gmail.com
[
{
"created_at": "2010-12-21T01:10:50Z",
"domicilio": "Blas Parera 7831",
"id": 1,
"lat": -31.5916,
"lng": -60.724,
"localidad_id": 4807,
"name": "Menapace",
"telefono": "4890660",
@eloyesp
eloyesp / fix_profile_altoros.js
Created March 4, 2015 17:34
Fix de una pagina horrible hecha con ASP.net
// Este script hace más o menos usable la página de perfiles de Altoros,
// es necesario correrlo en la consola una vez en cada tab.
function togglePostBack() {
var emptyFunction = function(target) {
console.log(target);
if (target.indexOf("Middle1$Button") < 0) {
return;
} else {
return window.originalPostBack();
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>tarjeta</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<style id="jsbin-css">
section.profile {
box-sizing: border-box;
display: inline-block;
# Uses password from .netrc when stablishing connections
use strict;
use warnings;
use vars qw($VERSION %IRSSI);
use Irssi;
use Data::Dumper;
$VERSION = '0.01';