- test
http://101.96.10.63/isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1804.iso http://mirrors.aliyun.com/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-DVD-1804.iso
后来发现,因为Ubuntu默认的sh是连接到dash的,又因为dash跟bash的不兼容所以出错了.执行时可以把sh换成bash文件名.sh来执行.成功.dash是什么东西,查了一下,应该也是一种shell,貌似用户对它的诟病颇多。
修改sh默认连接到bash的方法:
-
第一种
sudo dpkg-reconfigure dash
选择no 即可!
再次编译!通过!搞定! -
第二种
通过bash命令执行
bash install.sh
https://blog.csdn.net/u011534057/article/details/54582951
sudo add-apt-repository ppa:eugenesan/ppa
sudo apt-get update
sudo apt-get install smartgithg
https://www.syntevo.com/smartgit/download/
https://www.syntevo.com/downloads/smartgit/smartgit-linux-18_1_5.tar.gz
http://www.cnblogs.com/studyzy/p/7360733.html
current := time.Now()
fmt.Println("origin : ", current.String())
// origin : 2016-09-02 15:53:07.159994437 +0800 CST
fmt.Println("mm-dd-yyyy : ", current.Format("01-02-2006"))
// mm-dd-yyyy : 09-02-2016
https://blog.csdn.net/so5418418/article/details/78668109
dns-nameservers 202.38.64.1
cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.1
-
dhcp
cat /var/lib/dhcp/dhclient.leases
lease {
interface "enp0s3";
fixed-address 192.168.1.18;
option subnet-mask 255.255.255.0;
option dhcp-lease-time 86400;
option routers 192.168.1.1;
option dhcp-message-type 5;
option dhcp-server-identifier 192.168.1.1;
option domain-name-servers 192.168.1.1;
renew 2 2018/11/13 21:38:06;
rebind 3 2018/11/14 08:33:45;
expire 3 2018/11/14 11:33:45;
}
lease {
interface "enp0s3";
fixed-address 192.168.1.18;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option domain-name-servers 192.168.1.1;
option dhcp-server-identifier 192.168.1.1;
renew 2 2018/11/13 23:17:51;
rebind 3 2018/11/14 08:33:47;
expire 3 2018/11/14 11:33:47;
} -
dns /etc/resolvconf/resolv.conf.d/base nameserver xxx.xxx.xxx.xxx
recv
url.QueryUnescape
json.Unmarshal
modify
json.Marshal
url.QueryEscape
send
https://blog.csdn.net/idsuf698987/
cd $HOMEDIR/code/dir
#protoc --go_out=plugins=grpc:. xxx.proto
git push origin --tags
/etc/ssh/ssh_config
StrictHostKeyChecking no
https://blog.csdn.net/wo18237095579/article/details/80540571
ssh -o ServerAliveInterval=60
每60s向服务器发送一次命令
~/.ssh/config
/etc/ssh/ssh_config
ServerAliveInterval 60
cat file |tee t;grep ab t|tee r;grep b r|tee s;wc s
cat >> /etc/yum.repos.d/MariaDB.repo <<eof
> [mariadb]
> name = MariaDB
> baseurl = http://yum.mariadb.org/10.2/centos7-amd64
> gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
> gpgcheck = 1
> eof
https://www.cnblogs.com/timxgb/p/6644914.html
- 自定义格式输出某一项
jq '.[0] | {message: .commit.message, name: .commit.committer.name}'
结果:
{
"name": "Stephen Dolan",
"message": "Merge pull request #162 from stedolan/utf8-fixes\n\nUtf8 fixes. Closes #161"
}
- 自定义格式输出多项
jq '.[] | {message: .commit.message, name: .commit.committer.name}'
结果:
{
"name": "Stephen Dolan",
"message": "Merge pull request #162 from stedolan/utf8-fixes\n\nUtf8 fixes. Closes #161"
}
{
"name": "Stephen Dolan",
"message": "Reject all overlong UTF8 sequences."
}
- 以数组形式自定义输出多项
jq '[.[] | {message: .commit.message, name: .commit.committer.name}]'
git ls-files --deleted -z|xargs -0 -r git rm
git push --set-upstream origin chenwuruidev git push
git add
git commit
git push
git checkout develop
git pull
git checkout xxx
git log --graph
git rebase -i commit-id
git push -f(谨慎)
git rebase devekop
解决冲突
git rebase --continue
git checkout develop
git merge xxx
git push
mkdir sublime
cd sublime
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" |sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get install sublime-text
git remote add drcwr https://github.com/drcwr/kubeedge.git
git remote -v
git pull drcwr
git branch -a
git checkout -b cmaster
git branch -u remotes/drcwr/master cmaster
git branch -vv
git pull
git push drcwr cmaster:master
git remote remove origin
apt-get install ibus-pinyin