This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var connect = require('connect'); | |
| var app = connect(); | |
| var bodyParser = require('body-parser'); | |
| var serveStatic = require('serve-static'); | |
| var vhost = require('vhost'); | |
| var path = require('path'); | |
| var customerwebsite = connect(); | |
| var admin = connect(); | |
| var systemadmin = connect(); | |
| var publicwebsite = connect(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const apn = require(“apn”); | |
| let note = new apn.Notification({ | |
| alert: “Amol Chawathe is now on Medium”, | |
| }); | |
| let tokens = [“2727272727263636363”, “setyourphonetoken”]; | |
| let service = new apn.Provider({ | |
| cert: “certificate/Yourapp-Dev-Cer.pem”, | |
| key: “certificate/Yourapp-Dev-Key.pem”, | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew tap homebrew/dupes | |
| brew tap homebrew/versions | |
| brew tap homebrew/homebrew-php | |
| brew install php56 | |
| # Fix PEAR permissions | |
| chmod -R ug+w `brew --prefix php56`/lib/php | |
| pear config-set php_ini /usr/local/etc/php/5.6/php.ini | |
| # Fix PEAR config and upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Convert the .cer file into a .pem file: | |
| $ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem | |
| # Convert the private key’s .p12 file into a .pem file: | |
| $ openssl pkcs12 -nocerts -in PushChatKey.p12 -out PushChatKey.pem | |
| # Finally, combine the certificate and key into a single .pem file | |
| $ cat PushChatCert.pem PushChatKey.pem > ck.pem | |
| # At this point it’s a good idea to test whether the certificate works. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* global angular */ | |
| /** | |
| * https://gist.github.com/mlynch/dd407b93ed288d499778 | |
| * | |
| * the HTML5 autofocus property can be finicky when it comes to dynamically | |
| * loaded templates and such with AngularJS. Use this simple directive to tame | |
| * this beast once and for all. | |
| * | |
| * Usage: | |
| * <input type="text" autofocus> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| version=$1 | |
| build=$2 | |
| buildtype=$3 | |
| projectname=Popety | |
| python cordovaversion.py $version $build | |
| if [ "$buildtype" == "uat" ] | |
| then | |
| echo "We are building for UAT" | |
| mv www/js/config.uat.js www/js/config.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/sh | |
| rm "platforms/ios/build/Popety.ipa" #deletes previous ipa | |
| xcodebuild -scheme Popety clean archive -archivePath build/Popety | |
| xcodebuild -exportArchive -exportFormat ipa -archivePath "build/Popety.xcarchive" -exportPath "build/Popety.ipa" -exportProvisioningProfile "popety" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "transparent-1.0", | |
| "version": "0.0.100", | |
| "devDependencies": { | |
| "grunt": "~0.4.5", | |
| "grunt-cli": "~0.1.13", | |
| "grunt-html2js": "~0.2.7", | |
| "grunt-contrib-uglify": "~0.5.0", | |
| "grunt-contrib-clean": "~0.5.0", | |
| "grunt-contrib-connect": "~0.8.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rm "platforms/ios/build/Popetybidding.ipa" #deletes previous ipa | |
| xcodebuild -scheme Popety clean archive -archivePath build/Popety | |
| xcodebuild -exportArchive -exportFormat ipa -archivePath "build/Popety.xcarchive" -exportPath "build/Popety.ipa" -exportProvisioningProfile "popety" |