想看看你在 Mac 的下载历史记录么? 根据OS X Daily 上的说明只要在Mac的Terminal下执行下面的命令就可以:
1sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent'
Show一下我的MBP的:
123456sakishum$ sqlite3 ~/Library/Preferences/com.apple.LaunchServices.Qua...
看看你在Linux下最常用的命令是哪些? 在Linux或者Mac的Terminal下执行下面的命令就可以:
1history | awk '{CMD[$2]++;count++;} END { for (a in CMD )print CMD[ a ]" " CMD[ a ]/count*100 "% " a }' | grep -v "./" | column -c3 -s " " -t |sort -nr | nl | head -n10
Sh...
刚到手的Centos服务器默认的Python版本是2.7,现在很多新开发的Python均需要3.X以上。下面升级Centos的预装Python版本到最新。
下载Python3.9.512wget https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgztar zxvf Python-3.9.5.tgz
安装必须的包1dnf -y install gcc libffi-devel
安装1234cd Python-3.9.5/mkdir /usr/local/python3/./configure --prefix=/usr/loc...
SSH Key新服务器上git clone自己的项目时报错:
1fatal: unable to access ‘https://github.com/***/***.git/‘: Empty reply from server
检查密匙:
1ls -al ~/.ssh
应该会有一个id_rsa.pub 文件,如果没有,在终端运行ssh-keygen -t rsa以生成之。
打开你的github主页,打开Add SSH key的页面https://github.com/settings/ssh按照2的做法添加密钥最后测试验证:
1ssh -T git@github.com
正常情况下应该...
InstallInstall EPEL package by using yum install epel-release command:
1yum install -y epel-release
Update your system:
1yum update
Install Golang using yum:
1yum install -y golang
Check Golang version:
12go versiongo version go1.15.14 linux/amd64
UpdateUnless someone either adds Go 1.7+ to a...
安装1curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
修改权限1chmod +x /usr/local/bin/docker-compose
验证1docker-compose --version
*** 注意 ***
如果提示 docker-compose: command not found, 需要将 /usr/local/bi...
零.背景介绍CentOS的服务器刚到手,执行yum install docker -y安装docker,反手一个docker run就报错:
12Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.Error: open /proc/self/uid_map: no such file or directory
壹.解决办法
卸载服务器上老版本的docker,如果没有安装过执行命令也无妨。
1yum remove docker docker-client docker-client-...
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo ...