- 博客(14)
- 收藏
- 关注
原创 Debian Add User
useradd -m guestvim /etc/passwdChange the guest shell from /bin/sh to /bin/bashpasswd guestdel useruserdel guest
2017-07-18 16:07:43
497
原创 How to Use Rsync
Rsync .Rsync (Remote Sync) is a most commonly used command for copying and synchronizing files and directories remotely as well as locally in Linux/Unix systems. With the help of rsync command you can
2017-07-18 13:46:40
379
原创 Centos Install python3.5 And virtualenv
How to Install python3.5#demo.sh#!/bin/bashPY=python3.5PIP=pip3.5Check if Python 3 is installedif type "$PY" > /dev/null 2>&1; then echo "$PY already installed. Please run the next script."
2017-07-17 19:23:36
295
原创 Linux SSH without either Username or password config
Make ssh easy Without any ip or passwdvim ~/.ssh/configHost 3 Hostname 192.168.1.3 User dataHost 45 Hostname 192.168.1.45 User dataInput below command ssh-copy-id data@192.168.1.3
2017-07-17 16:39:04
432
原创 Mac Install Raspberry system to machine
1.Download The zip in the official website 2.unzip the zip and you get the iso file 3.insert the tf card to your mac 4.use disk tool to format the tf card to fat 5.open the terminal do the next st
2017-07-16 01:13:08
272
原创 Vim + instant markdown makes Cool
Vim Markdown is Coolstep1:Install Markdownvim Install Instant-Markdown-d How to install? You can use pathogen or Vundle Please refer to My other blog:How to Manage your vim pluginsste
2017-07-16 00:54:49
408
原创 How to Manage your vim plugins
How to manage your vim plugin files?I think the most popular 2 ways are pathogen and Vundle.Now I will show you both1.pathogenlinks:https://github.com/tpope/vim-pathogenHow to Install pathogen: so easy
2017-07-16 00:32:38
361
原创 Remote control linux By vnc-server
1.Do it!Install: yum install vnc-serverStart: vncserver :1 input password Password: Verify: xauth: creating new authority file /root/.Xauthority New ‘testdb:1 (root)’ desktop
2017-07-14 16:51:15
521
原创 Python Base
Python Base1.TimeAnnoying Time Conversionimport time# unix time chuotime.time()# Time time.localtime()#########################a.unix time stamp#b.time object#c.string #########################
2017-07-14 15:09:09
1031
原创 Battle test(Locust and Apache Bench)
Locust:1.目的WEB负载测试(Load testing)可用于评估WEB系统的最大可服务容量,同时识别系统中潜在的性能瓶颈, 提高系统在正常以及接近极限访问量下的可靠性。负载测试中,当负载不断增加,超过被测系统的容量上限时,此时变成了压力测试(stress testing),被测试系统一般会逐渐服务不正常,但是系统行为需要在预期的范围,待压力测试持续一段时间后(如1小时),负载变轻时,系统
2017-07-13 16:53:43
934
原创 Some python print
1.colorful:print "\033[32;0m %s"%('aaaaaaa')print("\033[1;31;40mhello world\033[0m") print("\033[0;31m%s\033[0m" % "bbbbbbbb")print("\033[0;31m%s\033[0m" % "bbbbbbbb")print("\033[1;31;43mhello wor
2017-07-13 10:55:10
505
原创 python Some Crawl
rexpathjson analysisuse chrome driverThe simplest one:#encoding=utf-8 import urllibimport redef youdao(keyword): u
2017-07-13 10:51:54
276
原创 Linux Expexct and Python pexepct
using expect to scp #!/bin/bashdt="$(date +%Y.%m.%d)"echo $dtsrc=/mnt/$1/Day#dt=$(ls $src | grep 2017)dsc=$HOME"/kdb_data"$srcmkdir -p $dscfor i in $dtdo echo $i expect -c "
2017-07-12 19:45:14
493
原创 Linux Tar Description&A Demo Task
linux tar descriptionDESCRIPTION:Tar stores and extracts files from a tape or disk archiveHow to use the first argument to tar should be a function (list the Most commonly used):-c create a new arch
2017-07-12 19:36:58
243
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人