Php学习15张思维导图
15 张思维导图来快速学习 PHP 语言基础。 PHP 简介(点击图片查看大图) PHP安装(点击图片查看大图) PHP语法(点击图片查看大图) PHP数据类型(点击图片查看大图) PHP变量(点击图片查看大图) PHP数组(点击图片查看大图) PHP常量(点击图片查看大图) PHP超级全局变量(点击图片查看大图) PHP魔术变量(点击图片查看大图) PHP运算符(点击图片查看大图) PHP流程语句(点击图片查看大图) PHP函数(点击图片查看大图) PHP命名空间(点击图片查看大图) PHP面向对象(点击图片查看大图) PHP错误与异常(点击图片查看大图) 来自微信公众号:up2048 原文:https://www.runoob.com/w3cnote/15-php-mind-mapping.html
arch添加国内源以及社区源
添加国内源 添加之前首先备份原文件 cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup 编辑/etc/pacman.d/mirrorlist配置文件 vim /etc/pacman.d/mirrorlist 添加archlinux源 # 清华大学 Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch ## 163 Server = http://mirrors.163.com/archlinux/$repo/os/$arch ## aliyun Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch 注意:使用顺序,从上往下优先级越来越低,越靠上,优先级越高 中文社区仓库 备份原文件 cp /etc/pacman.conf /etc/pacman.conf.backup 编辑/etc/pacman.conf配置文件 vim /etc/pacman.conf 添加源 [archlinuxcn] # The Chinese Arch Linux communities packages. # SigLevel = Optional TrustedOnly SigLevel …
Nextcloud ONLYOFFICE integration app
原文:https://api.onlyoffice.com/editors/nextcloud This app enables users to edit office documents from Nextcloud using ONLYOFFICE Document Server. Currently the following document formats can be edited with this app: csv, docx, pptx, txt, xlsx. The above mentioned formats are also available for viewing together with pdf. The edited files of the corresponding type can be converted into …
Installing Document Server for Docker on a local server
原文:https://helpcenter.onlyoffice.com/server/docker/document/docker-installation.aspx Introduction Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time. Functionality Document Editor Spreadsheet Editor Presentation Editor Documents application for iOS and Android Collaborative editing Hieroglyph …
Linux三剑客(grep、sed、awk)
原文:https://blog.csdn.net/sj349781478/article/details/82930982 下面所说的是Linux中最重要的三个命令在业界被称为“三剑客”,它们是awk,sed,grep。 我们现在知道Linux下一切皆文件,对Linux的操作就是对文件的处理,那么怎么能更好的处理文件呢?这就要用到我们上面的三剑客命令。 在说这三个命令前我们要插入一个小插曲就是“正则表达式”。 一、正则表达式 所谓的正则表达式我个人理解就是正规的表示方法。他是用简单的方法来实现强大的功能,所以深受计算机爱好者的使用。 三剑客与正则表达式是什么关系呢? 我们可以这样理解,三剑客就是普通的命令,有的把他们叫做工具,在我看来都一样。而正则表达式就好比一个模版。三剑客能读懂这个模版。就这么简单。注意只有三剑客才能读懂这个模版哦! 现在他们的关系和功能都搞懂了,接下来我们就来认识下他们怎么结合的。正则表达式是一个模版,这个模版是由一些普通字符和一些元字符组成。普通字符包括大小写的字母和数字,而元字符则具有特殊的含义。具体如下 元字符 功能 意思 ^ 匹配行首 表示以某个字符开头 $ 匹配行尾 表示以某个字符结尾 ^$ 空行的意思 表示空行的意思 . 匹配任意单个字符 表示任意一个字符 * 字符* 匹配0或多个此字符 表示重复的任意多个字符 \ 屏蔽一个元字符的特殊含义 表示去掉有意义的元字符的含义 [] 匹配中括号内的字符 表示过滤括号内的字符 .* 代表任意多个字符 就是代表任意多个字符 lele\{n\} 用来匹配前面lele出现次数。n为次数 就是统计前面lele出现的次数 lele\{n,\} 含义同上,但次数最少为n 从功能就可以看出 lele\{n,m\} 义同上,但lele出现次数在n与m之间 从功能也可以看出 lele\{n,m\} 义同上,但lele出现次数在n与m之间 从功能也可以看出 三剑客的功能非常强大,但我们只需要掌握他们分别擅长的领域即可:grep擅长查找功能,sed擅长取行和替换。awk擅长取列。 …
Error while downloading the document file to be converted
Onlyoffice与Nextcloud集成,在线编缉文件时报错,修改Nextcloud设置: https://help.nextcloud.com/t/error-while-downloading-the-document-file-to-be-converted/70064/5 Nexcloud: config/config.php -> ‘onlyoffice’ => array ( ‘verify_peer_off’ => true, ‘jwt_header’ => “AuthorizationJwt” ) 添加下面的内容即可,注意位置: ‘onlyoffice’ => array ( ‘verify_peer_off’ =>TRUE,
为Onlyoffice添加LetsEncrypt证书
原文:https://stackoverflow.com/questions/50766990/how-to-properly-set-up-https-for-onlyoffice 按照官网建议,生成的证书保存情况如下: /app/onlyoffice/DocumentServer/data/certs# ls dhparam.pem onlyoffice.crt onlyoffice.csr onlyoffice.key 使用LetsEncrypt证书 问题: Also, when copying the created certificates from /etc/letsencrypt/live/[domain] to /app/onlyoffice/DocumentServer/data/certs/, which file between cert.pem, chain.pem, and fullchain.pem becomes onlyoffice.crt? 回答: 1) cert.pem is onlyoffice’s onlyoffice.crt – This is your SSL certificate. 2) privkey.pem is onlyoffice.key – This is your Private Key. 3) You can usually ignore the …
nginx.service: Failed to parse PID from file /var/run/nginx.pid: Invalid argument bugs
原文:https://medium.com/@parsher/nginx-service-failed-to-parse-pid-from-file-var-run-nginx-pid-invalid-argument-bugs-fda95eeeda73 # Fix for Nginx PID problem in Ubuntu 16.04 in an EC2 instance sudo systemctl stop nginx sudo mkdir /etc/systemd/system/nginx.service.d # build the file in root where no sudo is needed printf “[Service]\nExecStartPost=/bin/sleep 0.1\n” > override.conf sudo cp override.conf /etc/systemd/system/nginx.service.d/override.conf sudo systemctl daemon-reload sudo systemctl start nginx
HOW TO CREATE A DOCKER IMAGE FROM A CONTAINER
原文:https://www.scalyr.com/blog/create-docker-image/ In this article, I’ll provide step-by-step instructions on how to create a Docker container, modify its internal state, and then save the container as an image. This is really handy when you’re working out how an image should be constructed because you can just keep tweaking a running container …