Ubuntu 下安装Composer

curl -L https://getcomposer.org/composer.phar > /usr/local/bin/composer && \ chmod +x /usr/local/bin/compo...

thinkphp 给js数组赋值

来源:http://www.thinkphp.cn/topic/4923.html很多时候,我们要把PHP处理后的结果付给js来处理。但是,在给js赋值的时候,单个变量的赋值比较简单且容易实现,只要通过模版标签直接把PHP变量输出即可...

迅雷极速版强制升级迅雷X解决方法

进入迅雷安装目录下的 Data 目录,先看看有没有ThunderPush文件夹,如果有的话就将它删除,然后新建一个ThunderPush文件夹。如果Data 目录没有ThunderPush文件夹,那就直接新建一个ThunderPush...

notepad++ python

cmd /k python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT

彻底卸载阿里云服务器上的各种监控服务

来源:https://github.com/ssrpanel/SSRPanel/wiki/卸载阿里云盾(安骑士)监控&屏蔽云盾IP卸载云盾(安骑士)wget http://update.aegis.aliyun.com/downloa...

supervisor.sock no such file的问题

打开配置文件vim /etc/supervisord.conf这里把所有的 /tmp 路径改掉,/tmp/supervisor.sock 改成 /var/run/supervisor.sock, /tmp/supervisord.lo...

Django - mysqlclient 1.3.13 or newer is required

Django - installing mysqlclient error: mysqlclient 1.3.13 or newer is required; you have 0.9.3/home/username/.local/s...

python 优化利器-cProfile

检测时间消耗python -m cProfile -s cumulative cprofile_test.py-s cumulative 可按时间进行排序[root@k8s-node-1 alex]# python -m cProfi...

Python将list形式的字符串转换为list

from ast import literal_eval mstr = "['1838', '13735', '8285', '35386']" mstr = literal_eval(mstr) print(t...

redis操作相关命令

安装apt-get install redis-server查看redis是否在运行ps aux | grep redis启动 Redis(apt 安装)/etc/init.d/redis-server start 关闭 redis(...