- 安装sysstat(sar)
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
for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done |
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
/** | |
* Base constructor for all React elements. This is only used to make this | |
* work with a dynamic instanceof check. Nothing should live on this prototype. | |
* | |
* @param {*} type | |
* @param {string|object} ref | |
* @param {*} key | |
* @param {*} props | |
* @internal | |
*/ |
- test
- test1
- test2
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
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' |
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
server { | |
listen 80; | |
server_name smile.limijiaoyin.com; | |
access_log /var/log/nginx/smile.access.log; | |
error_log /var/log/nginx/smile.error.log; | |
client_max_body_size 200m; | |
keepalive_timeout 9000; | |
gzip on; |
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
/^(13[0-9]|15[012356789]|18[0-9]|14[57])[0-9]{8}$/ |
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
#--index-url http://pypi.douban.com/simple | |
Django==1.7 | |
django-auth-remember | |
django-render-json | |
django-render-csv | |
django-auth-json | |
python-memcached | |
django-social-auth | |
django-tables3 |
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: utf-8 | |
import django.contrib.auth as auth | |
from django.views.decorators.http import require_http_methods, require_GET, require_POST | |
@require_http_methods(['GET', 'POST']) | |
@ensure_csrf_cookie | |
def login(request): | |
if request.method == 'GET': | |
return render(request, "login.html") |
NewerOlder