装备
- iPad Air 5 | 256GB | 无线局域网 + 蜂窝网络机型
- Apple Pencil 2代
- 罗技(Logitech)| Folio Touch ipad背光键盘保护套 妙控键盘 配备触控板 | IK1094
- 类纸膜
今年的上海,注定是不平凡的一年。疫情期间,大家只能居家办公。我也在居家办公的同时,不断优化和提升MAC生产力。
Do one thing, and do it well. - A principle of Unix philosophy
指法用对,掌握盲打,提升敲击数字键的成功率;
多用键盘快捷键少用鼠标。修改系统键盘按键,比如 Caps Lock⇪ 使用频率比较低,一般我改成了 Ctrl⌃键,因为用开发工具频繁使用到 Ctrl,改成 Ctrl 之后效率提高不少,小指头不酸啦(推荐通过系统设置-键盘-修饰键盘…修改);
Ctrl 与 Caps Lock 互换
Map ctrl + [ to escape,Change Fn + h/j/k/l to Arrows
用好终端和命令行工具。
修改远程pc的”本地安全策略”,为指定的用户开放权限
需要在运行shutdown命令前先运行如下命令,不然,有些时候会提示”拒绝访问”,索性先执行了。
1 | net use \\192.168.31.21\ipc$ password /user:administrator |
其中password为帐号administrator的登录密码。
1 | shutdown -r -m \\192.168.31.21 -t 0 |
1 | shutdown -s -m \\192.168.31.21 -t 0 |
微星BIOS设置
http://t.csdn.cn/pnbza
国内镜像源下载速度评测:阿里源、清华源、华为源对比
https://wangshuashua.com/source-contrast/
华为开源镜像站
1 | sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.bak |
1 | sudo sed -i "s@http://.*archive.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list |
中科大(Kali源)
阿里巴巴开源镜像站
腾讯软件源
网易开源镜像站
Python 3:
1 | python3 -m http.server |
Python 2:
1 | python -m SimpleHTTPServer |
1 | npm install http-server -g |
1 | curl -F "file=@/path/to/your/file" http://localhost:8000/upload |
1 | aptitude install gitstats |
1 | gitstats /path/to/git/repo /path/to/output |
生成HTML格式的Git仓库统计报告。
Zulip 是一个强大的开源团队聊天工具,结合了实时聊天的即时性和电子邮件的线程化组织。
1 | # 下载Zulip Docker镜像 |
参考官方文档进行生产环境配置。
Arch Linux 是一个轻量级、灵活的Linux发行版。
参考 Arch Wiki 安装指南。
1 | sudo pacman -Syyu |
基本工具
1 | pacman -S man base-devel |
强制更新 系统、软件
1 | pacman -Syyu |
用户配置
1 | useradd -m -G wheel gary |
visudo(修改wheel组的权限)
把 wheel ALL=(ALL)ALL 前的”#”去掉
不想用vi把vi替换掉,做vi的软链接
1 | ln -s /usr/bin/vim /usr/bin/vi |
前提条件,已安装(vi、sudo)
1 | pacman -S fish |
1 | git clone https://aur.archlinux.org/yay.git |
版权声明:本文为CSDN博主「qingt2314」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_44858936/article/details/108275848
参考:https://docs.microsoft.com/zh-cn/windows/wsl/install
GitHub: https://github.com/yuk7/ArchWSL
1 | sudo pacman -Syyu |
1 | vi ~/.config/fish/config.fish |
1 | set PATH /opt/gcc-arm-8.2-2018.08-x86_64-arm-linux-gnueabihf/bin $PATH |
验证
1 | arm-linux-gnueabihf-gcc -v |
1 | sudo pacman -S git gcc g++ make gcc-multilibmake python xz-utils |
1 | wslconfig /l |
从列表中选择要卸载的发行版(例如Ubuntu)并键入命令
1 | wslconfig /u Arch |
编辑 /etc/pacman.d/mirrorlist,找到 #China 去掉清华源前面的#
1 | Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch |
之后安装 archlinuxcn-keyring 包导入 GPG key。