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
HTTP State Management - Desribes the concept of HTTP sessions and how it can be achieved through cookies | |
http://www.rfc-editor.org/rfc/rfc2109.txt | |
SAML OASIS specification - https://www.oasis-open.org/committees/download.php/27819/sstc-saml-tech-overview-2.0-cd-02.pdf |
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
Working with Bitnami wordpress stack. It comes up with a phpmyadmin application. | |
How to reset the mysql root passsword | |
https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html | |
Update the value of password in config.inc.php of phpmyadmin application. | |
Check on how to fix if you cannot login to wp-admin area |
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
Kill a single port | |
kill $(lsof -ti:3000) #3000 is the port to be freed | |
Source https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac |
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
git init | |
git commit -m "Your comment" | |
git remote add origin <Link to GitHub Repo> | |
git remote -v | |
git push -u origin master |
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
Extend the facebook app token | |
https://developers.facebook.com/tools/debug/accesstoken | |
1. Enter the access token. | |
2. Click on extend the access token and make it never expire | |
Troubleshooting | |
Unsupported post request. Object with ID 'me' does not exist, cannot be loaded due to missing permissions, or does not support this operation |
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 askMusicPreferences(answer, convo, bot) { | |
myDialog.ask('What would like to hear?', [ | |
{ | |
pattern: '.*', | |
handler: async (response, convo, bot, message) => { | |
try { | |
var channels = await YoutubeHelper.getChannel(response); | |
if (channels.length == 0) { |
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
let myDialog = new BotkitConversation(DIALOG_ID, controller); | |
try { | |
myDialog.say('Hello'); | |
myDialog.ask('Do you like Music?', [ | |
{ | |
pattern: 'yes', | |
handler: async function (response, convo, bot) { | |
await askMusicPreferences(response, convo, bot); | |
} |
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
controller.hears('hi', 'message', async (bot, message) => { | |
console.log('I heard a message'); | |
await bot.beginDialog(DIALOG_ID); | |
}); |
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
//sample script to connect to SAP Document Managment using cmisjs | |
// https://github.com/agea/CmisJS | |
var cmis = require('cmis'); | |
//Pre-requisite is to create a service instance of SDM and onboard a repository. | |
// SDM api endpoint will be provided in VCAP | |
var session = new cmis.CmisSession('<server url>'); | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>SDM Google Integration</title> | |
<style> | |
body { | |
background-color: black; | |
text-align: center; | |
color: white; | |
font-family: Arial, Helvetica, sans-serif; |
OlderNewer