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

Linux Shell

SVN:E200030: sqlite[S11]: database disk image is malformed

When I tried svn up, I got an error.

E200030: sqlite[S11]: database disk image is malformed  

```I found a solution on [stackoverflow](https://stackoverflow.com/questions/13675615/svn-cleanup-sqlite-database-disk-image-is-malformed).```
sqlite3 .svn/wc.db "pragma integrity_check"  
sqlite3 .svn/wc.db "reindex nodes"  
sqlite3 .svn/wc.db "reindex pristine"  

2018 我们一起走过

https://statics.lshell.com/2019-life.jpg

工作

于今年6月份离开了上家公司,在现在的公司中又变成了我一人单独搞运维工作了,想起这几年来,不知道是什么原因,我总是会因这样那样的问题导致我始终在单干,没有同行的交流学习,其实我是一个自律性比较差的人,不愿去想太多,一般都只是抱着完成任务的心态去做,不会计划,或者说不会去执行,很多事情都靠三分钟热度。比起大D的有计划有执行力差得太远,包括写总结也是跟大D学的。

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功能,实现了禁止上传某些文件
下面直接贴出代码