WishMeLz

生活其实很有趣

Wish 发布的文章

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...

Vue路由跳转

1. router-link2. this.$router.push()3. this.$router.replace() (用法同push)4. this.$router.go(n)router-link<router-link :to="{name:'home'}"> <router-link :to="{path:'/home'}"> <router-link :to="{name:'home', params: {id:1}}"> 类似于post,第一次有效,刷新就消失 <router-link :t...

WordPress使用七牛云加速

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

uni-app + 微信小程序

1.滚动到底部( viewscroll:容器id )pageScrollToBottom: function() { wx.createSelectorQuery().select('#viewscroll').boundingClientRect(function(rect){ // 使页面滚动到底部 wx.pageScrollTo({ scrollTop: rect.bottom, duration: 10 }) }).exec() },

服务器禁用PING

临时: 将/proc/sys/net/ipv4/icmp_echo_ignore_all文件里面的0临时改为1 #禁ping echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all #启用ping echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_allIPTABLES防火墙禁ping: 禁用ping iptables -A INPUT -p icmp --icmp-type 8 -s 0/0 -j DROP 启用ping iptables -D INPUT -p i...

MacOS安装Dart-SDK

官网步骤一般第二步install就会报错下载不了。哪怕全局也不行。在完成第一步的时候执行brew edit dart第一个url改为一个可以访问到的地址。可以是oss地址,或者自己起个服务。https://itsse.oss-cn-shanghai.aliyuncs.com/files/dartsdk-macos-x64-release.zip总结:修改dart安装脚本,吧sdk的url地址改为国内的地址。

win10关机命令

shutdown -s -t 00 s:关机 t:时间(s) shutdown -a 取消另存为xx.bat文件。双击关机

JavaScript监听页面内的ajax请求

var originOpen = XMLHttpRequest.prototype.open; var originSend = XMLHttpRequest.prototype.send; // 重写open XMLHttpRequest.prototype.open = function () { // this.addEventListener('loadend', function(){ }); // this.addEventListener('readystatechange', function (obj) { })...

免费图床收集

https://sm.ms/ 每个文件最大5 MB。每个请求最多10个文件。https://imgurl.org/home/multiple 限制每日上传10张,单张图片不能超过5MLOLhttps://imagelol.com 可以免注册最大单张 5M, 登录用户 10M,可查看自己的图imgbed 国内https://imgbed.cn 支持图片和视频,最大100M如优https://img.rruu.net 每个文件最大5.00 MB。每个请求最多10个文件路过https://imgchr.com 原图保存, 最大单张支持10 MB牛图网h...

Api 记事本

根据QQ号获取用户名和头像请求路劲http://mapi.ga:10001类型GET参数qq:qq号接口例子http://mapi.ga:10001/?qq=945545356获取天气 http://www.tianqiapi.com/index/doc请求路劲https://v0.yiketianqi.com/api 类型GET参数version:标识。 v61:实时,v9:七天appid:用户appid 必填appsecret:用户appsecret 必填city:城市ip:查询ip位置天气cityid:城市id接口例子 https://v0....

Crisp聊天框

https://app.crisp.chat/ 注册一个,网站和网址填自己的,随便填没试过。使用方法:设置--网站设置--显示整合--HTML。 是一个script的标签,放入页面中就可以了。配置:设置--网站设置--设置。

Google Voice自动回复

在Google Voice设置中打开转发然后打开邮箱,页面左边,新建标签autoreply然后创建一个过滤器在https://script.google.com/home 新建项目,代码输入进去。更名Auto Replierfunction autoReplier() { var labelObj = GmailApp.getUserLabelByName('autoreply'); var gmailThreads; var messages; var sender; for (var gg = 0; gg...

PAC规则

PC端||itsse.cn^这个规则的意思是,任何以 itsse.cn 为主的所有子域名包括自身,同时还有所有的互联网协议(http:// https:// ftp://),都走Shadowsocks代理。 ||xxx.xxx^ 通用的语法,其他语法:https://help.eyeo.com/en/adblockplus/how-to-write-filtersIOS端[Rule] 内的规则可以外链 RULE-SET,https://raw.githubusercontent.com/lhie1/Rule...

GitHub修改代理

修改git的代理,通过本地的端口实现中继代理。具体端口看软件的开放端口。一般情况下开一下全局就好了,不然改来改去的不方便。# 设置HTTP,HTTPSgit config --global http.proxy socks5://127.0.0.1:1080 git config --global https.proxy socks5://127.0.0.1:1080# 查看代理情况git config --global --get http.proxy git config --global --get https.proxy# 取消git co...

ElementUI

表单验证// 整个表单验证 this.$refs.dialogRef.validate(()=>{}); // 单个字段 code是字段 this.$refs.dialogRef.validateField('code',()=>{})表单验证rulerules:{ code: [ { required: true, message: "请输入商品编码", trigger: "blur" }, { min: 1, max: 2...