https://www.gravatar.com/avatar/5f48da38e786436afece6f2e46196202?s=240&d=mp

Linux Shell

Install and configure Redis on Ubuntu 16.04 with systemd

Manage my redis service with systemctl

Author: @hackedunit
I just fixed a bug.

  1. Install pre-requisities
$ sudo apt-get install  tcl8.6-dev
```2. Install Redis  

$ cd /tmp
$ wget http://download.redis.io/redis-stable.tar.gz
$ tar xzvf redis-stable.tar.gz
$ cd redis-stable
$ make
$ make test
$ sudo make install

$ sudo mkdir /etc/redis
$ sudo cp /tmp/redis-stable/redis.conf /etc/redis
$ sudo vi /etc/redis/redis.conf

how to install mysqlclient in python2/python3 on windows 10

how  to install mysqlclient in python2/python3 on windows 10
Installing mysqlclient on windows is very cumbersome.
here is a simple way :

  1. According to the version of python, download the corresponding file on this page.
       - python2.7:
         - 32 bit: mysqlclient‑[version]‑cp27‑cp27m‑win32.whl
         - 64 bit: mysqlclient‑[version]‑cp27‑cp27m‑win_amd64.whl
       - python3.7:
         - 32 bit: mysqlclient‑[version]‑cp37‑cp37m‑win32.whl
         - 64 bit: mysqlclient‑[version]‑cp37‑cp37m‑win_amd64.whl
    2.  install it
       - command: pip install  mysqlclient‑[version]‑cp37‑cp37m‑xxx.whl
    3.  done

svn 服务器禁止提交指定的文件

都8102年了,还是有这么多的公司使用SVN
我们公司在生产环境中使用svn对外网进行版本管理,因为每台服务器的配置文件是独立的,这就要求不允许上传配置文件,简单看了一下svn的 hooks功能,实现了禁止上传某些文件
下面直接贴出代码

解决win10中sublime text 3 - 输入框不跟随

IMESupport 插件已经3年没有更新了,所以在win10中失效了,有大佬发布了修改版本,但是不能通过package_control 安装,但是安装也挺简单的

直接将该项目克隆或是下载到 Sublime_Text_3_Install_Path/Data/Packages 目录下。

我们的2017

https://statics.lshell.com/2017to2018.jpg

2018已过半,才有心来总结一下2017,这是我们走过的第一个年头,有磕磕碰碰,也有欢欢喜喜

工作

今年公司的几个项目的接连失败,导致几个程序大牛的离职,我依旧坚守岗位,2月份招进来的同事基础很好,公司盈利项目都交给他在管理了,我主攻新项目,希望18年公司的项目能成功吧,最近年头不好,也不知道这种模式是否能成功,过年还分了老项目的奖金,有点过意不去