Skip to content

Instantly share code, notes, and snippets.

View nbpalomino's full-sized avatar
🎯
Focusing

Nick B. Palomino nbpalomino

🎯
Focusing
View GitHub Profile
@jrichardsz
jrichardsz / install_update_node.sh
Last active June 18, 2020 13:41
Install or Update node.js
# example of node.js 6.1..5 installation
# easy
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm install v6.11.5
nvm install v8.11.2
nvm install v10.4.0
# something easy
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
@nbpalomino
nbpalomino / Webhook_Deploy.php
Last active October 31, 2016 19:36
Script for Deploy using Webhooks
<?php
interface GitProvider {
public function getRepository();
public function getUser();
public function getCommit();
public function getBranch();
public function hashCommit();
}
@nbpalomino
nbpalomino / SocialBase.php
Created March 10, 2014 20:03 — forked from Problematic/SocialBase.php
Ejemplo de como usar herencia de una clase abstracta para desacoplar propiedades de una Entidad.
<?php
namespace UP\SocialBundle\Entity;
/**
* UP\SocialBundle\Entity\SocialBase
* @orm:Entity
* @orm:HasLifecycleCallbacks
* @orm:InheritanceType("JOINED")
* @orm:DiscriminatorColumn(name="class_name", type="string")
@Problematic
Problematic / SocialBase.php
Created May 20, 2011 23:05
Working example of Symfony2 entities with Class Table Inheritance
<?php
namespace UP\SocialBundle\Entity;
/**
* UP\SocialBundle\Entity\SocialBase
* @orm:Entity
* @orm:HasLifecycleCallbacks
* @orm:InheritanceType("JOINED")
* @orm:DiscriminatorColumn(name="class_name", type="string")