This file contains 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 | |
# Clone all org repos (via ssh) | |
curl -s https://api.github.com/orgs/<organization>/repos?per_page=200 | python -c $'import json, sys, os\nfor repo in json.load(sys.stdin): os.system("git clone " + repo["ssh_url"])' | |
# Later pull from each repo | |
back=`pwd`; for d in `find . -type d -name .git` ; do cd "$d/.."; git pull origin; cd $back ; done |
This file contains 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
{ | |
"interactionModel": { | |
"languageModel": { | |
"invocationName": "datos personales", | |
"intents": [ | |
{ | |
"name": "AMAZON.CancelIntent", | |
"samples": [] | |
}, | |
{ |
This file contains 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 APLHomeCardRequestInterceptor = { | |
process(handlerInput) { | |
const withSimpleCard = handlerInput.responseBuilder.withSimpleCard; | |
const withStandardCard = handlerInput.responseBuilder.withStandardCard; | |
function withSimpleAPLCard(cardTitle, cardContent){ | |
if(supportsAPL(handlerInput)){ | |
handlerInput.responseBuilder.addDirective({ | |
type: 'Alexa.Presentation.APL.RenderDocument', | |
version: '1.0', | |
document: APLDoc, |
This file contains 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
return handlerInput.responseBuilder | |
.speak('Starting navigation') | |
.addDirective({ | |
type: 'Navigation.SetDestination', | |
destination: { | |
singleLineDisplayAddress: "Calle de San Mateo 13, 28004", | |
multipleLineDisplayAddress: "Calle de San Mateo 13, 28004", | |
name: "Museo del Romanticismo", | |
coordinate: { | |
latitudeInDegrees: 40.425860, |
This file contains 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
General | |
This Terms of Use are an agreement between you (the "user") and German Viscuso (“us” or “we”). Before using any of our Alexa Skills (“our skills”), please read this agreement and our Alexa Skills Privacy Policy as well as the Alexa Terms of Use by the Amazon Digital Services LLC (with its affiliates, “Amazon”). | |
Regarding Amazon, “Alexa” means their Alexa Voice Service which includes third party services (like our skills) and other related Software. | |
If you use one of our skills you fully agree to this Terms of Use. | |
Disclaimer |
This file contains 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
This privacy policy describes how German Viscuso (“us” or “we”) protects your (“you”, “the user”) privacy and your data. Before using any of our Alexa Skills (“our skills”), please read this policy and our Alexa Skills Terms of Use, as well as the Alexa Terms of Use and the Privacy Policies by the Amazon Digital Services LLC (with its affiliates, “Amazon”). | |
Regarding Amazon, “Alexa” means their Alexa Voice Service which includes third party services (like our skills) and other related Software. | |
If you use one of our skills you fully agree to this privacy policy. | |
General |
This file contains 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
// See tth.im/s3json for a full explanation of this code | |
const AWS = require('aws-sdk'); | |
const S3 = new AWS.S3(); | |
exports.handler = async (_, context) => { | |
try { | |
const query = 'SELECT * FROM s3object[*].results[*] r;'; | |
// test query is against data from https://swapi.co/api/planets/?page=2 |
This file contains 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 stream = { | |
"token": "my_token", // no auth token, you decide what this is | |
"url": 'https://my_song.mp3', | |
"metadata" : { | |
"title": "My Song Title", | |
"subtitle": "My Song Subtitle", | |
"art": { | |
"sources": [ | |
{ | |
"contentDescription": "image", |
This file contains 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
function getPersistenceAdapter() { | |
// This function is an indirect way to detect if this is part of an Alexa-Hosted skill | |
function isAlexaHosted() { | |
return !!process.env.S3_PERSISTENCE_BUCKET; | |
if (isAlexaHosted()) { | |
const {S3PersistenceAdapter} = require('ask-sdk-s3-persistence-adapter'); | |
return new S3PersistenceAdapter({ | |
bucketName: process.env.S3_PERSISTENCE_BUCKET, | |
objectKeyGenerator: keyGenerator |
This file contains 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
(Switch to old repo) | |
> git remote add new-origin new_repo_url | |
> git remote update | |
> git push -f new-origin master --follow-tags (WARNING: new repo gets overwritten!) |