Skip to content

Instantly share code, notes, and snippets.

Habibur Rahman iamhabib

View GitHub Profile
@iamhabib
iamhabib / digitalocean-promo-cupon-code-free-trial.md
Created Sep 2, 2018
DigitalOcean Coupon Code $35 / $100 1 Year Free Trial - September 2018
View digitalocean-promo-cupon-code-free-trial.md

alt text

Digital Ocean Promo Coupon Code $35 / $100 1 Year Free Trial

1) Get $35 / $25 / $20 / $10 free DigitalOcean Credit.

2) Get DigitalOcean 1 Year Free Trial.

3) Get $100 Credit For 60 Days. $100 Free Credits

@iamhabib
iamhabib / PushNotifications.php
Created Dec 25, 2016 — forked from joashp/PushNotifications.php
Simple PHP script to send Android Push Notification, iOS Push Notification and Windows Phone 8 Push Notification
View PushNotifications.php
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";
View push-notification.php
<?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
You can’t perform that action at this time.