Skip to content

Instantly share code, notes, and snippets.

View darkjhonas's full-sized avatar

Jhon Alexander Leon Ortecho darkjhonas

View GitHub Profile
@darkjhonas
darkjhonas / Instalacion MongoDB Windows.md
Created September 21, 2017 15:38 — forked from AlejoJamC/Instalacion MongoDB Windows.md
Pasos para instalar MongoDB en Windows

Instalación de MongoDB en MS Windows

  1. Obtener el instalador para Windows del centro de descargas.
  2. Iniciar el instalador como administrador.
  3. Crear las carpeta de almacenamiento y configuracion de MongoDB.
  • Dar permisos escritura y lectura a estas carpetas.
 C:\data 
 C:\data\db
@darkjhonas
darkjhonas / PhpFireBaseNotificationSample.php
Created September 15, 2017 21:49 — forked from MohammadaliMirhamed/PhpFireBaseNotificationSample.php
Simple PHP FireBase (FCM) script showing how to send an Android push notification. Be sure to replace the SERVER_API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call http://sample.com/PhpFireBaseNotificationSample.php?id=THE_DEVICE_REGISTRATION_ID The main Code For GCM is https://gist.github.com/prime…
<?php
#API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = $_GET['id'];
#prep the bundle
$msg = array
(
'body' => 'Body Of Notification',
@darkjhonas
darkjhonas / server.php
Created May 30, 2016 15:57 — forked from pawitp/server.php
Example for array/struct with nuSOAP
<?php
date_default_timezone_set('Asia/Bangkok');
require_once "lib/nusoap.php";
// Create SOAP Server
$server = new soap_server();
$server->configureWSDL("Test_Service", "http://www.example.com/test_service");
// Example "hello" function
function hello($username) {