This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>We're under construction / Maintenance </title> | |
<!-- Bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# HowTo | |
# Put it at /usr/local/bin/armaggeDocker.sh | |
# Give permissions: chmod a+x /usr/local/bin/armaggeDocker.sh | |
# Delete containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively | |
# $sudo mv /path/to/killAllNodeModules.sh /usr/local/bin/killAllNodeModules | |
# $sudo chmod a+x /usr/local/bin/killAllNodeModules | |
find . -name "node_modules" -exec rm -rf '{}' + | |
find . -name "bower_components" -exec rm -rf '{}' + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# [DevLab](https://github.com/TechnologyAdvice/DevLab) | |
# $sudo mv /path/to/killAllContainers.sh /usr/local/bin/killAllContainers | |
# $sudo chmod a+x /usr/local/bin/killAllContainers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
#docker rmi $(docker images -q) | |
#docker rmi $(docker images -q --filter "dangling=true") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
_ _ | |
| | (_) | |
___ _____ ________| |_ ___ ______ _ ___ ___ _ __ | |
/ __/ __\ \ / /______| __/ _ \______| / __|/ _ \| '_ \ | |
| (__\__ \\ V / | || (_) | | \__ \ (_) | | | | | |
\___|___/ \_/ \__\___/ | |___/\___/|_| |_| | |
_/ | | |
|__/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express') | |
var app = express() | |
app.get('/', function (req, res) { | |
var params = {}; | |
if (!_.isUndefined (req.params.param1)) { params.param1 = req.params.param1; } | |
if (!_.isUndefined (req.params.param2)) { params.param2 = req.params.param2; } | |
if (!_.isUndefined (req.params.param3)) { params.param3 = req.params.param3; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
// Dependencias | |
var Q = require('q'); // Necesario instalar con $npm install Q | |
var http = require('http'); // Parte del core de node, no necesario instalar. | |
// C贸digo de la funci贸n que devuelve una promesa | |
var promesa = function () { | |
console.log('Soy promesa: empiezo'); | |
var d = Q.defer(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
// Dependencias | |
var Q = require('q'); // Necesario instalar con $npm install Q | |
var http = require('http'); // Parte del core de node, no necesario instalar. | |
// C贸digo de la funci贸n que devuelve una promesa | |
var promesa = function () { | |
console.log('Soy promesa: empiezo'); | |
var d = Q.defer(); |