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 branch [NEW_BRANCHE_NAME] remotes/upstream/master // OR > git checkout -b [NEW_BRANCHE_NAME] remotes/upstream/master | |
git push -u origin [NEW_BRANCHE_NAME] | |
git remote add upstream https://github.com/howdyai/botkit.git | |
git fetch upstream | |
git checkout master | |
git rebase upstream/master | |
git push -f origin master | |
## Botkit Middleware : |
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
# Recherchez le script de profil du shell | |
echo $SHELL | |
# Zip | |
zip -r joby.zip dist/* | |
unzip -a joby.zip |
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
// Buttons | |
Builder.CardAction.imBack(session, "1", "Trouver un emploi") | |
new builder.CardAction(session).title('Add a number').value('Add').type('imBack') | |
Builder.CardAction.dialogAction(session, "weather", "Seattle, WA", "Current Weather") | |
Builder.CardAction.postBack(...) | |
// Send Attachement | |
var msg = session.message; | |
var attachment = msg.attachments[0]; | |
session.send({ |
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
# Deploy | |
heroku buildpacks | |
heroku buildpacks:clear | |
heroku buildpacks:set -a cognito-jackpot-web-app heroku/nodejs | |
heroku buildpacks:set -a cognito-jackpot-web-app https://github.com/Pagedraw/heroku-buildpack-select-subdir | |
heroku config:add BUILDPACK='packages/web-app=https://github.com/heroku/heroku-buildpack-nodejs' -a cognito-jackpot-web-app | |
heroku git:remote -a cognito-jackpot-web-app | |
git push heroku master | |
# Commands |
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
- event.space.type ==> "DM" or "ROOM" | |
- event.space.displayName | |
- event.space.name | |
- event.user.displayName | |
- event.message.text | |
# Events : | |
- MESSAGE | |
- ADDED_TO_SPACE | |
- REMOVED_FROM_SPACE |
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
Skitch : https://evernote.com/products/skitch | |
Hyper terminal : https://hyper.is/ | |
OhMyZsh | |
PhotoShop / Illustrator | |
Evernote | |
VisualCode | |
Intellij | |
Spectacle | |
TeamViewer | |
MS Office |
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
sort @timestamp desc | |
| filter @message like /Successfully sent patch to videoApi/ | |
| parse @message /(?<assetId>eurosport-\S+)/ | |
------------------ | |
parse '<contentId>*</contentId>' as AssetId | |
| sort @timestamp desc | |
| filter @message like /contentId/ | |
| stats count(*) by AssetId |