-
Mozila infrastructure
This file contains hidden or 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
http://m.blog.csdn.net/blog/Xiaos_hui/38852885 | |
ps:slave远程同步主机需要安装rsync. |
This file contains hidden or 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
引用:http://www.ahlinux.com/centos/22815.html | |
1. 首先关闭selinux | |
$ sudo sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config | |
重新启动linux系统 | |
2. 关闭防火墙iptables | |
$ sudo chkconfig iptables off | |
$ sudo chkconfig ip6tables off |
This file contains hidden or 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
sshpass |
This file contains hidden or 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
http://jimingsong.iteye.com/blog/1539446 (引用) | |
使用UTF-8编码发送邮件,可以彻底解决乱码问题。Linux系统中,可以将locale设置为en_US.UTF-8或者zh_CN.UTF-8,这样邮件内容可以自动编码为UTF8。 | |
但是发送邮件时使用mail命令时,邮件主题的编码仍然会出现乱码问题。这时就需要将邮件主题先行编码,再寄送。 | |
大多数Linux发行版都提供了base64命令,用于将单个文件、标准输入等转换为Base64编码,这正是发送中文邮件主题所需要的。 | |
测试代码代码 收藏代码 | |
echo “中文邮件内容” | mail -s “=?UTF-8?B?`echo 中文主题Test | base64`?=” [email protected] |
This file contains hidden or 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
刚才看博客的时候,发现有位童鞋(@arliang725 )在评论问 gist 是什么。于是我也试着搜索了一下,搜到了一篇译文: | |
Github作为代码分享平台在开发者中非常流行。此平台托管了包括游戏、书籍以至于字体在内的一千两百多万个项目(现在更多),这使其成为互联网上最大的代码库。 | |
Github还提供另一个非常有用的功能,这就是Gist。 | |
开 发人员常常使用Gist记录他们的代码片段,但是Gist不仅仅是为极客和码农开发的,每个人都可以用到它。如果您听说过类似Pastebin或者 Pastie这样的web应用的话,那您就可以看到它们和Gist很像,但是Gist比它们要更优雅。因为这些免费应用一般含有广告,而且带有很多其他杂 七杂八的功能。 | |
Gist – 任何人都能用得着 |
OlderNewer