分类 实用工具 下的文章
Google 的应用专用密码
Google 已经停止支持“低安全性应用访问”选项,因为这种方式存在安全风险。为了解决这个问题,如果你需要通过 Gmail 发送邮件,可以使用以下更安全的方法:
- 使用“应用专用密码”
Google 建议用户通过 应用专用密码 来访问 Gmail,而不是直接使用账户密码。这种方式更安全,且不受限制。
步骤如下:
访问 Google 账户安全设置。
确保已启用“双重验证”功能。如果未启用,请先设置双重验证。
启用双重验证后,点击“应用专用密码”。
选择用于发送邮件的应用和设备类型,生成一个应用专用密码。
在邮件发送的程序或脚本中,使用这个应用专用密码代替 Gmail 密码。
reddit设置subreddit不允许发链接
还有很多规则 例如设置仅仅允许发图片,或者仅仅视频等等.
https://www.reddit.com/r/modguide/wiki/contentcontrol/#wiki_only_allow_link_posts_.2F_no_text.2Fvideo.2Fimage_posts_.28etc..29
Limiting post types with Content Controls and AutoMod
Images
Only allow image posts (direct uploads only)
Only allow image posts (including hosting sites)
Only allow text posts and image posts (direct uploads only)
Don't allow image posts (including hosting sites)
Videos
Only allow video posts (direct uploads only)
Only allow video posts (including hosting sites)
Don't allow link posts to video hosting sites
Don't allow video posts (direct upload+hosting sites)
Images & Videos
Only allow image and video posts (direct uploads only)
Only allow image and video posts (including hosting sites)
Don't allow image and video posts (including hosting sites)
Links
Only allow link posts / No text/video/image posts (etc.)
Don't allow link posts
Only allow Reddit links / no external links
Don't allow links / No links
Only allow links to specific domains
Don't allow links to specific domains
Only allow crossposts
Don't allow crossposts
Misc.
Only allow polls
Where to put the AM rule
centos7停止维护后更换yum源教程
备份当前 Yum 源
在更换 Yum 源之前,建议先备份当前的 Yum 源配置文件,以防万一。执行以下命令:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
复制代码
这将备份当前的 Yum 源配置文件为 CentOS-Base.repo.bak。
- 下载新的 Yum 源配置文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
复制代码
sudo yum clean all
sudo yum makecache
sudo yum update
这里下载的是阿里云的centos7 yum源。
- 清除 Yum 缓存
yum clean all
复制代码
- 生成新的缓存
yum makecache
复制代码
教程到这里就结束了,现在您可以执行yum命令测试能否正常下载环境。