1、记录代码片段; 2、记录技术文档; 3、分享; 4、快速检索; 5、页面简约、操作简单;
github是工作、学习利器,必备工具,一定要学好。
https://github.com/xirong/my-git/blob/master/how-to-use-github.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init # 初始化本地git仓库(创建新仓库) | |
git config --global user.name "xxx" # 配置用户名 | |
git config --global user.email "xxx@xxx.com" # 配置邮件 | |
git config --global color.ui true # git status等命令自动着色 | |
git config --global color.status auto | |
git config --global color.diff auto | |
git config --global color.branch auto | |
git config --global color.interactive auto | |
git config --global --unset http.proxy # remove proxy configuration on git | |
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库 |
注册google邮箱时:“此电话号码无法用于进行验证”的解决办法
解决办法:使用iphone google邮箱客户端注册
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
参考资料: | |
https://dcamero.azurewebsites.net/shadowsocksr.html#linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
刚安装的CentOS7自带的yum源不好使,需要换。 | |
# 修改默认yum源为网易的mirrors.163.com | |
1、首先备份系统自带yum源配置文件。 | |
[root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup | |
2、下载163的yum源配置文件到/etc/yum.repos.d/ | |
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo | |
3、运行yum makecache生成缓存,然后就可以使用了。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user:myusername #tag | |
例如: | |
user:wangxianhe #torque | |
参考资料: | |
https://stackoverflow.com/questions/2082723/how-do-you-manage-your-gists-on-github |
Centos6.5操作系统自带gcc版本太低了,有时候编译软件的时候需要高版本的gcc。 升级gcc最好的方式还是用yum,因为自己编译源码有可能功能不全。下面是从网上找的使用YUM升级GCC的方法。很方便,学习了。
参考: https://gist.github.com/stephenturner/e3bc5cfacc2dc67eca8b
OlderNewer