Skip to content

Instantly share code, notes, and snippets.

View RoverWire's full-sized avatar

Luis Felipe Perez RoverWire

  • Colima, Mexico
View GitHub Profile
@RoverWire
RoverWire / .env
Created December 4, 2017 16:43
CA Docker Setup
############################
# General Setup
############################
### Data Storage Path
DATA_SAVE_PATH=~/.engine-data
### Container Prefix
CONTAINER_PREFIX=cloudapp
@RoverWire
RoverWire / docker-compose.yml
Last active October 9, 2017 23:30
Superpedestrian Docker
version: '2'
services:
postgres:
image: postgres:latest
container_name: sp_postgres
volumes:
- ~/.docker-engine/postgresql:/var/lib/postgresql/data
ports:
- "5432:5432"
@RoverWire
RoverWire / fixes.md
Last active November 13, 2016 01:33
Windows Front End Troubleshoot

Fixes para problemas con windows

Instalación

Una vez instalado, hagan prueba de instalar un paquete de node llamado name-that-color, en línea de comando escriban:

npm install -g name-that-color
@RoverWire
RoverWire / setup.md
Last active February 17, 2016 23:17
Ubuntu Edge Configuration

Ubuntu + Apache + Nginx (as reverse proxy) + PHP + MariaDB + phpMyAdmin

Before Start

Log in to your ubuntu server as a root user.

Supposing that

  • server ip address is: 1.2.3.4
  • domain my-domain.com
@RoverWire
RoverWire / facebook.php
Created January 27, 2016 05:06
This snippet will help you to get your Facebook fan count, in full text. Your page ID can be found at the address http://facebook.com/yourpagename/info.
<?php
$page_id = "302807633129400";
$xml = @simplexml_load_file("http://api.facebook.com/restserver.php?method=facebook.fql.query&query=SELECT%20fan_count%20FROM%20page%20WHERE%20page_id=".$page_id."") or die ("a lot");
$fans = $xml->page->fan_count;
echo $fans;
@RoverWire
RoverWire / ubucleaner-desktop.sh
Last active October 4, 2017 15:06
Server clean script
#!/bin/bash
#
# From openDesktop
# http://opendesktop.org/content/show.php/Ubucleaner?content=71529
YELLOW="\033[1;33m"
RED="\033[0;31m"
ENDCOLOR="\033[0m"
if [ "$USER" != root ]; then
@RoverWire
RoverWire / Classloader.php
Created September 1, 2015 01:51
Autoloader Class
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
@RoverWire
RoverWire / slug_helper.php
Created November 20, 2014 04:37
String to Slug Converter
/**
* URL Slug
*
* Converts an string into a formated url slug string
*
* @access public
* @param string str
* @return string
*/
'use strict';
var request = require('request');
module.exports = function (grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);
@RoverWire
RoverWire / package.json
Created May 7, 2014 04:32
package.json example
{
"name": "tessel-portal",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app"
},
"dependencies": {
"express": "4.0.0",
"jade": "1.3.1",