https://static.iklfy.com/static/images/index/14.jpg

CentOS7升级Python3

一、查看当前python版本 [root@CentOS7 ~]# python -V Python 2.7.5 二、下载新的python包并安装 进入python官网(https://www.python.org),选择需要的版本。此处我选择当前最新版本Python3.7.3 [root@CentOS7 ~]# yum -y install gcc gcc-c++ libffi-devel zlib* [root@CentOS7 ~]# wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz [root@CentOS7 ~]# tar xvf Python-3.7.3.tar.xz [root@CentOS7 ~]# cd Python-3.7.3/ [root@CentOS7 Python-3.7.3]# ./configure [root@CentOS7 Python-3.7.3]# make && make install
https://static.iklfy.com/uploads/2018/09/28/20180928180111501377.png

修复Windwos10更新失败

前些时间因为手欠得问题去折腾系统,最终导致系统更新失败。

然后网上搜索N多方法都无效,万般尝试最终解决了,将解决方法记录一下

顺便分享给有需要得朋友们,如果按照说明后还是无效,那绝对得妥妥得是人品问题

https://static.iklfy.com/static/images/index/6.jpg

PHP多种情况下生成随机字符串

/**

 * 生成随机字符串

 * @param  integer $length 长度

 * @param  boolean $int    是否纯数字

 * @param  integer $level  字符串强度[1-4]

 * @return [type]          [description]

 */

if (!function_exists('randoms')) {

    function randoms($length=6,$int=false,$level=2) {

        $character = [

            'number' => '0123456789',

            'letter' => 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',

            'symbol' => '!@#$%^&*()-_[]{}<>~+=/?|',

            'filter' => '0OIl1'

        ];

https://static.iklfy.com/static/images/index/22.jpg

Sublime text 3(Build 3103) 注册码

—– BEGIN LICENSE —–

Michael Barnes

Single User License

EA7E-821385

8A353C41 872A0D5C DF9B2950 AFF6F667

C458EA6D 8EA3C286 98D1D650 131A97AB

AA919AEC EF20E143 B361B1E7 4C8B7F04

B085E65E 2F5F5360 8489D422 FB8FC1AA

93F6323C FD7F7544 3F39C318 D95E6480

FCCC7561 8A4A1741 68FA4223 ADCEDE07

200C25BE DBBC4855 C4CFB774 C5EC138C

0FEC1CEF D9DCECEC D3A5DAD1 01316C36

—— END LICENSE ——

—– BEGIN LICENSE —–

Nicolas Hennion

Single User License

EA7E-866075

8A01AA83 1D668D24 4484AEBC 3B04512C

827B0DE5 69E9B07A A39ACCC0 F95F5410

729D5639 4C37CECB B2522FB3 8D37FDC1

72899363 BBA441AC A5F47F08 6CD3B3FE

CEFB3783 B2E1BA96 71AAF7B4 AFB61B1D

0CC513E7 52FF2333 9F726D2C CDE53B4A

810C0D4F E1F419A3 CDA0832B 8440565A

35BF00F6 4CA9F86

https://static.iklfy.com/static/images/index/22.jpg

CentOS 7.x相对于6.x的目录结构改变

CentOS 7.x相对于6.x的改变

首先是目录结构方面的改变:

  1. /bin转移到/usr/bin;/

  2. sbin转移到/usr/sbin;

  3. /lib转移到/usr/lib;

  4. /lib64转移到/usr/lib64.

  5. /var/run符号连接到/run;

  6. /var/lock符号连接到/run/lock.

临时文件夹/tmp是内存虚拟出来的空间(tmpfs类型),systemctl enable/disable tmp.mount启用或停用。

特权进程,如后台服务等,临时文件存放在/run/processname;

进程临时文件较大,需要在服务器重启后可取回的放在/var/tmp,其他情况就放在/tmp下。

  1. 本地化配置由/etc/sysconfig/i18n转移到/etc/locale.conf和/etc/vconsole.conf。

  2. hostname配置有/etc/sysconfig/network转移到/etc/hostname。

关于磁盘分区:

  1. ...
https://static.iklfy.com/static/images/index/3.jpg

nginx的spdy模块错误

就在刚刚,我编译nginx的时候,突然得到了一条坑爹的提示:

./configure: error: invalid option "--with-http_spdy_module"

不应该啊,应该有spdy模块啊,无意中想到会不会是新版本的问题。我升级的是1.9.5..

于是找到官方文章看了一下,看到下面这段:

The ngx_http_v2_module module (1.9.5) provides support for HTTP/2 and supersedes thengx_http_spdy_module module.
This module is not built by default, it should be enabled with the --with-http_v2_moduleconfiguration parameter.

把--with-http_spdy_module换成--with-http_v2_module之后重新编译通过...

附上NGINX官方说明:http://nginx.org/en/docs/http/ngx_http_v2_module.html

https://static.iklfy.com/static/images/index/3.jpg

[svn钩子失效] svn 中文文件名导致svn up失败的问题

#!/bin/sh

# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit.  Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the 
# following ordered arguments:
#
#   [1] REPOS-PATH   (the path to this repository)
#   [2] REV          (the number of the revision just committed)
#
# The default working directory for the invocation is undefined                
https://static.iklfy.com/static/images/index/16.jpg

网页变灰CSS实现

全站变灰CSS

body,.gray{
  -webkit-filter: grayscale(100%);
   -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
   -o-filter: grayscale(100%);
    filter: grayscale(100%);
   filter: gray;
}

图片变灰CSS

img {
 opacity: 0.8;
  -webkit-transition: all 0.3s ease-out;
   -webkit-filter: grayscale(100%);
   -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
   -o-filter: grayscale(100%);
    filter: grayscale(100%);
}

https://static.iklfy.com/static/images/index/1.jpg

句句经典,不带脏字。

骂出哲理:

1. 贱人永远都是贱人,就算经济危机了,你也贵不了! 

2. 玩感情?我会让你哭的很有节奏! 

3. 如果你看到面前的阴影,别怕,那是因为你的背后有阳光。 

4. 遇事要先从自己身上找原因,别一拉不出屎就怪地球没有吸引力?你喷粪之前先想想你自己都干过什么,有没有资格说别人!我是不够完美,但是我坦白自然,你呢? 

5. 别和我装你活的精彩,过的幸福,也别祝我幸福,你有那资格吗? 

6. 和人接触的时间越长,我就越喜欢狗,狗永远是狗,人有时候不是人! 

7. 别在分手的时候和我说:“其实你很好” 草,那你还甩我? 

8. 唾沫是用来数钞票的,而不是用来讲道理的! 

9. 不该看的不看,不该说的不说,不该听的不听,不该想的不想,该干什么干什么去! 

10. 少在我面前拽的跟二五八万似的,摆好POSE在装逼! 

11. 我等待你的关心,等的关上了心! 

12. 不要吹牛B、请把牛B还给牛、因为牛也需要生活! 

13. 喜欢你的时候你说什么就是什么,不喜欢你的时候,你说你是什么? 

14. 我们只有一个地球,所以你要爱护地球;地...

https://static.iklfy.com/static/images/index/1.jpg

sublime text3 8083 注册码

----- BEGIN LICENSE -----

Andrew Weber

Single User License

EA7E-855605

813A03DD 5E4AD9E6 6C0EEB94 BC99798F

942194A6 02396E98 E62C9979 4BB979FE

91424C9D A45400BF F6747D88 2FB88078

90F5CC94 1CDC92DC 8457107A F151657B

1D22E383 A997F016 42397640 33F41CFC

E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D

5CDB7036 E56DE1C0 EFCC0840 650CD3A6

B98FC99C 8FAC73EE D2B95564 DF450523

------ END LICENSE ------

—– BEGIN LICENSE —–

K-20

Single User License

EA7E-940129

3A099EC1 C0B5C7C5 33EBF0CF BE82FE3B

EAC2164A 4F8EC954 4E87F1E5 7E4E85D6

C5605DE6 DAB003B4 D60CA4D0 77CB1533

3C47F579 FB3E8476 EB3AA9A7 68C43CD9

8C60B563 80FE367D 8CAD14B3 54FB7A9F

4123FFC4 D63312BA 141AF702 F6BBA254

B094B9C0 FAA4B04C 06CC9AFC FD412671

82E3AEE0 0F0FAA