Shell 显示带颜色字体
其他 / 2019年6月28日

shell脚本中echo显示内容带颜色显示,echo显示带颜色,需要使用参数-e   格式如下:   echo -e "\033[字背景颜色;文字颜色m字符串\033[0m"   例如:   echo -e "\033[41;36m something here \033[0m"   其中41的位置代表底色, 36的位置是代表字的颜色   注:  www.2cto.com   ...

Debain Ubuntu Install AdGuard Home
其他 / 2019年4月18日

In order to start using AdGuard Home, you need to do a few things: Installation Running for the first time Running as a service How to update Configure your devices Running without superuser (linux on...

阿里云 Linux下磁盘挂载
Linux , 其他 / 2019年2月25日

具体步骤如下: 1、查看是否已经分配 [root@iZ2ze1tefvghtbgkdur3xfZ /]# fdisk -l Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 byt...

WordPress 禁用谷歌字体
其他 / 2016年12月27日

1、建立一个文件夹,比如禁用谷歌命名,然后在Disable-Google-Fonts文件夹里面创建一个Disable-Google-Fonts.php的php文件。 2、编辑Disable-Google-Fonts.php,然后放入以下代码: <?php /* Plugin Name: Disable-Google-Fonts Description: wordpress中存在有谷歌的链接的...

解决WordPress代码单双引号输出为中文字符
其他 / 2016年7月29日

在wordpress的文章中保存代码时使用的是英文的引号,可是复制出来的时候发现是中文状态的引号,找了一些资料原来是 WordPress 中的wptexturize函数惹的祸 , 以下是"解决WordPress代码单双引号输出为中文字符"的三个方法。 方法之一,一句代码修改functions.php模板文件 remove_filter('the_content', 'wptexturize'); ...