Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

drcwr/test

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
107 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test

  • test

CentOS-7-x86_64-DVD-1804.iso

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


dash vs bash

后来发现,因为Ubuntu默认的sh是连接到dash的,又因为dash跟bash的不兼容所以出错了.执行时可以把sh换成bash文件名.sh来执行.成功.dash是什么东西,查了一下,应该也是一种shell,貌似用户对它的诟病颇多。

修改sh默认连接到bash的方法:

  • 第一种
    sudo dpkg-reconfigure dash
    选择no 即可!
    再次编译!通过!搞定!

  • 第二种
    通过bash命令执行
    bash install.sh


smartgit

smartgithg

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


HyperLedger Fabric ChainCode开发——shim.ChaincodeStubInterface用法

http://www.cnblogs.com/studyzy/p/7360733.html


go time string

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

Hyperledger Fabric 1.0 链码(chaincode)的原理、接口和结构

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


go network transfer

recv  
url.QueryUnescape  
json.Unmarshal  
modify  
json.Marshal  
url.QueryEscape  
send  

fabric源码解析

https://blog.csdn.net/idsuf698987/


proto

cd $HOMEDIR/code/dir
#protoc --go_out=plugins=grpc:.  xxx.proto

git tag

git push origin --tags

ssh key known_hosts

/etc/ssh/ssh_config
StrictHostKeyChecking no

dockerfile

https://blog.csdn.net/wo18237095579/article/details/80540571

保持linux下保持ssh不断线

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 eof

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

jq

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 rm 带空格

git ls-files --deleted -z|xargs -0 -r git rm

git push --set-upstream origin chenwuruidev git push


git 提交流程

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

ubuntu 18 04 install sublime

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 add multi remotes

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

ubuntu 拼音 pinyin

apt-get install ibus-pinyin

About

test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.