This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Toggle safe mode: gs | |
| Create new file: N | |
| Delete file: d | |
| Rename file: r | |
| New directory: K | |
| Open file: e | |
| Move file: m | |
| Open VimFilerExplorer: e | |
| Open current directory in a new buffer: dl | |
| Open current directory in a new split: ds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| from __future__ import absolute_import | |
| import pickle | |
| import threading | |
| import time | |
| import settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| remove_old_ulog() | |
| { | |
| now_stamp=`date '+%s'` | |
| one_week_secs=604800 | |
| one_week_ago=`expr $now_stamp - $one_week_secs` | |
| for ulog_file in `ls $1` | |
| do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib2 | |
| import StringIO | |
| import gzip | |
| def download_unzip(): | |
| print 'downloading' | |
| res = urllib2.urlopen(geo_city_download_url) | |
| print 'downloaded' | |
| f_compressed = StringIO.StringIO(res.read()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LOGGING = { | |
| 'version': 1, | |
| 'disable_existing_loggers': True, | |
| 'formatters': { | |
| 'console': { | |
| 'format': '[%(asctime)s][%(levelname)s] %(name)s %(filename)s:%(funcName)s:%(lineno)d | %(message)s', | |
| 'datefmt': '%Y-%m-%d %H:%M:%S', | |
| }, | |
| 'file': { |