Vue项目采用整站部署,不使用接口所在站点的二级目录或一级目录 目录结构 /webroot/ ├─ api.app.com/ │ ├─ public_html/ │ │ ├─ uploads/ │ │ └─ web.conf │ ├─ certs/ │ ├─ logs/ │ └─ rebots.txt └─ wechat.app.com/   ├─ public_html/   │ ├─ uploads/ <-- link   │ └─ index.html   ├─ certs/   ├─ logs/   └─ rebots.txt webpack dev server...
2018/12/7 浏览数(741) 分类(Apache, Nginx, Vue.js, Windows)
隐藏置顶贴(深度论坛) // ==UserScript== // @name 隐藏置顶贴(深度论坛) // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://bbs.deepin.org/* // @grant none // ==/UserScript== (function() { 'use strict'; jQuery("tbody[id^='stickthread_'").remove()...
2018/12/7 浏览数(1,278) 分类(CentOS/RockyLinux, Linux, macOS, Windows, 操作系统)
在 macOS 下制作启动U盘 diskutil list # 找到U盘标识,比如 /dev/disk2 diskutil unmountDisk /dev/disk2 sudo dd if=~/Downloads/deepin-desktop-community-20.9-amd64.iso of=/dev/disk2 bs=2m usb_modeswitch 不会开机自动运行 # https://bbs.archlinux.org/viewtopic.php?id=175443 #13,#15 mv /lib/udev/rules.d/40-usb_modeswitch.rules /lib/udev/rules.d/61-usb_modeswitch.rules sudo udevadm control --re...
2018/12/5 浏览数(1,470) 分类(Linux, MySQL/MariaDB)
清屏 # clear 命令只能滚动光标到顶部,并不能清除屏幕,而 Command + K 可以清空屏幕 cmd + k 在当前目录中创建 Readme.md MacOS 在当前目录中创建文本文档 让英文目录显示为中文 MacOS 让任意英文目录名显示为中文的 .workflow 将 Home/End 改为 转到行首/行尾,而不是转页首/页尾 # 需要注销才能看到效果 mkdir -p $HOME/Library/KeyBindings echo '{ /* Remap Home / End keys to be correct */ "\UF7...
2018/12/5 浏览数(1,005) 分类(macOS)
解决办法 合盖后关闭网络唤醒 sudo pmset -b tcpkeepalive 0 # -c 调节设定用于连接充电器的时候 # -b 调节设定用于使用电池(Battery)的时候 # -u 调节设定用于使用 UPS 的时候 # -a 调节设定用于全部情景 其它设置 # 合盖后数据在内存中保留的秒数(默认8个小时 = 28800秒) sudo pmset -b standbydelay 28800 # 装数据写入硬盘彻底断电的时间 sudo pmset -b autopoweroffdelay 28800 pmset的用法 pmset 即...
2018/12/5 浏览数(6,685) 分类(macOS)
生成密码 执行 grub-mkpasswd-pbkdf2 user:~ $ grub-mkpasswd-pbkdf2 输入口令: Reenter password: PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.1BB9B516B1658C99B71B3A4D4B1268A43A20C3C3AEAC7F558106DBC87118D5C34143005BBCBD5FF06D3158C9823596CD00568EEACB190E2A92D760EC049C9BCE.54A9AB1E031550AA919F67E427E33F2B8F14268FBCFFA4C2BFF51812D5F559142D8B313C63247D22EF3CA97FC4ED87A7B6FEB3764EAA17...
2018/11/24 浏览数(1,549) 分类(Linux)
alignContent alignItems alignSelf aspectRatio backfaceVisibility backgroundColor borderBottomColor borderBottomEndRadius borderBottomLeftRadius borderBottomRightRadius borderBottomStartRadius borderBottomWidth borderColor borderEndColor borderEndWidth borderLeftColor borderLeftWidth borderRadius borderRightColor borderRightWidth borderStartColor borderStartWidth borderSt...
2018/07/31 浏览数(1,605) 分类(前端)
需求 访问 upall.cn/v1 时从 v1.upall.cn 获取内容 配置 server { listen 443; server_name upall.cn # # 其它代码…… # location ^~ /v1/ { proxy_pass http://v1.upall.cn/; client_max_body_size 0; proxy_connect_timeout 36000s; proxy_read_timeout 36000s; proxy_request_buffering off; } } <完>
2018/07/5 浏览数(1,366) 分类(Nginx)
.inputrc # 上/下方向键搜索该字符(串)开头的命令,光标定到开头可以选择历史命令 "\e[A": history-search-backward "\e[B": history-search-forward # Shift+左右方向键以单词为单位移动光标 "\e[1;2C": forward-word "\e[1;2D": backward-word set show-all-if-ambiguous...
2018/04/4 浏览数(2,071) 分类(Linux)
安装 Linux:yum install git 或 sudo apt-get install git Windows:安装这个工具,安装后右键选“Git Bash Here” Mac:打开 XCode > Preferences > Downloads > Command Line Tools,Install 注意 Git 没有类似 svn 的“签出并锁定”,所有人都可以签出同一个文件,如果有人先签入,其他人签入时需要先“签出”并处理冲突后再合并(push 时会提示让先 pull)。 克隆到本地并关联远程库 git clone https://a.b.c/yc...
2018/03/13 浏览数(1,650) 分类(Windows)
作者:韩昊,知乎:Heinrich,微博:@花生油工人,知乎专栏:与时间无关的故事 谨以此文献给大连海事大学的吴楠老师,柳晓鸣老师,王新年老师以及张晶泊老师。 转载的同学请保留上面这句话,谢谢。如果还能保留文章来源就更感激不尽了。 ——更新于2014.6.6,想直接看更新的同学可以直接跳到第四章 我保证这篇文章和你以前看过的所有文章都不同,这是12年还在果壳的时候写的,但是当时没有来得及写完就出国了……于是拖了两年,嗯...
2018/01/12 浏览数(930) 分类(未分类)
PHP5.5.0以下可用,5.5.0及以上版本已经被弃用了。使用 preg_replace_callback() 代替。/e 即 PREG_REPLACE_EVAL。 webshell 代码 <?php preg_replace( "\x2F\x2E\x2A\x2F\x65", "\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61\x73\x65\x36\x34\x5F\x64\x65\x63\x6F\x64\x65\x28'这里省略一些字符'\x29\x29\x29\x3B", "\x2E" ); 首先来看一下 preg_rep...
2018/01/11 浏览数(1,771) 分类(数据安全)
点击返回顶部
  1. 留言
  2. 联系方式