Skip to content

Instantly share code, notes, and snippets.

View hubertursua's full-sized avatar

Hubert Ursua hubertursua

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hyubs on github.
  • I am hyubs (https://keybase.io/hyubs) on keybase.
  • I have a public key ASComsZ1JTIPeAIyQh5dI8qMAuJf2_7ale9WrAcBDwoJZAo

To claim this, I am signing this object:

process.on('SIGTERM', function () {
knex.destroy(function () {
process.exit(0);
});
});
doctype html
html
head
meta(charset="UTF-8")
title AdminLTE 2 | Dashboard
meta(content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no', name='viewport')
link(rel="stylesheet", href="/bower/admin-lte/bootstrap/css/bootstrap.min.css")
link(rel="stylesheet", href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css")
link(rel="stylesheet", href="http://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css")
link(rel="stylesheet", href="/bower/admin-lte/dist/css/AdminLTE.min.css")
@hubertursua
hubertursua / relative-path.sh
Created March 18, 2015 09:25
Get path of running script relative to present working directory
#!/bin/bash
# Hyubs Ursua <hyubs.u@gmail.com>
# MIT License
# Pre-requisite: If running OSX, install coreutils using homebrew or macports.
# The two if-statements checks and uses the correct command
if ! type "greadlink" > /dev/null 2>&1
@hubertursua
hubertursua / node-forever-upstart.conf
Last active December 7, 2018 17:53
NodeJS, Forever, and Upstart (Ubuntu)
#!upstart
start on filesystem and started networking
stop on shutdown
expect fork
setuid ubuntu
env HOME="/home/ubuntu"
@hubertursua
hubertursua / node-windows.md
Last active August 29, 2015 14:05
Install Node.js and other dependencies on Windows
#!/bin/bash
echo -n "GitHub User: "
read USER
echo -n "GitHub Password: "
read -s PASS
echo ""
echo -n "GitHub Repo (e.g. foo/bar): "