SEO · Mar 15, 2019 SEO Ping tools 针对谷歌搜索引擎不收入网站URL和Backlink外链的情况,使用一下免费工具通过PING来实现URL在搜索引擎的收录! 免费的PING工具-谷歌收录URL SL No. Ping Sites Domain Authority Alexa Rank 1 Ping-O-matic 70 5,726 2 Twingly 68 31,696 3 Googleping 54 9,004 4 Pingler 53…
Centos · Mar 12, 2019 aliyun auto mysql and file backup to oss //autorun crontab -e 02 4 * * * root run-parts /etc/cron.daily 42 4 1 * * root run-parts /etc/cron.monthly // mysqlbackup vi /etc/cron.daily/bakmysql.sh DATE=`date +%Y%m%d%H%M` #every…
wordpress · Mar 11, 2019 How to Fix the Leverage Browser Caching Warning in WordPress If you have ever run your WordPress website through Google PageSpeed Insights or Pingdom then you have probably seen that big yellow Leverage Browser Cachingwarning. And that is probably…
Centos · Mar 11, 2019 yum upgrade php 7.0 to php7.2 yum provides php #自带的只有5.4版本 yum remove php* rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm #更新源 rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum remove php-common -y #移除系统自带的php-common yum install -y…
wordpress · Mar 1, 2019 How to Use Microsoft Word to Publish Directly to Your WordPress Site Have you ever wished writing a post in WordPress was as easy as writing in Microsoft Word? Many may not know it, but you can write…
Magento · Mar 1, 2019 magento backend dashboard can’t log in – session error 可能很多朋友有同样的经历,magento在服务器中配置域名是可以正常的访问了,但是在本地配置后却无法登录后台,账号密码登录的时候发现出现空白,无法跳转到后台,本文章向大家介绍两种解决本地magento后台无法登录的方法,需要的朋友可以参考下
Centos · Feb 28, 2019 aliyun oss file batch upload shell command 摘要: 经常碰到内部同学或者外部客户问ossutil关于增量上传的问题。本文简单描述下原理并举例说明。 # 应用场景 ## 场景一 某用户有一批文件(比如1000个)要上传到OSS(或从OSS下载,或从OSS拷贝到OSS,下同),当执行批量上传的过程中出现失败(比如在上传第601个文件时失败)。 经常碰到内部同学或者外部客户问ossutil关于增量上传的问题。本文简单描述下原理并举例说明。 用户可从这里获取ossutil。 官网:https://help.aliyun.com/document_detail/50452.html 代码:https://github.com/aliyun/ossutil 应用场景 场景一 某用户有一批文件(比如1000个)要上传到OSS(或从OSS下载,或从OSS拷贝到OSS,下同),当执行批量上传的过程中出现失败(比如在上传第601个文件时失败)。用户立即使用相同命令重新上传,并希望能跳过已经成功上传的文件,实现增量上传。 场景二 考虑这样一个场景,某用户有个目录dir1,连续一周每天往里面写10000个文件(比如监控场景等),每天晚上12:00将当天写入的文件上传至OSS。用户希望后续每天上传当天写入的新文件时能快速跳过前一天已经上传的文件,从而实现加速增量上传。 ossutil相关选项 –update/-u 选项说明 如果指定了该选项,只有以下情况,ossuti才执行上传、下载、拷贝 目标文件(或object)不存在 源文件(或object)新于目标文件(或object) 当指定了该选项时,无论是否指定了–force选项,当目标文件存在时,ossutil都不会提示,直接采取上述策略。 该选项可用于场景一。 例子 单个上传 $…
nginx · Jan 21, 2019 prestashop 1.6 nginx rewrite config file server { listen *:80; server_name www.shopym.com *.shopym.com shopym.com; root /var/www/html; if ($http_host != "www.shopym.com") { rewrite ^ http://www.shopym.com$request_uri permanent; } index index.php index.html; location = /favicon.ico…
Python · Dec 29, 2018 sh auto push static content to github -gogit 2016-03-28 发布 一个结合crontab定时推送github或coding库小玩意 gogit 2.5k 次阅读 · 读完需要 4 分钟 0 gogit 一个结合crontab定时推送github或coding库小玩意。 Github:https://github.com/HavenShen/gogit 注:运行此玩意的电脑,必须可运行python、已经配置好github和coding使用ssh key 无密钥通道git的ssh获取方式(推荐使用常年不关机的linux服务器)。 配置参考:Git配置安装使用教程操作github上传克隆数据 安装 1.克隆此库 git clone [email protected]:HavenShen/gogit.git 配置推送github同时提交coding库 1.在自己的github和coding中创建自己的新库…
nginx · Dec 19, 2018 nginx php-fpm fast-cgi gzip optimize config file vi /etc/nginx/conf.d/gzipfcgi.conf gzip on; gzip_min_length 1k; gzip_buffers 4 16k; gzip_http_version 1.1; gzip_comp_level 9; gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php; gzip_vary on; fastcgi_connect_timeout 1600; fastcgi_send_timeout 1600;…
Python · Nov 29, 2018 How To Crawl A Web Page with Scrapy and Python 3 Introduction Web scraping, often called web crawling or web spidering, or “programatically going over a collection of web pages and extracting data,” is a powerful tool…
Centos · Nov 29, 2018 CentOS 7: Install Xfce for desktop environment CentOS 7: Install Xfce for desktop environment This article will describe installing Xfce for desktop environment. Table of Contents 1. Install Xfce 2. Login to Xfce…