WishMeLz

生活其实很有趣

[置顶] Docker

安装yum update --更新yum install -y yum-utils device-mapper-persistent-data lvm2 --依赖yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo --换源yum list docker-ce --showduplicates | sort -r --查看docker版本yum install docker-ce-17.12.1.ce --选择版本安装常用命令doc...

[置顶] Linux操作指令

mv 旧名字 新名字 --改名mv 名字 路径 --移动rm -rf 文件 --删除ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime --修改时区|ln -s /app/nodejs/bin/node /usr/local/bin/ --软连接tar -xvf --解压ps -ef | grep 服务名字 查看配置文件netstat -tunlp|grep 8080 端口占用情况netstat -antp 查看全部服务情况zip -r  压缩后的文件名  ...

qrcode

import QRCode from 'qrcode' let canvas:any = document.getElementById('canvas') QRCode.toCanvas( canvas, 'text', { width: 150 }, function (error) { ...

小程序接口被高频访问

安全检测过程中,平台会模拟真实业务场景,向提审小程序的后台发送服务请求,服务器会收到来自平台(显示为:Tencent Security Team,请求IP为106.55.202.118;113.96.223.69;125.39.132.125)的请求。官方公告

浏览器内核判断

const userAgent = navigator.userAgent; const isWechat = /MicroMessenger/.test(userAgent); const isAlipay = /AlipayClient/.test(userAgent); const isChrome = /Chrome/.test(userAgent) && /Google Inc/.test(navigator.vendor); const isFirefox = /Firefox/.test(userAgent); con...

节点测速工具

https://github.com/faceair/clash-speedtestgo install github.com/faceair/clash-speedtest@latest clash-speedtest -c config.yaml

文字高亮

const regex = new RegExp(searchContent, "gi"); return text.replace(regex,'<span style="color:#286CFB;">$&</span>');

.prettierrc.js 自定义格式化

// .prettierrc 文件:Prettier 规则配置文件 module.exports = { printWidth: 500, // 超过最大值换行 // overrides: [ // { // files: '.prettierrc', // options: { parser: 'json' }, // }, // ], tabWidth: 4, // 缩进字节数 useTabs: false, // 缩进不使用...

Vue2+Tsx 的一个问题

const userInfo: any = UserService.getUserInfo() const userId = userInfo?.userId || 0如上,userId 最后没有使用,会报什么问题?

非对称加密(node-rsa,jsencrypt)

公钥私钥生成随便找个在线生成的http://www.metools.info/code/c80.htmlORconst NodeRSA = require('node-rsa') const fs = require('fs') const newkey = new NodeRSA({ b: 512 }) newkey.setOptions({ encryptionScheme: 'pkcs1' }) let public_key = newkey.exportKey('pkcs8-public') //公钥 let private_key =...

uniapp 返回上一页页面出现空白遮挡白屏

前言: ios webview嵌套的H5页面,H5页面是uniapp打包的。返回页面页面出现白屏遮挡物因为列表页面使用了 vh 高度导致。因为100%的高度拿不到,只能使用100vh,并且还添加了box-sizing: border-box; 也不行。 改写高度方式,不使用vh就行了

苹果IOS搞机

巨魔https://github.com/opa334/TrollStoreScarlet:https://usescarlet.com/#projectsIPA资源巨魔商店: @Trollstore_Chat秋名山:@ae86_chat白嫖联盟:@iOSTxTTKDASHEN:@tkdashenipaget:@ipaget白嫖哥:@baipiaoge888https://ipaspot.app/categories/tweakedapps.htmlhttps://www.iphonecake.com/index.php?device=1&c=0&p=4

finalshell导出密码解密

https://c.runoob.com/compile/10/import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom;...

Microsoft 365 E5续订

作者教程 或者 网站截图1、注册开发者https://developer.microsoft.com/zh-cn/microsoft-365/dev-program中国、中文、个人项目、Office 加载项、可配置沙盒 -> 创建账号可以得到主账号修改oneDrive硬盘空间2、创建子账号https://admin.microsoft.com/Adminportal/Home#/homepage用户管理 - 添加用户 - 勾选 E5 开发者3、注册应用https://portal.azure.com/#view/Microsoft_AAD_I...

美区Paypal注册流程

paypal注册美区,换绑gv号注册paypal(美区)步骤:美区IP,虚拟一个美国人信息。然后使用verifywithsms接收PayPal的短信验证接码:https://user.verifywithsms.com/个人信息生成:https://www.fakepersongenerator.com/ http://www.haoweichi.com/Index/custom_result/换绑验证成功后注册成功,然后设置中添加一个新的号码(不能直接更改),添加号码成功后,在点击更改,选择更改添加的号码作为主要号码。

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 / 删除容器重新添加