Skip to content

Instantly share code, notes, and snippets.

View djom202's full-sized avatar

Jonathan Olier djom202

View GitHub Profile

Iniciar apps Node.js en el arranque de nuestro servidor.

Con unos simples pasos lograremos hacer que nuestras apps Node.js se inicien en cada arranque de nuestro servidor:

  1. Logueate en tu servidor y accede a la carpeta /etc/init.d

> $ cd /etc/init.d

@djom202
djom202 / dopush.md
Last active August 29, 2015 14:13 — forked from fastcodecoq/dopush.md

SIMPLE PUSH

Con este shell script simplificaremos el proceso para hacer un push a nuestros repos Git.

Nota: Se asume que se tiene un repositorio Git previamente configurado.

USO

Install Ionic to dev android app on ubuntu 14.04
0. Instal ubuntu-14.04-desktop-amd64.iso
sudo apt-get update
sudo apt-get install exfat-fuse exfat-utils
sudo reboot
1. Copy jdk-7u60-linux-x64.tar.gz, apache-ant-1.9.4-bin.tar.gz to /opt and copy adt-bundle-linux-x86_64-20140321.zip to HOME/android
cd /opt
sudo tar zxvf jdk-7u60-linux-x64.tar.gz
@djom202
djom202 / Focus.js
Last active August 29, 2015 14:11 — forked from fastcodecoq/Focus.js
(function($){
$.fn.Focus = function(){
$(this).focus();
$(this).attr('autofocus','');
}
$(function(){

Gomosoft

Como actualizar a partir del repo master nuestro repo forked

A continuación configuraremos nuestro repositorio local, para que este tenga la habilidad de actualizarce desde dos origenes (origin/master y upstream/master):

origin/master: es nuestro repositorio forked en github. upstream/master: es el repositorio master al cual le hemos hecho fork

Step 1: Clone the bundles into your Sublime Text packages directory

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus

Step 2: Restart Sublime Text 2

@djom202
djom202 / 0_reuse_code.js
Created May 3, 2014 15:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console