Suppose there's a table
create table users (
id integer primary key,
name text,
git config --get core.ignorecase
, and set it by git config core.ignorecase false
.git grep -I '^M'
. It searches for a literal CR character in files.git show
more lines before and after the changed lines, use git show -U <NUM>
.git diff
a file/dir between two commits, use git diff [--]
. Either commit
can be omitted, in which case it's as if HEAD
is used for that omitted commit.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
C++ REST SDK is built on Ubuntu 16 by the offical document. To build it on CentOS 7, here's how.
sudo yum group install Development\ Tools
sudo yum install zlib-devel libicu-devel openssl-devel
/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.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
/etc/bash_completion.d/
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> |