摘要: <!DOCTYPE html> <head> <title>Redirecting to Netlify</title> <script> let gitUrl = window.top.location.hash.replace("#","") if(gitUrl.endsWith("/")) g 阅读全文
posted @ 2022-09-06 12:07 Naihe\ 阅读(81) 评论(0) 推荐(0)
摘要: Streaming-Media-Server-Pro 前言 我的目标是将程序打造成属于每个人的直播源服务,且对每个人完全开源免费!可作为家庭影院电视、视频等流媒体的提供商,兼容全平台,只需使用视频播放器调用接口链接即可享用,不多说开始喽。 开源程序介绍点击跳转 部署教程 by Naihe 💡提示: 阅读全文
posted @ 2022-09-02 20:32 Naihe\ 阅读(18745) 评论(18) 推荐(0)
摘要: 为了满足日常需求,就写了一个自动上传图片到图床的脚本 运行该程序可以做到自动完成图片上传,并自动替换为网络链接,支持多图同时上传,采用了多线程,上传速度提升很明显。 以Window系统为例,操作步骤: 在“C:\Program Files\Typora”路径创建一个“upload.py“文件, 代码 阅读全文
posted @ 2022-08-31 20:20 Naihe\ 阅读(162) 评论(0) 推荐(0)
摘要: import requests from fake_useragent import UserAgent import multiprocessing import time from requests_ip_rotator import ApiGateway from bs4 import Bea 阅读全文
posted @ 2022-08-28 11:05 Naihe\ 阅读(61) 评论(0) 推荐(0)
摘要: 用于访问被墙的api请求 async function handleRequest(event) { const request = event.request const host = "https://example.com/Channel"; let new_request_headers = 阅读全文
posted @ 2022-08-10 16:35 Naihe\ 阅读(686) 评论(0) 推荐(0)
摘要: Localtunnel 将为您分配一个唯一的可公开访问的 url,它将所有请求代理到您本地运行的网络服务器。 快速开始 全局安装 Localtunnel(需要 NodeJS)以使其在任何地方都可以访问: npm install -g localtunnel 在某个本地端口(例如 http://loc 阅读全文
posted @ 2022-07-19 17:40 Naihe\ 阅读(429) 评论(0) 推荐(0)
摘要: 该方法针对Ubuntu18及以后版本。 第一次遇到ping:报错Name or service not known这个问题在百度上找了很久说的都是什么修改 /etc/resolv.conf,但每次修改后重启就会恢复配置信息,原因是因为这是一个链接文件;还有说修改/etc/network/interf 阅读全文
posted @ 2022-07-10 14:47 Naihe\ 阅读(187) 评论(0) 推荐(0)
摘要: 使用fastgit git config --global url."https://github.com.cnpmjs.org/".insteadOf "https://github.com/" git config protocol.https.allow always git config - 阅读全文
posted @ 2022-07-09 15:33 Naihe\ 阅读(126) 评论(0) 推荐(0)
摘要: 仅作为记录,核心代码 int timestamp = (hours + t.hours) * 60 * 60 + (minutes+t.minutes) * 60 + (seconds + t.seconds); int hours = timestamp / 3600 % 24; int minu 阅读全文
posted @ 2022-03-27 15:49 Naihe\ 阅读(246) 评论(0) 推荐(0)
摘要: 1.事件背景 事情起因是因为我想安装xvfb,执行sudo apt-get install xvfb发现安装报错,看报错原因是被墙导致,因为我用的默认源也没有挂代理;然后就百度,发现都是互相抄,什么换阿里源啊,163源、中科源之类,我都试过,并且发现这些源在更新过程会有一些错误或者更新被忽略,导致我 阅读全文
posted @ 2022-02-02 12:21 Naihe\ 阅读(735) 评论(0) 推荐(1)
// 音乐播放器