WishMeLz

生活其实很有趣

分类 未分类 下的文章

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)"

CSS抖音特效

第一种 #h1{ font-family: "微软雅黑,sans-serif"; font-size: 48px; font-weight: 500; width: 400px; height: 100px; } #h1 { animation: uk-text-shadow-glitch .65s cubic-bezier(1, -2.91, 0, 3.79) 0s infinite norm...

WordPress使用七牛云加速

流程:创建对象存储-->绑定域名-->镜像回源创建对象存储绑定域名后续继续添加就ok了。如果需要https,在按照规则上传SSL证书最后:重点镜像回源在空间设置内的镜像回源。在七牛云有一个cdn的域名。自己的域名CNAME到cdn的域名上。这个cdn指向了对象存储。在对象存储的空间内设置镜像回源,回源到自己的博客上面。(回源:第一次回源会帮博客的图片上传到对象存储,第二次访问就是对象存储。)