Skip to content

Instantly share code, notes, and snippets.

View corerman's full-sized avatar
🚩

corerman

🚩
View GitHub Profile
@corerman
corerman / PHPStrom 配置Palcon环境.txt
Last active April 5, 2018 13:37
PHPStrom 配置Palcon环境
* 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
@corerman
corerman / iframe_auto.js
Created April 7, 2018 09:59
JS:iframe 自动适应内容高度
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;
@corerman
corerman / tp_run_config
Created April 20, 2018 05:12
thinkphp phpstudy
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的问题。
@corerman
corerman / crontab_startup.sh
Created April 23, 2018 10:01
crontab 开机启动
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.
chmod +x /etc/rc.local
add command before "exit 0"
@corerman
corerman / git_speed_up.conf
Created May 5, 2018 07:55
提高git拉取速度
git config --global http.postBuffer 524288000
这是个很有效的配置,修改后速度有质的提升
@corerman
corerman / manjaro_archlinux_startup.sh
Created May 14, 2018 08:14
manjaro_archlinux_startup
archlinux/manjaro 开机自启动[linux]
在/usr/lib/systemd/system/中加入frp.service文件
[Unit]
Description=AutoExec
[Service]
ExecStart=/root/frp.sh
[Install]
WantedBy=multi-user.target
@corerman
corerman / Manjaro_install_MariaDB.sh
Created May 14, 2018 09:41
Manjaro install MariaDB
pacman -S mariadb
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql //注意这个datadir,很重要,按照默认操作
systemctl enable mysqld
systemctl start mysqld
mysql_secure_installation
@corerman
corerman / dell_install_Manjaro.sh
Created May 15, 2018 05:21
dell_install_Manjaro Dell电脑安装manjaro操作系统
# 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
@corerman
corerman / Manjaro_init.sh
Last active December 23, 2020 00:57
Manjaro 安装后的操作
0. 安装
# 启动时选择第二项boot(non-free),Manjaro自带的驱动精灵会帮你安装好所需驱动,笔记本双显卡则会帮你安装bumblebee
driver boot(non-free)
如果是WIndows+Manjaro双系统安装,
步骤可以参考:https://my.oschina.net/langxSpirit/blog/1633384