Skip to content

Instantly share code, notes, and snippets.

View enspdf's full-sized avatar
💻
Reacting ⚛️ :atom:

Sebastian Higuita Castañeda enspdf

💻
Reacting ⚛️ :atom:
View GitHub Profile
@enspdf
enspdf / gist:a3e671df39b33722fd11dacf3f39f436
Created August 31, 2016 04:25 — 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
@enspdf
enspdf / web-servers.md
Created August 18, 2016 02:47 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000