curl \
--header "X-Atlas-Token: $VAGRANT_CLOUD_TOKEN" \
--header "Content-Type: application/json" \
https://app.vagrantup.com/api/v1/boxes \
--data '{"username":"justin_hashicorp", "name":"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
| id: example_router | |
| routes: | |
| - id: tensorflow_model | |
| type: PROXY | |
| endpoint: "http://api.golabs.io/v2/5e4caccc310000e2cad8c071" | |
| - id: control | |
| type: PROXY | |
| endpoint: "http://api.golabs.io/v2/5e4cacd4310000e1cad8c073" | |
| strategy: | |
| type: fiber.DefaultTuringRoutingStrategy |
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
| # Reading material, articles, guides | |
| https://www.freecodecamp.org/news/the-fab-four-technique-to-create-responsive-emails-without-media-queries-baf11fdfa848/ | |
| https://www.smashingmagazine.com/2017/01/introduction-building-sending-html-email-for-web-developers/ | |
| https://webdesign.tutsplus.com/articles/everything-developers-need-to-know-about-sending-transactional-email--cms-31759 | |
| https://email.uplers.com/infographics/ultimate-guide-email-client-hacks/ | |
| https://www.leemunroe.com/sending-email-designers-developers/ | |
| https://www.leemunroe.com/building-html-email/ | |
| https://www.leemunroe.com/responsive-email-design/ | |
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 | |
| # Requires jq in the path - apt install jq | |
| # References | |
| # https://www.vagrantup.com/docs/vagrant-cloud/api.html#creating-a-usable-box-from-scratch | |
| # https://www.vagrantup.com/docs/vagrant-cloud/boxes/create.html | |
| BOX_FILE=$1 | |
| USER=magmacore |
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
| Sandbox End Points | |
| 1. SMS | |
| Make a HTTP POST request to https://api.sandbox.africastalking.com/version1/messaging | |
| See the Parameters | |
| curl -v -H "Accept: application/json" \ | |
| -d "username=sandBoxUserName&message=hello test&to=+254711XXXYYY,+254733YYYZZZ" \ | |
| -H "Apikey:fb752d3417021812f0961y6c9464832dd1adb1e555c73f1e7c32bcc006488674" \ | |
| -X POST http://api.sandbox.africastalking.com/version1/messaging --insecure |
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
| // ==UserScript== | |
| // @name Gmail w/ Collapsible & Minimalist Inbox plus Google Calendar, Reader, Notebook, etc... Seamless Integration | |
| // @namespace mail.google.com | |
| // @include http://mail.google.com/* | |
| // @include https://mail.google.com/* | |
| // ==/UserScript== | |
| var USER_CONFIGURATION = | |
| { | |
| ELEMENTS: //Place in order the pages you would like to load. Placing mail in the list will may it collapsible. Other choices are: reader, calendar, notebook or groups (must be lowercase.) |
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
| // reference | |
| // https://victoria2666.medium.com/the-implications-of-dangerouslysetinnerhtml-in-react-64e2d02af66a | |
| // npm install dompurify | |
| import DOMPurify from "dompurify"; | |
| const React = require('react'); | |
| /** |
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 args = require('../utils').args; | |
| var debug = require('gulp-debug'); | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var notifier = require('node-notifier'); | |
| var path = require('path'); | |
| var plumber = require('gulp-plumber'); | |
| var react = require('gulp-react'); | |
| var production = (args.env === 'production'); |
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
| //put that code in main.js file | |
| export async function fetchAccessTokens (code) { | |
| const response = await axios.post(GOOGLE_TOKEN_URL, qs.stringify({ | |
| code, | |
| client_id: GOOGLE_CLIENT_ID, | |
| redirect_uri: GOOGLE_REDIRECT_URI, | |
| grant_type: 'authorization_code', | |
| }), { | |
| headers: { |
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
| //put that code in main.js file | |
| function handleNavigation (url) { | |
| const query = parse(url, true).query | |
| if (query) { | |
| if (query.error) { | |
| reject(new Error(`There was an error: ${query.error}`)) | |
| } else if (query.code) { | |
| // Login is complete | |
| authWindow.removeAllListeners('closed') | |
| setImmediate(() => authWindow.close()) |