- 长叹一声。Linux 上就没有一个好用的远程桌面服务器。虽然不喜欢,留个 teamviewer 进程一直开着以应不时之需是有必要的。
- vagrant 的 public_network 在 usb 无线网卡有bug...(服务器好好的千兆网卡你不用用什么无线网卡....不是手头没有网线嘛
- "Ansible for DevOps" 据说是一本好书。那待读书单里就加一本吧
- CentOS8内置了一个叫 cockpit 的web管理器,还挺好用的。它的端口是9090,咋改成用正儿把经的https证书我还不知道。
- Gnome桌面有一个叫 Vinagre 的远程桌面客户端,支持的服务器类型挺多的。(然而并不好用)
- 不应该把对应数据表的 entity model 直接用在 web API 里。别嫌麻烦,那个应该是贫血的,除了主键并不需要有其他的约束。把完整的表结构和所有字段暴露给客户端是不好的。
- AutoMapper 有什么用?应该怎么用? ,这篇09年的老文章和里面的评论可能会有点用。
- chrome OS 开了开发者模式,按
ctrl + alt + ->
root 登录即可设置默认用户的密码。
想深入了解Linux了,所以又开始看 Linux From Scratch。
There are 3 options, you probably want #3
-
This will keep the local file for you, but will delete it for anyone else when they pull.
git rm cached or git rm -r cached
-
This is for optimization, like a folder with a large number of files, e.g. SDKs that probably won't ever change. It tells git to stop checking that huge folder every time for changes, locally, since it won't have any. The assume-unchanged index will be reset and file(s) overwritten if there are upstream changes to the file/folder (when you pull).
git update-index --assume-unchanged
-
This is to tell git you want your own independent version of the file or folder. For instance, you don't want to overwrite (or delete) production/staging config files.
git update-index --skip-worktree
It's important to know that git update-index will not propagate with git, and each user will have to run it independently.
I haven't used my old MBP 13 for nearly a month. This evening I picked it up and opened the iTerm2 then connected to my home server through ssh. I noticed I get a white-black colored terminal. What's wrong? I remembered it was colorful when I logged into this machine last time using iTerm2 on my MBP 15.
Firstly, I checked the version of iTerm2, it was a bit old, so I updated it first. Unfortunately, it doesn't help.
I noticed I was using bash instead of zsh on this machine. So I ran chsh and changed the shell from bash to ssh. It also doesn't help.
Then I find this answer from stackoverflow.com. A comment in this answer reminded me: I should check and compare the terminal configuration in iTerm2. So I found the secret!
Command + ,
open the preference, then click the profiles
tab, then change the Report terminal type
from xterm
to xterm-256
color, that's it!
- safely convert Unix TimeStamp to string :
DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture.NumberFormat)
source
- DI with parameters in constructor
services.AddScoped<SmsSentLogRepo>(s => new SmsSentLogRepo(Configuration.GetConnectionString("sms")));
- You should use ConfigureAwait(false) in your library code. source
- 去 https://rime.im/ 下载安装
- 右键点击“中”字图标,在弹出菜单中点击“输入法设定”
- 在弹出窗口中点击“获取更多输入方案”,这时会弹出一个 cmd 窗口让你输入需要添加的方案
- 先输入 rime-wubi 回车,wubi就自动装上了
- 再输入 rime-pinyin-simp 回车,拼音也装上了。
- 回车并随手关掉这个 cmd 窗口,加输入法的工作就完成了。
- 回到刚才点击 “获取更多输入方案” 的窗口,勾掉你不需要的那些七七八八的输入法,选中刚刚添加上的“五笔拼音”,然后再点一下 “中”按钮 (不是右下角的“中”图标),选择一个你喜欢的风格。
Mission Accomplished!
Enjoy 你的五笔拼音吧! (By the way,写此Blog时我用的小狼毫版本是 0.14.3 )