0%

PotPlayer

PotPlayer(韩语:팟플레이어),是KMPlayer的原作者姜勇囍进入Daum公司后的新一代作品,目前仍有更新。由于采用Delphi编译程序的KMPlayer有一些弊端,姜勇囍为改进播放器本身的一些性能而重新用VC++进行构架。

特点

  • 捆绑多媒体文件的解码器,不需要另外安装解码器也可以播放。
  • 硬件加速,支持DxVA(DirectX Video Acceleration)。
  • 提供更多的字幕输出选项。
  • 支持播放50MB以下的ZIP/RAR压缩包内的多媒体内容。

在线字幕翻译

通过DeepL pro用户的API,free用户每月 50 W字的使用量,测试使用已经足够。

所需文件见仓库

使用方式

  • .as.ico这两个文件下载到potplayer安装目录的Extension\Subtitle\Translate这个路径下
  • Potplayer中填入API 密钥

测试密钥于TG频道中获取。

一些常用的一键脚本

  1. V2ray一键(233版本)
    真的很方便,于是就偷懒干脆没看V2ray官方文档。不过大致流程还是有一些了解。

    1
    2
    3
    bash <(curl -s -L https://git.io/v2ray.sh)

    # v2ray bbr 还可以更换内核
  2. Make-A(v2ray/Xray 多合一脚本)

    1
    2
    wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

  1. Warp 一键

    1
    2
    3
    4
    ## ipv4
    bash <(curl -fsSL git.io/warp.sh) d
    ## ipv6
    bash <(curl -fsSL git.io/warp.sh) 6
  1. NeteaseUnBlock

    1
    2
    3
    # 超级用户下
    wget -N --no-check-certificate raw.githubusercontent.com/XIU2/SHELL/master/unblock163.sh && chmod +x unblock163.sh && bash unblock163.sh

  2. SuperBench

    1
    curl -Lso- git.io/superbench.sh | bash
  3. CCAA

    1
    2
    3
    4
    #海外
    bash <(curl -Lsk https://raw.githubusercontent.com/helloxz/ccaa/master/ccaa.sh)
    #国内
    bash <(curl -Lsk https://raw.githubusercontent.com/helloxz/ccaa/master/ccaa.sh)
  4. Youtube-dl

    1
    2
    3
    sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
    sudo chmod a+rx /usr/local/bin/youtube-dl

  5. EHEH
    点击标题叭,服务器监控。我想之后我可能会用到。

  6. BT

    1
    2
    3
    4
    5
    # 7.3 version(需要手机号登陆)
    wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh

    # 5.9 version
    wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh
  7. LNMP一键安装脚本,个人觉得比宝塔要好用。

    1
    wget http://soft.vpser.net/lnmp/lnmp1.8.tar.gz -cO lnmp1.8.tar.gz && tar zxf lnmp1.8.tar.gz && cd lnmp1.8 && ./install.sh lnmp

    如需要安装LNMPA或LAMP,将./install.sh 后面的参数lnmp替换为lnmpa或lamp即可。同时也支持单独安装Nginx或数据库,命令为 ./install.sh nginx 或 ./install.sh db。如需更改网站和数据库目录、自定义Nginx参数、PHP参数模块、开启lua等需在运行./install.sh 命令前修改安装包目录下的 lnmp.conf 文件,详细可以查看lnmp.conf文件参数说明

  8. Gost转发

  • 启动脚本

    1
    wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/KANIKIG/Multi-EasyGost/master/gost.sh && chmod +x gost.sh && ./gost.sh
  • 再次运行本脚本只需要输入./gost.sh回车即可
  1. [realm转发](seal0207/EasyRealM: RealM 转发脚本 (github.com))

    1
    wget -N --no-check-certificate https://git.io/realm.sh && chmod +x realm.sh && ./realm.sh

不论是观影还是下载影片,都推荐在PC端进行

流程

  • 下载种子或获取磁力链接
  • 将以上提交服务器开始下载
  • 将文件拉回本地
  • 删除远端文件

详解

  • 下载种子或获取磁力链接

    • 开启代理
    • 打开https://rarbgprx.org/torrents.php?category=movies
    • 左侧选择要搜索的类目(例如电影或是TV Show)
    • 中间搜索你想要看的电影或节目,注意一定要用英文名
      • 例如:少年的你 则搜索 Better Days
      • 不知道英文名可以先百度
    • 搜索完在下面根据名称日期预览图等挑选一个,单击之后会跳到详情页面
    • 第一行Torrent,点击旁边的链接就可以下载种子文件,右边红色小磁铁就是磁力链接。(建议使用种子)
  • 将以上提交服务器开始下载

    • 浏览器新开标签页打开https://u.nu/mg-dl(MG Download 已弃用 Deprecated 替换为自己的CCAA down即可)
    • AriaNg认证
      • 左边标签选择Aria2Ng设置,然后在页面左上找到全局旁边的RPC选项卡,单击
      • Aria2 RPC 密钥一栏填写657286,刷新页面
    • 创建下载任务
      • 页面左上找到新建,单击
      • 立即下载按钮旁边有文件夹字样,单击上传刚刚下载好的种子文件
      • 立即下载
    • 等待下载完成
      • 下载速度取决于资源热度
  • 将文件拉回本地

    • 再次打开https://u.nu/mg-dl(已弃用 Deprecated)
    • 点击左侧菜单栏最后一项文件管理
    • 登陆
      • 账号: ccaa
      • 密码: admin
    • 找到自己的文件
      • 单击,底色变蓝说明已经选中
      • 右上角点击下载图标,开始下载
    • 下载完成
      • 请将下载完的文件删除,因为服务器外存有限
      • 选中,点击右上垃圾桶按钮即可

typecho+caddy+php7+sqlite3+cloudflare

系统Debian10:
执行相应的更新操作,以及安装必要的依赖

apt update
apt install lsb-release
apt install net-tools

优化打开文件的限制次数,默认的打开文件数是1024:

echo '* soft nofile 51200
* hard nofile 51200' >> /etc/security/limits.conf

ulimit -n 51200

echo 'fs.file-max = 51200
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.core.netdev_max_backlog = 250000
net.core.somaxconn = 4096
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_mem = 25600 51200 102400
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_congestion_control = hybla' >> /etc/sysctl.conf

sysctl -p

更新php7.2的软件源

#添加GPG
wget -O /etc/apt/trusted.gpg.d/php.gpg https://mirror.xtom.com.hk/sury/php/apt.gpg

#安装apt-transport-https
apt-get install apt-transport-https

#添加sury软件源
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'

#更新软件源缓存
apt-get update

安装php 7.2

apt install php7.2-fpm php7.2-mysql php7.2-curl php7.2-gd php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-zip php7.2-opcache -y

设置php

sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/' /etc/php/7.2/fpm/php.ini 

php更多命令:

systemctl restart php7.2-fpm  #重启
systemctl start php7.2-fpm  #启动
systemctl stop php7.2-fpm  #关闭
systemctl status php7.2-fpm  #检查状态

安装sqlite3

apt install php7.2-sqlite3
#创建数据库文件
mkdir /www/db #示例
cd /www/db
sqlite3 testDB.db
#创建以后权限加满,可读写
chmod -R 777 /www/db

安装caddy:

#下载并解压Caddy
wget "https://caddyserver.com/download/linux/amd64?license=personal&telemetry=off" -O - | tar -xzv

#新建并写入Caddyfile,目录最好放在Caddy下
https://yourdomain.com {
    root /www/web/bulid
    tls self_signed
    fastcgi / /run/php/php7.2-fpm.sock php { 
        ext .php
        split .php
        index index.php
   }
   proxy /hello 127.0.0.1:10000 {
      websocket
      header_upstream -Origin
    }
   rewrite {
        if {path} not_match ^\/admin
        to {path} {path}/ /index.php?{query}
    }
}

使用自签名证书,cloudflare的Catch需要设置Full模式。

启动Caddy:

./caddy > caddy.log 2>&1 &

相关命令:

启动:systemctl start caddy
停止:systemctl stop caddy
重启:systemctl restart caddy

安装typecho:

#下载
wget --no-check-certificate https://github.com/typecho/typecho/releases/download/v1.1-17.10.30-release/1.1.17.10.30.-release.tar.gz -O typecho.tar.gz
tar -zxvf typecho.tar.gz -C  /www/web
#使用本Blog模板
wget --no-check-certificate  https://github.com/Zisbusy/Akina-for-Typecho/archive/v3.0.zip
mv /Akina-for-Typecho-3.0/Akina/*  /www/web/build/usr/themes/Akina

大功告成!

买回来一块树莓派3b裸板,没想到ssh连接花了这么长时间。

首先是在写入系统时需要创建一个名为ssh的文件夹。16年之后的版本都需要这样。因为默认的ssh的关闭的。
之后是利用一根网线,直接接到猫的网口,再用Advanced IP Scanner扫描找到raspberry的IP地址。

ssh连接:

username:pi
password:raspberry

连接Wifi:

sudo raspi-config

2 Network Options
然后回车,输入SSID,password。

sudo reboot

重启自动链接。

改为静态IP:

(否则每次重启后连接都得先找地址)

sudo nano /etc/dhcpcd.conf

在文件末加入

interface eth0
# 指定静态IP,/24表示子网掩码为 255.255.255.0
static ip_address=192.168.1.20/24
# 路由器/网关IP地址
static routers=192.168.1.1
# 手动自定义DNS服务器
static domain_name_servers=114.114.114.114

WiFi则将第一行改为:

interface wlan0

重启生效:

sudo reboot

安装xrdp:

首先更改软件源:

sudo vi /etc/apt/sources.list

更新:

sudo apt-get upgrade

安装xrdp:

sudo apt-get install xrdp

安装完成后即可通过win10自带的远程桌面连接。

pyinstaller基本参数

-D 零散文件,不完全打包
-F 只有exe
-w 窗口
--nonconsole 无控制台

在打包过程中的问题:

pyinstaller 在打包过程中,不会将import的库中引用或依赖的文件一并打包,所以我们需要通过-D来打包,并从python文件夹中找到对应的库,复制到打包后的文件夹中