I hereby claim:
- I am srichakradhar on github.
- I am srichakradhar (https://keybase.io/srichakradhar) on keybase.
- I have a public key whose fingerprint is E530 07C7 8598 7E19 0818 75B8 426B BFD3 563A 0B67
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ Error: write EPROTO 140611379001216:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:797: | |
at _errnoException (util.js:1024:11) | |
at WriteWrap.afterWrite [as oncomplete] (net.js:867:14) | |
code: 'EPROTO', | |
errno: 'EPROTO', | |
syscall: 'write', | |
config: | |
{ adapter: [Function: httpAdapter], | |
transformRequest: { '0': [Function: transformRequest] }, |
axios.post('https://dev32043.service-now.com/api/now/table/incident', | |
requestBody, | |
{ | |
headers: { | |
'Content-Type': 'application/json', | |
'Accept': 'application/json', | |
'Authorization': 'Basic ' + Buffer.from('admin'+':'+'ynZVT7Uwa5gW').toString('base64'), | |
// 'Authorization': 'Basic '+btoa('admin'+':'+'admin'), | |
} | |
}) |
require('deasync').loopWhile(function(){return !done;}); |
function adaptiveCardSubmitMiddleware() { | |
return { | |
botbuilder: (session, next) => { | |
console.log(session.message); | |
// I want them to be able to do this, for now ask they press the button | |
if(session.message && session.message.text == 'submit'){ | |
session.send("Please use the submit button above"); | |
return; |
next({ resumed: builder.ResumeReason.back }) | |
// use https://docs.botframework.com/en-us/node/builder/chat-reference/classes/_botbuilder_d_.dialogaction.html#validatedprompt | |
// https://docs.botframework.com/en-us/node/builder/chat-reference/classes/_botbuilder_d_.dialogaction.html |
// Option 1: No speech | |
// | |
// const speechOptions = null; | |
// // Option 2: Native browser speech (not supported by all browsers, no speech recognition priming support) | |
// | |
// Note that Chrome automatically blocks speech if the HTML file is loaded from disk. You can run a server locally | |
// or launch Chrome (close all the existing Chrome browsers) with the following option: | |
// chrome.exe --allow-file-access-from-files <sampleHtmlFile> | |
// |
var msg = new builder.Message(session) | |
.text(response) | |
.suggestedActions(builder.SuggestedActions.create(session, [ | |
builder.CardAction.postBack(session, "thumbs-up", "👍"), | |
builder.CardAction.postBack(session, "thumbs-down", "👎"), | |
])); |
ffmpeg -i source.mp4 -ss 00:00:00 -t 00:01:57 -vcodec copy -acodec copy cut.mp4 |
ffmpeg -i source.mp4 -c:v wmv2 -b:v 1024k -c:a wmav2 -b:a 192k target.wmv |