- 博客(23)
- 资源 (27)
- 收藏
- 关注
原创 nginx 413 Entity Too Large
*/usr/local/nginx/conf/nginx.confclient_max_body_size 512m;$ sudo /usr/local/nginx/sbin/nginx -tnginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is oknginx: configu...
2019-06-26 16:29:57 290
原创 git 回退到上个版本 rollback 回滚 git reset HEAD, git 回退到上一版本
git回退到上个版本git reset --hard HEAD^ 回退到前3次提交之前,以此类推,回退到n次提交之前git reset --hard HEAD~3退到/进到 指定commit的sha码git reset --hard dde8c25694f34acf8971f0782b1a676f39bf0a46 强推到远程git push origin............
2019-06-26 09:04:35 106823 3
原创 node.js 跨域 允许多个域名
* config.jsmodule.exports = { env: { port: 8088, lock_path: 'npm_build.pid.lock', }, url: { cors: "http://172.16.0.224:8001,http://172.16.0.224:8087,http://172.1...
2019-06-25 19:36:35 1458 7
原创 wordpress 自带rest-api debug
对于/wp-json/接口:wp-includes/rest-api/class-wp-rest-request.php在__construct方法中添加代码 try { throw new RuntimeException("debug"); } catch (\RuntimeException...
2019-06-25 16:53:51 639
原创 nvm 多版本node切换
虚拟机上已经安装了node-v6.9.1用nvm实现多版本nodejshttps://github.com/nvm-sh/nvm/blob/master/README.mdwget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh > nvm_install.shsudo ./nvm_in...
2019-06-25 15:04:57 2171
原创 node.js合并配置项
* merge.js/*! * merge-descriptors * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */'use strict'/** * Module exports. * @public */module...
2019-06-24 12:03:53 643
原创 node.js取得当前路径 process.execPath, __dirname, process.cwd() path, 根路径、根目录
*/usr/ET/project/zktWeb/test.js// cd ~// node /usr/ET/project/zktWeb/test.js// 当前执行node的路径 e.g. /usr/local/node/10.16.0/bin/nodeconsole.log("process.execPath=" + process.execPath);// 代码test...
2019-06-24 11:40:46 1415 1
原创 react引入图片
react引入图片Approach#1import logoSrc from '../../Static/logo_zktWeb.png';<img src={logoSrc } />Approach#2<img alt='logo' className='logo' src={require('../../Static/logo_zktWeb.png')}...
2019-06-24 10:57:36 349
原创 error while loading shared libraries: libXss.so.1:
git clonehttps://github.com/GoogleChrome/puppeteercd puppeteer$ npm install> puppeteer@1.18.0-post install /home/mzh/github.com/GoogleChrome/puppeteer> node install.jsDownloading Ch...
2019-06-24 09:55:52 3249 1
原创 emacs iedit 批量修改变量名
下载iedit插件cd ~/.emacs.dgit clonehttps://github.com/victorhge/iedit.git~/.emacs文件中添加; iedit(add-to-list 'load-path "~/.emacs.d/iedit/")(require 'iedit)(define-key global-map (kbd "C-c ;") '...
2019-06-23 17:44:30 806
原创 NodeMailer node.js Send Error: %s' 'self signed certificate'
(1/1) Swift_TransportExceptionExpected response code 354 but got code "554", with message "554 5.5.1 Error: no valid recipients邮件的发件人名称与邮件的from 邮箱地址对应xiaojian => xiaojian@163.com[2019-0...
2019-06-21 11:39:38 1645
原创 Linux操作系统错误码列表 error code list, perror实现, errno
OS error code 1: Operation not permittedOS error code 2: No such file or directoryOS error code 3: No such processOS error code 4: Interrupted system callOS error code 5: Input/outp...
2019-06-20 11:03:22 2421 4
原创 git合并分支
dev1.0-wcy => dev1.0-mzh@branch dev1.0-mzhCheck out, review, and merge locallyStep 1. Fetch and check out the branch for this merge requestgit fetch origingit checkout -b dev1.0-wcy orig...
2019-06-19 13:19:34 771
原创 wordpress 添加自定义接口
* wp-admin/includes/ajax-actions.php添加回调函数function wp_ajax_my_test_handler() { $num = intval($_POST['num']); wp_send_json_success([ "num" => ++$num, ], 200);}*wp-admin/...
2019-06-17 18:02:31 3270
原创 express框架跨域 CORS, exec调用命令行
相关文章:https://blog.csdn.net/fareast_mzh/article/details/93647210* installnpm install --save express--registry=https://registry.npm.taobao.org* trigger.js// curl -i http://172.16.0.224:80...
2019-06-15 19:50:29 484
原创 [LeetCode]#10 Regular Expression Matching javascript字符串包含
https://leetcode.com/problems/regular-expression-matching/* isMatch.js/** * @param {string} s: text * @param {string} p: pattern * @return {boolean} */var isMatch = function(s, p) { if ...
2019-06-12 23:12:34 292
原创 leetcode palindrom number
https://leetcode.com/problems/palindrome-number/submissions/* isPalindrome.js/** * @param {number} x * @return {boolean} */var isPalindrome = function(x) { if (x < 0) {return false;} ...
2019-06-10 23:35:59 257
原创 leetcode atoi
https://leetcode.com/problems/string-to-integer-atoi/submissions/* Solution.jsfunction Solution() {}const Character = { isDigit: function(s) { var code = s.charCodeAt(0); return 48 <= ...
2019-06-10 00:20:18 314
原创 Math.js sqrt isPrime 开方 平方根, 素数
* MyMath.jsfunction MyMath() {}MyMath.abs = function(x) { if (x < 0) {return -x;} else return x;}MyMath.isPrime = function(/* int */n) { if (n < 2) return false; if (n ==...
2019-06-09 08:17:47 815 1
原创 mongodb 启动服务mongod 设置用户名密码 导入导出数据 mongodump mongorestore
mongodb文档https://docs.mongodb.com/manual/tutorial/getting-started/不授权启动mongo/usr/bin/mongod -bind_ip=0.0.0.0 --dbpath=/home/ubuntu/data/mongo先创建admin用户,相当于mysql的root用户$ mongo -u root -p test...
2019-06-05 12:04:51 1561
原创 Linux平台安装MongoDB
Linux平台安装MongoDBMongoDB 提供了 linux 各发行版本 64 位的安装包,你可以在官网下载安装包。下载地址:https://www.mongodb.com/download-center#community下载完安装包,并解压tgz(以下演示的是 64 位 Linux上的安装) 。curl -O https://fastdl.mongodb.org/...
2019-06-05 11:49:46 227
原创 php获取字段列表 填充模型类 字段列表
填充模型类 字段列表mysql> desc 5kcrm_crm_leads;+----------------+--------------+------+-----+---------------------+----------------+| Field | Type | Null | Key | Default | E...
2019-06-04 11:00:03 357
原创 leetcode zig-zag conversion
* ZigZag.js/*https://leetcode.com/problems/zigzag-conversion/"PAYPALISHIRING"row x 3P A H NA P L S I I GY I R*/function ZigZag() {}String.prototype.forEach = function(fn) { ...
2019-06-02 22:19:57 344
CRYPTOPP-8-5-0.tar.gz
2024-05-25
aMule源代码,eMule Linux版源代码,amuled
2024-05-25
1119. Metro. dynamic programming, graph theory
2024-05-10
https://acm.timus.ru/print.aspx?space=1&num=1002 题目答案
2024-05-06
Assembly Language Step-By-Step - (Wiley, 2009, 0470497025).pdf
2024-04-21
libevent库, http-server静态文件服务器示例
2023-12-14
nasm-10.09.tar.gz
2023-11-21
windows, which命令找到.exe文件路径
2023-09-30
xxd用16进制打印文件内容,调试代码用
2023-08-23
windows Visual Studio dll动态库模板
2022-09-26
windows环境Visual studio创建静态库,项目框架
2022-09-26
PHP-TreeMap.zip
2021-08-13
DesignPatterns.zip
2020-06-22
composer.phar
2020-05-19
phalcon-stub-3.4.12.zip
2020-04-27
XhUser.vue
2020-01-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人