Skip to content

Instantly share code, notes, and snippets.

View montogeek's full-sized avatar

Fernando Montoya montogeek

View GitHub Profile
UPDATE personas
SET
updated_at = (
SELECT personas_23_dic.updated_at
FROM personas_23_dic
WHERE DATE(personas.updated_at) = '2013-12-24' and personas.id = personas_23_dic.id
)
WHERE EXISTS (
SELECT *
FROM personas_23_dic.id = personas.id
El joven discípulo de un filósofo sabio llegó a casa de este y le dijo:
—Maestro, un amigo suyo estuvo hablando mal de usted.
—¡Espera! —lo interrumpió el filósofo—.
¿Ya hiciste pasar por las tres rejas lo que vas a contarme?
—¿Las tres rejas? —Sí. La primera es la reja de la verdad. ¿Estás seguro de que lo que quieres decirme es absolutamente cierto?
—No; lo oí comentar a unos vecinos.
—Entonces al menos lo habrás hecho pasar por la segunda reja, que es la bondad. Esto que deseas decirme, ¿es bueno para alguien?
—No, en realidad no. Al contrario...
— ¡Vaya! La última reja es la necesidad. ¿Es necesario hacerme saber eso que tanto te inquieta?
—A decir verdad, no.
@montogeek
montogeek / Vagrantfile
Created March 4, 2014 18:07
My Vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Config Github Settings
github_username = "fideloper"
github_repo = "Vaprobash"
github_branch = "master"
# Server Configuration
server_ip = "192.168.33.10"
MontoGeek@INFINITE /d/simr
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 5432 => 5432 (adapter 1)
[default] Running 'pre-boot' VM customizations...
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Config Github Settings
github_username = "fideloper"
github_repo = "Vaprobash"
github_branch = "master"
# Server Configuration
server_ip = "192.168.33.10"
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
MontoGeek@INFINITE /d/Web/Moodle
$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@moodle:~$ sudo mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3`,nolock,vers=3,udp,noatime /vagrant /vagrant
unknown mount option `noatime'
valid options:
0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files (x86)\\nodejs\\node.exe',
1 verbose cli 'c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install' ]
2 info using npm@1.4.3
3 info using node@v0.10.26
4 warn package.json Popcorn-Time@0.2.0 No repository field.
5 verbose readDependencies using package.json deps
6 verbose install where, deps [ 'd:\\Imagine\\Beyond\\popcorn-app',
6 verbose install [ 'adm-zip',
@montogeek
montogeek / defaultImage.js
Created March 27, 2014 20:37
Load a default image for broken images
function defaultImage() {
$('img').each(function() {
var image = $(this);
if(image.context.naturalWidth == 0 || image.readyState == 'uninitialized'){
$(image).unbind('error').attr(
'src', 'path/no_image.png'
);
}
});
}

Keybase proof

I hereby claim:

  • I am montogeek on github.
  • I am montogeek (https://keybase.io/montogeek) on keybase.
  • I have a public key whose fingerprint is 6E18 431E 4765 B233 C78D 6A66 8DEC EF51 6073 E460

To claim this, I am signing this object: