WishMeLz

生活其实很有趣

分类 未分类 下的文章

px2rem

npm i postcss-px2rempostcss.config.js module.exports = { plugins: { autoprefixer: { overrideBrowserslist: ['Android 4.1', 'iOS 7.1', 'Chrome > 31', 'ff > 31', 'ie >= 8'] }, "postcss-px2rem": { remUnit: 36, // 50px = 1rem remPrecision: 2 // ...

vue-print-nb 打印

npm i vue-print-nb import Print from 'vue-print-nb' use(Print) <a-button :style="{ marginLeft: '6px' }" v-print="'#printTest'">导出PDF</a-button> #printTest 是打印的容器 printSetting:{ id:"printTest", // 打印的容器ID popTitle:"得膜率图表", // 顶部标签 ...

echarts 悬浮框内容

tooltip 下 formatter: function (params) { console.log(params); var result = params[0].axisValue + "<br/>"; params.forEach(function (item) { var suffix = '' if(item.seriesName.indexOf('率') !=...

Vue2 动态插槽名称透传

<div class="tablesing"> <vxe-grid ref="xGrid" border show-overflow :data="dataSource" :columns="cloneColumns" height="700" :row-config="{ isHover: true, isCurrent: true,height:28 }" :column-config="{ isHover:...

Mac 虚拟机UTM

https://mac.getutm.app/ https://mac.getutm.app/support/Shift + F10 打开CMD 命令视窗(要同时按FN键,Shift + F10+ FN) OOBE\BYPASSNRO

随机图片API

https://s.file.itsse.cn/tool/api/v1/bg每次请求都是随机图片, 如下是预览图.图片包地址: https://www.aliyundrive.com/s/P7Ad98uXWRh

UnixBench工具跑分测试(一)

wget https://cdn.jsdelivr.net/gh/WishMelz/file/2022/UnixBench5.1.3.tgz tar -xf UnixBench5.1.3.tgz cd UnixBench5.1.3 make ./Run等待即可问题make: gcc: Command not found make: *** [pgms/arithoh] Error 127 yum -y install gcc Can't locate Time/HiRes.pm or Can't locate Time/HiR...

TikTok

博主教程视频:https://www.youtube.com/channel/UCPD2Q2Rak0W5r8MNRRgOqywShadowrocket https://www.youtube.com/watch?v=vfeCQ98uhJI https://itiktok.best/3.17更新 Shadowrocket https://www.youtube.com/watch?v=wwgVhmBnURM 3.18 圈X https://www.youtube.com/watch?v=0W7Lu8e2sms

PM2

pm2 start xxx.js pm2 del xxx.js/id pm2 stop xxx.js/id pm2 save //保存任务列表 ~/.pm2目录 pm2 startup pm2 resurrect //恢复 多线程模式pm2 start app.js -i max0/max将应用程序分布在所有 CPU 上-1将应用程序分布到所有 CPU - 1number将应用程序分布在number 个CPU上配置文件启动processes.json module.exports = { apps : [{ script ...

全平台视频播放器

MACIINA:https://iina.ioWindowsPotPlayer:https://potplayer.daum.netVLC:https://www.videolan.orgKMPlayer:https://www.kmplayer.comAndroidMX Player:https://play.google.com/store/apps/details?id=com.mxtech.videoplayer.ad&hl=zh&gl=USiPhoneVLC:https://www.videolan.org/vlc/dow...

云计算服务

「云计算」技术新领域的公司---亚马逊什么是云计算服务?业界将云计算普遍分为三个大类IaaS(Infrastructure as a Service)PaaS(Platform as a Serice)SaaS(Software as a Service)IaaS(Infrastructure as a Service)基础架构即服务. 指的是提供场外服务器存储和网络硬件,客服租用这些硬件使用它们来运行自己的应用,就节省了维护成本和办公场地PaaS(Platform as a Serice)平台即服务,也叫做中间件.PssS可以让开发者无需管理底层...

网站首页缓存

<?php $nowtime=time(); $pastsec = $nowtime - $_GET["t"]; if($pastsec<600) { exit; //10分钟更新一次,时间可以自己调整 } ob_start(); //打开缓冲区 include("index.php"); $content = ob_get_contents(); //得到缓冲区的内容 $content .= "\n<script language=javascript src=\"f5_cache.php?t=".$nowtime."\...

网站防护

这个脚本备份网站wget --mirror -t 2 -S -N -k https://blog.itsse.cn -P /home/wwwroot/public/1.使用wget命令,下载一份网站的镜像(网站上公开的所有内容... 2.得到一份静态镜像(里面有html/jpg/...; 3.其中的参数-k为将链接转化为本地路径; 4.其中的参数-P为备份保存路径,届时会自动创建文件夹,文件名字将以网站名字命名; 5.最终得到 /home/wwwroot/public/blog.itsse.cn;使用静态镜像修改nginx配置路径以使用静态镜像;i...

zfaka 宝塔安装纪录

官方安装教程https://github.com/zfaka-plus/zfaka/wiki/%E5%AE%9D%E5%A1%94%E7%8E%AF%E5%A2%83%E4%B8%AD%E5%A6%82%E4%BD%95%E8%BF%9B%E8%A1%8C%E9%85%8D%E7%BD%AE安装修改 conf目录下的 application.ini.new 为 application.ini配置YAFextension=yaf.so yaf.environ='product' yaf.use_namespace=1

Vue - 使用 GitHub Actions 部署到 GitHub Pages

# This is a basic workflow to help you get started with Actions name: deploy # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: - main pull_request: branches: ...