WishMeLz

生活其实很有趣

云计算服务

「云计算」技术新领域的公司---亚马逊什么是云计算服务?业界将云计算普遍分为三个大类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可以让开发者无需管理底层...

iOS添加阿里云邮箱

收件服务器填写imap.mxhichina.com,发件服务器填写smtp.mxhichina.com收件/发件服务器的端口记得修改可以添加自己的域名邮箱,企业邮箱

iOS日历订阅

https://www.shuyz.com/githubfiles/china-holiday-calender/master/holidayCal.icsGITHUB:https://github.com/lanceliao/china-holiday-calender

nginx禁止ip访问

server { listen 80 default; server_name _; return 500; }OR if ($host ~ "\d+\.\d+\.\d+\.\d") { return 500; # 或者444 }

网站首页缓存

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

下载文件

function downloadFile(u) { http.get(u, (res) => { var data = ""; res.setEncoding('binary'); res.on('data', function (chunk) { data += chunk }) res.on('end', () => { let filename = Date.now(); fs.wr...

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

IOS消息推送

httpAPi将消息推送到IOShttps://day.app/2018/06/bark-server-document/使用教程: https://github.com/Finb/Bark/blob/master/README.md

京东定时任务

定时任务:https://github.com/chinnkarahoi/jd_scripts.git备份:https://cdn.jsdelivr.net/gh/WishMelz/file@master/messy/f94f312e845853482e46dbc1106dc2be.zip青龙面板 dockerhttps://github.com/whyour/qinglongdocker pull whyour/qinglong:latest docker run -dit \ -v $PWD/ql/config:/ql/config \...

JD cookie

登录: https://bean.m.jd.com/bean/signIndex.action获取cookie工具: https://cdn.jsdelivr.net/gh/WishMelz/file@master/messy/c05926031ad96a562bf2732aa28ff987.zip

uniapp 导航栏tab切换 底下有个长方形跟着滑动

获取文字的宽度, 在拿到文字距离左侧的距离. 每次点击就更新一下宽度和left var that = this; const query = uni.createSelectorQuery().in(that); query.select('#nav').boundingClientRect(data => { data.width; data.left; console.log(JSON.strin...

scroll-view IOS 端出现滚动条

在对应的元素添加style/deep/ .uni-scroll-view::-webkit-scrollbar { display: none } // or >>> .uni-scroll-view::-webkit-scrollbar { display: none }

Vue移动端轮播图 中间大,两边露一点

npm install vue-awesome-swiper@3 npm install swiper<template> <div v-if="items.length" class="full-page-slide-wrapper"> <swiper :options="swiperOption" ref="mySwiper"> <!-- slides --> <template v-for="(item, i) in items"> ...