WishMeLz

生活其实很有趣

分类 未分类 下的文章

CDN厂商记录

1、Cloudflare https://www.cloudflare.com/2、七牛云https://www.qiniu.com/prices/kodo每个月可使用10G的免费存储量和10G的CDN流量与100万次的Get请求数3、又拍云https://www.upyun.com/league免费获取每月 10GB 存储空间 + 15GB 流量3、加速乐https://defense.yunaq.com/jsl/免费版每月3600G流量,每小时限制5GB流量 不支持SSL证书4、多吉云https://www.dogecloud.com/prod...

Alist 问题总结

挂载阿里云盘问题Docker或者报错Post "https://auth.aliyundrive.com/v2/account/token": dial tcp: lookup auth.aliyundrive.com on 183.60.82.98:53: read udp 172.17.0.2:46900->183.60.82.98:53: i/o timeout重启Docker / 删除容器重新添加

Typecho 转移记录

2023-2-4配置sitemap.xmlhttps://github.com/jozhn/Sitemap-for-Typecho投送谷歌 https://search.google.com/ 报错:无法读取此站点地图2023-01-30typecho使用七牛云CDNcdn配置:https://blog.itsse.cn/481.htmlpost.php <?php $this->content(); ?> 改为 <?php echo $str = str_replace("blog.itsse.cn/usr/up...

uniapp wifi 小程序

let _this = this // 获取当前wifi uni.getConnectedWifi({ success: function(res) { console.log(res); _this.wifiData = res.wifi _this.setData.BSSID = res.wifi.BSSID _this.setData.SSID = res.wifi.SSID }, fail: function(err) { ...

微信小程序-小程序码

appId,secret 生成TOKEN. token去强求微信接口生产小程序码https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${appId}&secret=${secret}https://api.weixin.qq.com/wxa/getwxacode?access_token=' + access_token request({ url:'https://api...

FFmpeg循环推流脚本

yum -y install screenscreen -S stream screen -D #!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH #=================================================================# # System Required: CentOS7 X86_64 ...

表格拖拽Elementui+sortablejs

import Sortable from 'sortablejs'; columnDrop() { let _this = this const wrapperTr = document.querySelector('.draggable .el-table__header-wrapper tr') this.sortable = Sortable.create(wrapperTr, { animation: 180, delay: 0, onEnd: (evt: any) ...

Vue 动态引入路由文件

const routerList = [] const routerUrls = require.context('./router', true, /\.js/) console.log(routerUrls); routerUrls.keys().forEach(item=>{ routerList.push(...routerUrls(item).default) })

Docker-compose

wget https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-Linux-x86_64 mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose docker-compose --versioncurl -L https://github.com/docker/compose/releases/dow...

WebStorm

版本: 2022.2.2 生成: 222.4167.31 2022年9月15日https://github.com/WishMelz/file/blob/master/2022/2022-jetbrains.zip进入 IDEA 的安装目录进入 /bin 目录下,修改 idea64.exe.vmoptions 配置文件:修改配置文件# 引用补丁,开头必须以 -javaagent: 开头,后面跟着补丁的绝对路径(可根据你实际的位置进行修改),注意路径一定要填写正确,且不能包含中文,否则会导致 webstorm 无法启动 -javaag...

nodejs 掘金自动签到

const Koa = require('koa'); const schedule = require('node-schedule'); const _request = require('request'); const app = new Koa(); // https://api.juejin.cn/growth_api/v1/check_in? // 自定义 const sessionid = ''; // SessionID const url = ''; // Url const options = { ...

Vue滑动验证

created() { const url = 'https://ssl.captcha.qq.com/TCaptcha.js' const script = document.createElement('script') script.type = 'text/javascript' script.src = url document.body.appendChild(script) script.onload = () => { console.log(window...

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('率') !=...