Author Archives: Huang Shiyang

gitlab jar was blacklisted by the pattern

https://docs.gitlab.com/ee/push_rules/push_rules.html Enabling push rules Note: GitLab administrators can set push rules globally under Admin area > Push Rules that all new projects will inherit. You can later override them in a... Read More | Share it now!

Get video media information

Give mediainfo a try. On the command line type mediainfo input.mkv. For more detailed video information mediainfo --fullscan input.mkv. ... Read More | Share it now!

Cassandra python client

A code example may be too much to ask for, but would be very helpful. First, the simplest possible Cassandra client. No eventlet, no ssl. It works: Next, eventlet. No threads, so eventlet is pointless here. But it works: Next, ssl, no eventlet. This... Read More | Share it now!

Cassandra installation

Latest version Download the latest Apache Cassandra 3.11 release: 3.11.4 (pgp, sha256 and sha512), released on 2019-02-11. Older supported releases The following older Cassandra releases are still supported: Apache Cassandra... Read More | Share it now!

Using cqlsh with SSL

Using a cqlshrc file is the easiest method of getting cqlshrc settings. The cqlshrc.sample provides an example that can be copied as a starting point. Prerequisites Prepare SSL certificates with a self-signed CA for... Read More | Share it now!

Cassandra Client-to-node encryption

Client-to-node encryption https://docs.datastax.com/en/archived/cassandra/3.0/cassandra/configuration/secureCqlshSSL.html Client-to-node encryption protects data in flight from client machines to a database cluster using SSL (Secure Sockets Layer). It... Read More | Share it now!

How to check if a variable is set in Bash?

where ${var+x} is a parameter expansion which evaluates to nothing if var is unset, and substitutes the string x otherwise. To check for non-null/non-zero string variable, i.e. if set, use It’s the opposite of -z. I find myself... Read More | Share it now!

差异两个rpms? – linux

尝试使用pkgdiff来查看RPM包之间的差异: 如果比较SRC.RPM,那么该工具也将提取并比较内部tarball(除非定义了-skip-subarchives选项). ... Read More | Share it now!