This file contains hidden or 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 action(bp: typeof sdk, event: sdk.IO.IncomingEvent, args: any, { user, temp, session } = event.state) { | |
| const myAction = async () => { | |
| const message = { | |
| type: 'file', | |
| text: 'texto a ser exibido antes do arquivo!', | |
| url: 'Url do arquivo', | |
| mediaType: 'application/pdf' // Mime type | |
| } |
This file contains hidden or 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
| { | |
| "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
| "[yaml]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[typescriptreact]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, |
This file contains hidden or 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
| // https://askubuntu.com/a/51953 | |
| // If you want all new files in a particular directory to be owned by a particular group, just apply the setgid bit on it: | |
| chgrp www-data /some/dir | |
| chmod g+s /some/dir | |
| // If you have an existing tree of directories that you want to apply this behaviour to, you can do so with find: | |
| find /some/dir -type d -exec chgrp www-data {} + |
This file contains hidden or 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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\]$ " |