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 / 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 / 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 / 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 / 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 / .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