Skip to content

Instantly share code, notes, and snippets.

View ouadie-lahdioui's full-sized avatar

Ouadie Lahdioui ouadie-lahdioui

View GitHub Profile
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
@ouadie-lahdioui
ouadie-lahdioui / Personal MAC Apps
Last active October 12, 2018 14:21
Personal MAC Apps
Skitch : https://evernote.com/products/skitch
Hyper terminal : https://hyper.is/
OhMyZsh
PhotoShop / Illustrator
Evernote
VisualCode
Intellij
Spectacle
TeamViewer
MS Office
@ouadie-lahdioui
ouadie-lahdioui / Google Hangouts API
Last active July 17, 2018 08:13
Google Hangouts API
- 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
# 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
// 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({
@ouadie-lahdioui
ouadie-lahdioui / CLI
Last active September 18, 2017 12:48
# Recherchez le script de profil du shell
echo $SHELL
# Zip
zip -r joby.zip dist/*
unzip -a joby.zip
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 :