Skip to content

Instantly share code, notes, and snippets.

View tuanlc's full-sized avatar
🌤️
Focusing

Cong Tuan Le tuanlc

🌤️
Focusing
View GitHub Profile
git commit --fixup=<commit>  -- construct a commit message for use with rebase --autosquash

Ant Design theme for Vuejs + scss

  1. Create theme.less file that will override the default theme for Antd
@import "~ant-design-vue/dist/antd.less";

@black: #444;
@black-alpha-2: #18295255;
@error: #ff5154;
@primary: #837dff;
@tuanlc
tuanlc / off
Created September 28, 2020 06:29
Off my computer
#!/bin/bash
echo ">>> Stoping docker services"
docker stop `docker ps -q`
echo ">>> Commiting note"
cd /home/tlcong/Documents/Notebooks
git add .
git commit -m "Backup notes"
git push vanilla master -f
@tuanlc
tuanlc / start
Created September 28, 2020 06:28
Start sh program
#!/bin/bash
echo ">>> Starting openpaas.linagora.com"
chromium --app=https://openpaas.linagora.com/\#/ > /dev/null 2>&1 &
echo ">>> Starting chat.linagora.com"
chromium --app=https://chat.linagora.com/openpaas/channels > /dev/null 2>&1 &
echo ">>> Starting Skype"
chromium --app=https://web.skype.com/en/ > /dev/null 2>&1 &
@tuanlc
tuanlc / loc.sh
Last active September 29, 2020 02:20
Calculate contribution for Linagora/OpenPaaS suit repository
DATE_WEEK="2020-09-21T00:00:00-07:00"
DATE_MONTH="2020-09-01T00:00:00-07:00"
WORK_SPACE="/home/tlcong/workspace/linagora";
echo "Please enter author's email: "
read AUTHOR
echo "Do you want to pull latest of codes(yes/no):"
read PULL_LATEST_CODE
echo "Calculating..."

Change:

Mailbox propeties

  • totalMessages => totalEmails

  • unreadMessages => unreadEmails

  • mayReadItems

  • mayAddItems

  • mayRemoveItems

  • mayCreateChild

{"swagger":"2.0","info":{"title":"OpenPaaS","description":"OpenPaaS API","version":"0.1"},"host":"localhost:8080","basePath":"/api/v0.1","consumes":["application/json"],"produces":["application/json"],"paths":{"/activitystreams/{as_uuid}":{"get":{"tags":["ActivityStreams"],"description":"Gets the timeline of an activity stream from its uuid.","parameters":[{"$ref":"#/parameters/as_uuid"},{"$ref":"#/parameters/as_before"},{"$ref":"#/parameters/as_after"},{"$ref":"#/parameters/as_limit"}],"responses":{"200":{"$ref":"#/responses/as_timeline"},"400":{"$ref":"#/responses/cm_400"},"401":{"$ref":"#/responses/cm_401"},"404":{"$ref":"#/responses/cm_404"},"500":{"$ref":"#/responses/cm_500"}}}},"/activitystreams/{as_uuid}/resource":{"get":{"tags":["ActivityStreams"],"description":"Gets the resource associated with the activitystream.","parameters":[{"$ref":"#/parameters/as_uuid"}],"responses":{"200":{"$ref":"#/responses/as_resource"},"400":{"$ref":"#/responses/cm_400"},"401":{"$ref":"#/responses/cm_401"},"404":{"$ref":"
@tuanlc
tuanlc / [DEV] intergrate LinShare with OP
Created March 5, 2019 07:56
[DEV] intergrate LinShare with OP
ssh://git@ci.linagora.com:7999/linagora/lgs/linshare/saas/linshare-docker-dev.git
Diff
```
diff --git a/docker-compose.yml b/docker-compose.yml
index 276b5d9..e4d5f30 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -38,6 +38,7 @@ services:
- ./${ROOT_DATA_FOLDER}/linshare_data/lib:/var/lib/linshare
# To enable debug logs
'use strict';
module.exports = dependencies => {
const coreESListeners = dependencies('coreElasticsearch').listeners;
const denormalize = require('./denormalize')(dependencies);
return {
register
};
"settings": {
"analysis": {
"filter": {
"nGram_filter": {
"type": "nGram",
"min_gram": 1,
"max_gram": 20,
"token_chars": [
"letter",
"digit",