This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* https://my.oschina.net/kmwzjs/blog/337199 配置支持Phalcon-tools: | |
* 在phalcon的官方博客上面说了要把phalcon的ide类库提示单独出来维护,所以在github上的phalcon dev tools已经不再有stubs了。 | |
项目地址放在了https://github.com/phalcon/ide-stubs上。 | |
只要clone下来,再在phpstorm项目中的external libraries添加clone下来的文件夹就行。 | |
参考文章: | |
https://blog.phalconphp.com/post/phalcon-ide-stubs-repository |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reinitIframe() { | |
var iframe = document.getElementById("main_iframe"); | |
try { | |
var bHeight = iframe.contentWindow.document.body.scrollHeight; | |
var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; | |
var height = Math.max(bHeight, dHeight); | |
iframe.height = height; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APACHE支持.htaccess以及 No input file specified解决方案 | |
你的Apache安装文件夹conf里找到httpd.conf文件 | |
索LoadModule rewrite_module modules/mod_rewrite.so 如果前面有注释符号#,请去掉。 | |
搜索Options FollowSymLinks,然后将它下面的AllowOverride None 修改为AllowOverride All; | |
【1】 | |
没想到遇见了 No input file specified 因为项目用了URL route ,估摸着可能是rewrite的问题。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A user can edit its cron table with crontab -e. | |
An example which will run /path/to/script.sh at startup: | |
@reboot /path/to/script.sh | |
If you need to run it as root, don't use @reboot sudo /path/to/script.sh; | |
use sudo crontab -eu root to edit root's crontab. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod +x /etc/rc.local | |
add command before "exit 0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global http.postBuffer 524288000 | |
这是个很有效的配置,修改后速度有质的提升 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
archlinux/manjaro 开机自启动[linux] | |
在/usr/lib/systemd/system/中加入frp.service文件 | |
[Unit] | |
Description=AutoExec | |
[Service] | |
ExecStart=/root/frp.sh | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman -S mariadb | |
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql //注意这个datadir,很重要,按照默认操作 | |
systemctl enable mysqld | |
systemctl start mysqld | |
mysql_secure_installation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. First of all of course get Manjaro: | |
https://manjaro.org/get-manjaro/ | |
# I recommend using Etcher to copy the image to your USB: | |
https://etcher.io/ | |
# 2. Before installing make sure: | |
# - Secure boot is disabled in BIOS | |
# - Your SSD, HDD or NVME drive is set to AHCI instead of RAID | |
# - Fastboot should be on Auto or minimal, but this shouldn't matter to much |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0. 安装 | |
# 启动时选择第二项boot(non-free),Manjaro自带的驱动精灵会帮你安装好所需驱动,笔记本双显卡则会帮你安装bumblebee | |
driver boot(non-free) | |
如果是WIndows+Manjaro双系统安装, | |
步骤可以参考:https://my.oschina.net/langxSpirit/blog/1633384 | |