Skip to content

Instantly share code, notes, and snippets.

View ciberado's full-sized avatar

Javier Moreno ciberado

View GitHub Profile
@ciberado
ciberado / index.php
Created November 2, 2015 13:35
Hello world en php
<html>
<head>
<title>Prueba de PHP</title>
</head>
<body>
<?php echo '<p>Hola Mundo</p>'; ?>
</body>
</html>
@ciberado
ciberado / instalar-bower
Last active December 16, 2015 16:54
Docker orquestration with Swarm (haproxy)
Container Orchestration with Docker Swarm
==================================================
Key concepts quick review
--------------------------------------------------
+ Images
+ Dockerfile
+ Docker Hub
+ Host
@ciberado
ciberado / RiverSongWebservice.js
Last active August 29, 2015 14:19
RiverSongWebservice
var http = require('http');
var server = http.createServer(function (request, response) {
console.log('Knock knock.');
response.writeHead(200, {"Content-Type": "application/json"});
var data = { 'message' : 'Hello Sweetie' };
response.end(JSON.stringify(data) + '\n');
});
server.listen(8888);
@ciberado
ciberado / gist:ec89b8beb591d88edc26
Created August 19, 2014 15:37
Parche al gruntfile de yeoman para angularjs con los cambios necesarios para actualizar los less de bootstrap
// Generated on 2014-08-19 using generator-angular 0.9.5
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
var fs = require('fs');
var ejecutar = function(ruta, fnFichero, fnFinal) {
var numFicherosPendientes = 1;
var numRecursivas = 0;
var procesarCarpeta = function(ruta) {
fs.lstat(ruta, function(err, stats) {
if (err) {
numFicherosPendientes = numFicherosPendientes - 1;