WishMeLz

生活其实很有趣

分类 未分类 下的文章

微信机器人

https://github.com/padlocal/wechaty-puppet-padlocal/wiki/TOKEN-%E7%94%B3%E8%AF%B7%E6%96%B9%E6%B3%95app.tsimport { PuppetPadlocal } from "wechaty-puppet-padlocal"; import { Contact, log, Message, ScanStatus, Wechaty, Friendship } from "wechaty"; const puppet = new PuppetPadloc...

Centos 6 yum 错误

Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/archcd /etc/yum.repos.d/ 修改 CentOS-Base.repo注释掉 mirrorlist= 开头的注释取消 baseurl 开头的注释将 baseurl 中的mirrorlist.centos.org 改为 vault.centos.org

Nginx分流

server { listen 443 ssl; server_name api.xxx.com; # index index.html index.htm index.php; # root /aweb/api; ssl_certificate cert/api.pem; ssl_certificate_key cert/api.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HI...

粘贴图片 ctrl+v

document.addEventListener("paste", function (event) { var isChrome = false; if (event.clipboardData || event.originalEvent) { //某些chrome版本使用的是event.originalEvent var clipboardData = event.clipboardData || event.originalEvent.clipboard...

获取github仓库目录

官网文档:https://docs.github.com/en/rest/reference/repos#get-repository-contentGET /repos/{owner}/{repo}/contents/{path} owner:所有者 repo:仓库名字 path:路劲例子: https://api.github.com/repos/wozuinbs/video/contents/mini上述例子最多返回1000条数据。如需全部需要另外一种方法文档:https://docs.github.com/en/rest/referenc...

M3U8切片

使用ffmpeg./ffmpeg -i 源文件.mp4 -c copy -map 0 -f segment -segment_list ./m3u8位置 -segment_time 多少秒一个文件 ./切片位置./ffmpeg -i a.mp4 -c copy -map 0 -f segment -segment_list ./index.m3u8 -segment_time 30 ./vi-%04d.ts批量切片sh脚本目录结构 -z.sh -ffmpeg -test --v 视频路劲 --f 切片的路劲for file in `ls ....

jsDelivr加载github文件

https://www.jsdelivr.com/ 官网可以用做图床和视频床仓库创建完成后,新建一个Releases输入一个版本号回车即可使用方法user:用户名repo:仓库名字@version :版本号 不写版本号默认最新例子:github: https://github.com/WishMelz/file/blob/master/css/characteristic.cssjsDelivr:https://cdn.jsdelivr.net/gh/WishMelz/file/css/characteristic.csspurge.jsdeli...

GitHub主页玩法

效果图如下,个人主页具体使用使用就是创建一个和自己用户名一样的创库。如下图其中README文件中的内容就是主要显示的内容。GitHub 统计卡片需要用到一个接口:https://github-readme-stats.vercel.app/api地址:https://github.com/anuraghazra/github-readme-stats![WishMeLz](https://github-readme-stats.vercel.app/api?username=WishMeLz&show_icons=true&...

网站收集

查看ip下载了什么BThttps://iknowwhatyoudownload.com/en/peer/短网址服务: https://bit.ly个人信息伪造:https://www.fakepersongenerator.com/http://www.haoweichi.com/Index/custom_result/系统怀旧: http://www.therestartpage.com/查你出生的那年都发生了什么事: http://whathappenedinmybirthyear.com/快速定位背景音乐:&nb...

TG ROBOT

@utubebot下载youtube视频@StickerSetBot @Sticker2GIFBot @GIFDownloader_bot贴纸包导出@YTranslateBot发送英文,翻译为中文@lang_translate_bot 在群组里面发送翻译@getmediabot下载推特@referbot缩短网址@like一个很酷的机器人,可以使用基于表情符号的按钮创建帖子。@Uloadit_bot文件下载

Win10家庭版打开策略组

@echo off pushd "%~dp0" dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt for /f %%i in ('findstr /i ...

Bat脚本

一键改名字ren *.jpg *.png便携式启动项目chcp 65001 路径出现中文@echo off chcp 65001 start "H5_APP" cmd /k "cd /d D:\project\xxxx && npm run serve"

OSS 视频封面

<video src="地址" poster="地址+ '?x-oss-process=video/snapshot,t_1000,f_jpg,w_800,h_600,m_fast'"></video>?x-oss-process=video/snapshot,t_1000,f_jpg,w_800,h_600,m_fast w_ 和 h_ 是宽高。一般情况下不写。 ?x-oss-process=video/snapshot,t_1000,f_jpg,m_fasthttps://help.aliyun.com/document_de...

JS-Cookie

function getCookie(cookie_name) { var allcookies = document.cookie; var cookie_pos = allcookies.indexOf(cookie_name); if (cookie_pos !== -1) { cookie_pos = cookie_pos + cookie_name.length + 1; var cookie_end = allcookies.ind...

Mac安装brew

原本的安装脚本被我抽离出来了/bin/bash -c "$(curl -fsSL http://itsse.oss-cn-shanghai.aliyuncs.com/files/1590737189274.sh)"