- What's TLS?
- TLS Protocol
- TLS Implementation
Ubuntu | CentOS | |
---|---|---|
Search package that contains the file | dpkg -S <file> |
rpm -qf <file> |
List package files | dpkg -L <package> |
rpm -ql <package> |
Search packages with glob pattern | dpkg -l <pattern > |
rpm -qa <pattern> |
Show package info | dpkg -s <package> / dpkg -p <package> |
rpm -qi <package> |
- Make sure bash completion is installed(It's installed by default in major Linux distributions, and Cygwin).
- Put completion files to
/etc/bash_completion.d/
- docker command: https://github.com/docker/docker-ce/blob/v18.06.0-ce/components/cli/contrib/completion/bash/docker
- docker-compose command: https://github.com/docker/compose/blob/1.23.1/contrib/completion/bash/docker-compose
- docker-machine command: https://github.com/docker/machine/blob/v0.16.0/contrib/completion/bash/docker-machine.bash
Generally, the Git proxy configuration depends on the Git Server Protocol you use. And there're two common protocols: SSH and HTTP/HTTPS. Both require a proxy setup already. In the following, I assume a SOCKS5 proxy set up on localhost:1080
. But it can also be a HTTP proxy. I'll talk about how to set up a SOCKS5 proxy later.
When you do git clone ssh://[user@]server/project.git
or git clone [user@]server:project.git
, you're using the SSH protocol. You need to configurate your SSH client to use a proxy. Add the following to your SSH config file, say ~/.ssh/config
:
ProxyCommand nc -x localhost:1080 %h %p
C++ REST SDK is built on Ubuntu 16 by the offical document. To build it on CentOS 7, here's how.
- Install build tools by
sudo yum group install Development\ Tools
- Install dependent libraries by
sudo yum install zlib-devel libicu-devel openssl-devel
- Get CMake 3.x binary from https://cmake.org/download/
- Get Boost 1.58 source code from https://www.boost.org/users/history/ and install it under
/opt/boost_1_58_0
by https://www.boost.org/doc/libs/1_58_0/more/getting_started/unix-variants.html#easy-build-and-install.
Get the OS image file(RASPBIAN STRETCH LITE) from https://www.raspberrypi.org/downloads/raspbian/, and write it into a SD card as said by https://www.raspberrypi.org/documentation/installation/installing-images/README.md
- For a headless server, enable SSH by putting a “ssh” file into the root, as instructed by https://www.raspberrypi.org/documentation/remote-access/ssh/README.md The default username/password is: pi/raspberry
- For VNC(remote desktop) and other ways of remote access, refer to
- Windows Git client sets core.ignorecase to true by default, you may need to disable it to detect server changes on file names.
Check it by
git config --get core.ignorecase
, and set it bygit config core.ignorecase false
. - Detect file EOL by
git grep -I '^M'
. It searches for a literal CR character in files.
- To
git show
more lines before and after the changed lines, usegit show -U <NUM>
. - To
git diff
a file/dir between two commits, usegit diff [--]
. Eithercommit
can be omitted, in which case it's as ifHEAD
is used for that omitted commit.