Linux History 提示自动补全

软件安装参考 https://github.com/dvorka/hstr

1
2
sudo yum install -y hstr
hstr --show-configuration >> /etc/profile

之后 记得使命令生效

1
source /etc/profile

在命令行收入hstr,就会出现命令history,If you want to make running of hstr from command line even easier, then define alias in your ~/.bashrc:

1
alias hh=hstr

Don’t forget to source ~/.bashrc to be able to to use hh command.

其它:
使用root用户执行

1
2
3
4
sudo yum install -y hstr
hstr --show-configuration >> /etc/profile
echo "alias hh=hstr" >> /etc/profile
source /etc/profile

Xcode Failed to Create Provisioning Profile.

在使用xcode创建新项目时,有可能会出现以下的错误

1
2
3
4
5
Failed to create provisioning profile.
The app ID "com.hohode.Cal" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.

No profiles for 'com.hohode.Cal' were found
Xcode couldn't find any iOS App Development provisioning profiles matching 'com.hohode.Calculator'.

这个时候,可能是因为包名用了大写的缘故,改为小写就可以了,比如改成com.hohode.cal

ClickHouse JDBC Bridge的使用

参考文档 https://github.com/alex-krash/clickhouse-jdbc-bridge

1.先把项目下载到本地,解压到目录比如/data/clickhouse-jdbc-bridge-master

2.使用如下命令打包

1
mvn clean package

生成的最终jar包如下
upload successful

3.上传到目标服务器上

比如我要把 10.0.0.1 上Clickhouse上的数据复制到10.0.0.2的Clickhouse服务器上,那么将clickhouse-jdbc-bridge-1.0.jar上传到10.0.0.2上,

4.启动clickhouse-jdbc-bridge

之后使用如下命令启动

1
java -jar clickhouse-jdbc-bridge-1.0.jar

5.在目标服务器10.0.0.2上执行命令

upload successful