摘要: #!/usr/bin/env python # -*- coding: UTF-8 -*- import os import fnmatch def all_file(root, patterns='*', single_level=False, yield_folders=False): patterns = patterns.split(';') for path, su... 阅读全文
posted @ 2017-09-13 00:48 🐳.城南 阅读(265) 评论(0) 推荐(0) 编辑
摘要: set tabstop=4 set number set cul set cuc hi CursorColumn ctermfg=3 ctermbg=2 function InsertPythonComment() exe 'normal'.1.'G' let line = getline('.') if line =~ '^#!.*$' || line =~ '^... 阅读全文
posted @ 2017-09-13 00:42 🐳.城南 阅读(145) 评论(0) 推荐(0) 编辑
摘要: root@ip-192-0-1-205:/home/ubuntu# cat /root/remove_back.sh #! /bin/bash historyDir=/backupsmongodb/ find $historyDir -maxdepth 1 -type d -mtime +10 -exec rm -rf {} \; 阅读全文
posted @ 2017-09-13 00:39 🐳.城南 阅读(261) 评论(0) 推荐(0) 编辑
摘要: root@ip-192-0-1-205:/home/ubuntu# cat /root/backups_mongo.sh #!/bin/bash DATE=$(date +%Y_%m_%d) PATH=/backupsmongodb/$DATE /bin/mkdir -p $PATH /usr/bin/mongodump --username *** --password *** --out ... 阅读全文
posted @ 2017-09-13 00:36 🐳.城南 阅读(354) 评论(0) 推荐(0) 编辑