博文

目前显示的是 二月, 2018的博文

利用Aria2+AriaNg+H5ai+Google Drive建立离线BT下载/在线播放/无限空间网盘

由于本教程所使用的 H5ai 一键包只适用 Debian 8+ ,且必须纯净的系统,不含有 WEB 环境。 1、安装H5ai 本 H5ai 一键安装包自带 SSL 证书,需要提前解析域名到服务器。使用命令: apt- get install git -y git clone https: //github.com/wulabing/h5ai_onekey_install-lnp-.git h5ai cd h5ai bash h5ai.sh |tee h5ai.log #脚本备份 https: //www.moerats.com/usr/shell/h5ai_ssl.sh 运行后,选择 3 即可。完成后进入 https://domain.com 就可以打开了 H5ai 界面了,且目录在 /home/wwwroot/domain.com 。 2、安装Aria2 这里用的逗比的脚本,使用命令: wget -N -- no -check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh #备用地址 wget -N -- no -check-certificate https://www.moerats.com/usr/shell/Aria2/aria2.sh && chmod +x aria2.sh && bash aria2.sh 默认密匙为 doub.io ,下载目录为 /usr/local/caddy/www/aria2/Download 。 3、安装AriaNg 博主认为 AriaNg 0.2 版本好用些,所以默认用这个,使用命令: apt- get install unzip -y mkdir /home/wwwroot/domain.com/ariaNg #将domain改成你的域名再运行 cd /home/wwwroot/domain.com/ariaNg wget https: //www.moerats.com/usr/down/aria-ng-0.2.0.zip ...

Linux上使用rclone挂载Google Drive网盘

图片
本教程只适用 Debian / Ubuntu 系统,如果你是 CentOS ,请参考: https://rclone.org/install/ ,安装 rclone 。挂载方法和下面差不多 1、安装rclone wget https://www.moerats.com/usr/shell/rclone_debian.sh && bash rclone_debian.sh 2、初始化配置 rclone config 会出现以下信息: n) New remote s) Set configuration password q) Quit config n/s/q> n name > Rats #随便填,后面要用到 Type of storage to configure. Choose a number from below, or type in your own value 1 / Amazon Drive \ "amazon cloud drive" 2 / Amazon S3 (also Dreamhost, Ceph, Minio) \ "s3" 3 / Backblaze B2 \ "b2" 4 / Box \ "box" 5 / Cache a remote \ "cache" 6 / Dropbox \ "dropbox" 7 / Encrypt / Decrypt a remote \ "crypt" 8 / FTP Connection \ "ftp" 9 / Google Cloud Storage (this is not Google Drive) \ "google cloud storage" 10 / Google Drive \ "drive" 11 / Hubic \ "hubic" 12 / Lo...

Mailgun转发至Gmail实现免费域名邮箱进行发件

图片
首先要说明一下,Mailgun每个月发送10000封邮件以内是免费的。对于个人和小型团体来说,10000封的月发送量绰绰有余了。 整个域名邮箱的实现如下面的示意图所示。可见,我们整合了Mailgun和Gmail实现了和G Suite一样的功能,曲线救国。下面我就来介绍一下具体怎样部署GMail和Mailgun. 首先,我们要去mailgun.com注册一个账号。注册账号并验证邮箱后,可以登录到后台,然后在Domains选项卡中点击Add New Domain. 输入域名 (比如example.com) 之后点击下一步,会提示修改DNS记录。请移步你的域名DNS解析商,添加好对应的DNS记录。相关的记录一共有5条,其中2条TXT记录,2条MX记录,1条CNAME记录。添加好后点击页面底部的Continue to Domain Overview, 进入管理控制台。 在控制台中,顶部有提示,DNS需要24~48小时生效。如果确认自己更改的DNS已经生效了,就可以点击控制台中的Check DNS Records Now, 如上图。如果DNS设置无误,那么这个域名就可以开始使用了,我们可以看到此时域名的状态已经变成了绿色的Active. 现在,我们首先要给这个域名设置转发,使得我们的Gmail邮箱能够收取域名邮箱的所有信件。 点击顶部Routes选项卡,然后点击Create Route, 如下图所示。 在Create New Route界面中,Expression Type选择Catch All, Actions勾选Forward并输入你的GMail邮箱地址,其他所有选项保持默认即可,最后点击下面的Create Route. 这时,我们回到Domains列表中点击我们自己的域名,应该能看到如下图的页面,其中包含了SMTP服务器和密码,以及API等内容。我们只需要知道服务器密码即可。 至此,Mailgun的设置完毕,我们需要登录GMail, 设置收发信。 登录你的个人Gmail后台,在Settings里面找到Accounts and Import, 点击Add another email address, 如下图。 在弹出的小窗口中,输入姓名和你要使用的域名...

yandex企业免费邮箱设置 发件设置

imap.yandex.com       port  143 smtp.yandex.com       port  465  SSL SMTP和IMAP信息: IMAP Server: imap.yandex.com Port: 993 with SSL enebled SMTP Server: smtp.yandex.com Port: 465 with SSL enabled         username: 'a@ls.top'         password: ''         host: 'smtp.yandex.com'         port: 465

Disable PowerShell beep on backspace Win10

When pressing  Backspace  in PowerShell, it will emit a 'beep' sound if there is no (more) text to delete. This is quite annoying if you accidentally hold down the key too long, as the sound will keep going for a short while after you release it. Solution : The beep is provided by the  PSReadline  module, which shipped with Windows 10. You need to change the  PSReadline  option to disable the bell: Set-PSReadlineOption -BellStyle None If you want this change for all future PowerShell sessions, then you need to add this command to your  PowerShell profile . For example, to set the option for "Current User, Current Host" ( $Profile ): Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser if (!(Test-Path -Path "$Profile")) {New-Item -ItemType File -Path "$Profile" -Force} Add-Content -Value "Set-PSReadlineOption -BellStyle None" -Path "$Profile" The first line allows your profile run a startup script whe...