Fork me on GitHub

Technology Reduces Face To Face Communication

工具代替人力 - 技术发展的方向对吗

技术的发展产生的工具让面对面的直接沟通的机会变得越来越少。

  • 交通违章

以前违章停个车都是交警发现,口头劝阻,有商量余地; 现在电子探头,一旦拍到车停在那地方,不管车里有没有人,也不管你有没有特殊情况,它只管定时抓拍。

  • 快递

以前淘宝上买个快递,总想着快递小哥的电话,小哥的敲门声,以及从他手上签完字后迫不及待地拆包裹的心动;

现在只有一条短信,给你一个开柜码。

  • 无人超市

以前夜里去便利店,有2个店员在那里打盹或者唠嗑,你感觉的深夜里不是你一个人在城市游荡;

现在或将来,24小时无人超市,面对你的是安静的货物,和四面八方观察着你的探头。

你还能想到其他的场景吗?

Continue reading →

HP Culture

HP Culture

Will to Win

  • 充满活力,振奋精神,以每天成功的意愿
  • Be the best you can be
  • Reaching your highest human potential.
Continue reading →

Chatops With Slack

ChatOps With Slack and Mattermost

Subscribe to an RSS feed URL and receive updates in Slack

  • Install RSS apps/plugins in the slack
  • RSS -> Edit configuration to add your favorite rss feed url.
  • Then when there is a post update in the feed site, you will be noticed in slack.

Automate Task

  • 自动触发任务

自助问答

定时任务

https://github.com/attzonko/mmpy_bot/blob/main/mmpy_bot/plugins/example.py

Mattermost

Install Mattermost in Ubuntu WSL


sudo -u mattermost ./bin/mattermost

Jenkins Integration

通过mattermost 直接触发Jenkins的Job

CR Approve

通过restapi 来check 并 approve 对应的CR

Mattermost WebHook

GitHub Action to send PR notification to Mattermost

add a file notify.yml under .github/workflows/notify.yml


# on:
#   # Triggers the workflow on push or pull request events but only for the master branch
#   push:
#     branches: [ master ]
#   pull_request:
#     branches: [ master ]

# jobs:
#   build:
#     runs-on: self-hosted

#     steps:
#     - uses: actions/checkout@v1
#     - name: Create the Mattermost Message for Push Event
#       if: $
#       run: |
#         echo "{ \"username\": \"Chido\", \"text\":\"Push on [$]($) by $.See [commit list]($) \"}" > mattermost.json
#     - name: Create the Mattermost Message for Pull Request Event
#       if: $
#       run: |
#         echo "{ \"username\": \"Chido\", \"text\":\"$ pull request [$]($) by $.See [commit list]($)\n**Source** : $\n**Destination** : $ \"}" > mattermost.json
#     - uses: actions/action-mattermost-notify@1.1.0
#       env:
#         MATTERMOST_WEBHOOK_URL: $
#         MATTERMOST_CHANNEL: $

Reference

https://docs.mattermost.com/deployment/bots.html

https://forum.mattermost.org/

https://mmpy-bot.readthedocs.io/en/latest/plugins.html

Continue reading →

Switch Company Home Network Smoothly

随心切换于公司网络和家庭网络

问题

在家里连公司VPN后,虽然可以访问到内网的一些Server资源和网站,但是当我访问一些国内网站的时候,因为代理的原因,绕了一圈,导致页面加载缓慢,更有甚者,比如网易云音乐,更是对国外代理进行了屏蔽,导致无法连公司网络的同时,在线收听音乐。

解决办法

连接公司VPN后,使用 IE 浏览器或者Chrome 浏览器访问公司内网和国外资源。

IE And Chrome Proxy

在家里的一台24小时开机机器上安装CCProxy 软件,然后在本机上使用FireFox 通过这台Home machine 作为国内网站的Proxy。

FireFox CCProxy

Continue reading →

All Tags

mindset

devops

book

ci

communication

jenkins

自媒体

hometown

geek life

cloud

ai