Skip to main content

PrL的负能量场

有的没的
  1. 安卓设置动画速度的adb命令

    # 设置动画速度
    settings put global window_animation_scale 0.8
    settings put global transition_animation_scale 0.8
    settings put global animator_duration_scale 0.8


    # 读出来看看
    settings get global window_animation_scale
    settings get global transition_animation_scale
    settings get global animator_duration_scale


    #programming
  2. md 我说为啥通过wifi ssh进不去.3了呢,原来是路由器的ip进fail2ban名单了...

    而且我是通过公网转发的端口进的,这样局域网内都需要网关的回环处理,就进不去了。

    发现通过我的vps 可以ssh进去,说明这种情况不需要回环的情况下,没有让网关代理身份,所以可以进去


    搞了这么久竟然是因为这个。。。

    ps:再不济,也有rdp开着呢!

    #network
  3. PrL的负能量场
    answer.html
    发现我的xray部署到路由器上,无法通过公网ip:port的形式访问路由器转发的内网服务。

    然而xray部署在内网服务器上转发出来,在访问公网ip:port就可以访问了。

    经过一段研究,应该是snat相关的问题,只设了dnat但是没设snat。详见接下来连续的几个post

    #network
  4. 部分 Cloudflare 免费计划也可以使用 Snippets 了。

    Snippets 是一个更轻量的 JS 运行环境。可以做重写、重定向等一些对 CPU 要求不高的业务,重要的不限制请求次数。

    你可以:

    1. 搭建一个不限流量的 Docker Hub 镜像 https://miantiao.me/posts/cloudflare-docker-mirror/

    2. 搭建只需 10 行代码的短链接系统 https://miantiao.me/posts/hink/

    3. 一个 IP 信息检测 API https://github.com/ccbikai/ip-api