Install the OpenSSL on Debian based systems
sudo apt-get install openssl| <?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"; |
| #!/bin/bash | |
| # An alternative to "links", run this script after starting or stopping any | |
| # container. It's a hack to update the host machine (vagrant) /etc/hosts with | |
| # the current active docker containers and tell dnsmasq to refresh. | |
| # | |
| # Then start each machine with "-dns ${DOCKER_HOST_IP}", e.g. | |
| # $ docker run -d -name mycontainer1 -dns 10.0.3.1 MYPRODUCT | |
| # You can't seem to set the DNS during "docker build". | |
| # | |
| # Diagnostic command to run in host or while logged into containers: |