- https://github.com/ddollar/heroku-accounts
- http://railsware.com/blog/2013/02/05/how-to-set-up-the-heroku-tools-for-deployment-with-multiple-accounts/
Helps use multiple accounts on Heroku.
| // Wrapping of the example found on https://gist.github.com/alunny/1904992 | |
| // Jordi Moraleda | |
| // This example works on org.apache.cordova.file version 1.1.0 and 1.2.0 | |
| // | |
| // If you are using version 1.3.0, check out the file below | |
| // https://gist.github.com/jmoraleda/78551f439578f7c132c8#file-fswrapper-v1-3-js | |
| function FSWrapper(options, callback) { | |
| var self = this; |
| # SWAP | |
| sudo dd if=/dev/zero of=/swapfile1 bs=1024 count=1048576 | |
| sudo chown root:root /swapfile1 | |
| sudo chmod 0600 /swapfile1 | |
| sudo mkswap /swapfile1 | |
| sudo swapon /swapfile1 | |
| sudo echo "/swapfile1 swap swap defaults 0 0" > /etc/fstab | |
| # MAIN SYSTEM UPDATE | |
| sudo yum update -y |
Helps use multiple accounts on Heroku.
| #!/bin/bash | |
| # CREATE CERTS | |
| echo "Android: http://dev.tapjoy.com/faq/how-to-find-sender-id-and-api-key-for-gcm/" | |
| echo "iOS: http://quickblox.com/developers/How_to_create_APNS_certificates" | |
| # EXTRACT P12 > PEM | |
| openssl pkcs12 -in apn-push-prod.p12 -out apn-push-prod.pem -nodes -clcerts |
| var gulp = require('gulp'); | |
| // ICONS | |
| gulp.task('icons', function() { | |
| var lwip = require('lwip'); | |
| // Default | |
| lwip.open('resources/icon.png', function(err, image){ | |
| if(err) return console.error(err); | |
| image.batch().cover(57, 57).writeFile('resources/ios/icon/icon.png', 'png', {transparency: 'auto'}, function(){if(err)console.error(err);}); |
| var config = require('../config.js'); | |
| var gcm = require("node-gcm"); | |
| var gcmConnection = new gcm.Sender(config.GCM_KEY); | |
| global.Promise = require('bluebird'); | |
| var zip = require('lodash/zip'); | |
| var feedbackHandlers = []; | |
| function send(pushTokens, message, payload, expiry, unreadCounter){ | |
| return new Promise((resolve, reject) => { |
| { | |
| "presets": [ | |
| "es2015", | |
| "react", | |
| "stage-1" | |
| ], | |
| "plugins": [ | |
| "transform-decorators-legacy" | |
| ], | |
| "compact": true |
| import config from 'config'; | |
| import { sendMail } from './mailer'; | |
| export function sendValidationEmail(recipientEmail, userId, validationToken){ | |
| let htmlContent, txtContent, title; | |
| title = "Welcome to Right Side Coffee" | |
| htmlContent = `<html><head><style> body { font-family: monospace; }</style></head><body> | |
| <p>Welcome to Right Side Coffee,</p> | |
| <p>To activate your account, click on <a href="${config.SERVER_URL}/en/confirm/${userId}/${validationToken}">the link here</a>.</p> |
| // CSS | |
| require('../node_modules/ng-admin/build/ng-admin.min.css'); | |
| // ALL IN ONE | |
| require('ng-admin/build/ng-admin-only.min'); | |
| // JS | |
| // var angular = require('angular/angular.min.js'); | |
| require('angular-ui-bootstrap/dist/ui-bootstrap-tpls.js'); | |
| require('angular-bootstrap/ui-bootstrap.min'); |
| #!/bin/bash | |
| # Vanilla Debian Jessie Setup | |
| sudo su - | |
| # DEBIAN JESSIE SETUP SCRIPT | |
| # ------------------------------------------------------------------------- | |
| # VARIABLES |