Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:
sysctl -a | grep machdep.cpu.features | grep VMX
If there's output, you're good!
| 1. Install oh my zsh | |
| http://ohmyz.sh/ | |
| $ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| 1. Install powerline fonts | |
| https://github.com/powerline/fonts | |
| 1. download agnoster theme | |
| https://github.com/mbadolato/iTerm2-Color-Schemes/zipball/master |
| const functions = require('firebase-functions'); | |
| const gcs = require('@google-cloud/storage')(); | |
| const sharp = require('sharp') | |
| const _ = require('lodash'); | |
| const path = require('path'); | |
| const os = require('os'); | |
| exports.generateThumbnail = functions.storage.object('uploads/{imageId}').onChange(event => { | |
| const object = event.data; // The Storage object. |
| {... | |
| "scripts": { | |
| "postinstall": "node patch.js", | |
| ... | |
| } | |
| } |
| //this.validIBAN('DE89 3704 0044 0532 0130 00'); | |
| validIBAN(iban) { | |
| // valid == 1 | |
| // invalid != 1 | |
| console.log(this.isValidIBANNumber(iban)); | |
| } | |
| isValidIBANNumber(input) { | |
| let CODE_LENGTHS = { |
| 'use strict'; | |
| const functions = require('firebase-functions'); | |
| const sgMail = require('@sendgrid/mail'); | |
| sgMail.setApiKey("SEND_GRID_API_KEY"); /** replace with your own SendGrid API key */ | |
| const cors = require('cors')({ | |
| origin: ['ANGULAR_DEVELOPMENT_ENVIRONMENT_URL'], /** replace with the url of your development environment that serves your angular app. */ |
| var functions = require('firebase-functions'); | |
| const sendgrid = require('sendgrid') | |
| const client = sendgrid("YOUR_SG_API_KEY") | |
| function parseBody(body) { | |
| var helper = sendgrid.mail; | |
| var fromEmail = new helper.Email(body.from); | |
| var toEmail = new helper.Email(body.to); | |
| var subject = body.subject; |
| var mandrill = require('mandrill-api/mandrill'); | |
| var mandrill_client = new mandrill.Mandrill('YOUR MANDARILL KEY'); | |
| var FROM_EMAIL = '[email protected]'; | |
| var FROM_NAME = 'Our Standup'; | |
| var db = require('./database'); | |
| var invitationsRef = db.ref("invitations"); | |
| var teamsRef = db.ref("teams"); | |
| var usersRef = db.ref("users"); |
| function generatePassword (length) { | |
| var password = '', character; | |
| while (length > password.length) { | |
| if (password.indexOf(character = String.fromCharCode(Math.floor(Math.random() * 94) + 33), Math.floor(password.length / 94) * 94) < 0) { | |
| password += character; | |
| } | |
| } | |
| return password; | |
| } |
| <script> | |
| function geo(a) { | |
| switch (a.country.code) | |
| { | |
| case "SE": // Redirect is visitor from Sweden | |
| case "NO": // Redirect is visitor from Norway | |
| case "DK": // Redirect is visitor from Denmark | |
| window.location = "https://se.brixtol.com" + window.location.pathname; // edit for your URL | |
| break; | |
| default: |