This file contains 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
## general | |
set-option -g history-limit 65535 | |
## time | |
set-option -g display-time 5000 # message display time in (ms), should long enough | |
set-option -g repeat-time 1000 # lasting time (ms) between a repeatable command | |
set-option -sg escape-time 1 # waiting time (ms) after prefix, small for more responsitive | |
## style | |
set-option -g status-keys vi |
This file contains 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/python | |
# | |
# based on code from lrvick and LiquidCrystal | |
# lrvic - https://github.com/lrvick/raspi-hd44780/blob/master/hd44780.py | |
# LiquidCrystal - https://github.com/arduino/Arduino/blob/master/libraries/LiquidCrystal/LiquidCrystal.cpp | |
# from http://hugozhu.myalert.info/2013/03/23/19-raspberry-pi-drive-1602-lcd.html | |
from time import sleep | |
from datetime import datetime | |
from time import sleep | |
class Adafruit_CharLCD: |
This file contains 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
#coding:gbk | |
from ctypes import * | |
import requests | |
_down='http://download.csdn.net/index.php/rest/source/getsourceinfo/' | |
url=raw_input("输入资源地址:") | |
url=url.strip() | |
id=url[url.rfind('/')+1:] | |
print id | |
url=_down+id |
This file contains 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/python | |
#coding:utf-8 | |
import requests | |
import logging | |
import time | |
#自用的用于监控网站是否能正常访问的脚本 | |
#话说其实我是把它部署在自己的Host1Free的免费VPS上的 | |
#写的比较乱,暂时就这样吧,抽空写博客说明下。另外还有改进的点子,不过暂时没时间弄 | |
#################需要修改的参数############ |