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
| #!/bin/bash | |
| # Exit immediately if a command exits with a non-zero status | |
| set -e | |
| # Variables | |
| REDIS_PASSWORD=$(openssl rand -base64 37 | cut -c1-49) | |
| echo -e "Password: =>\033[1;32m$REDIS_PASSWORD\033[0m<=" | |
| REDIS_CONFIG_PATH="/etc/redis/redis.conf" |
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
| <?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"; |
| <?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 |