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
| from io import BytesIO | |
| # 从Python 2或3之一导入urlopen() | |
| try: | |
| from urllib.request import urlopen | |
| except ImportError: | |
| from urllib2 import urlopen | |
| import xlsxwriter |
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
| package main | |
| import( | |
| "fmt" | |
| "time" | |
| ) | |
| func main(){ | |
| done := make(chan struct{}) | |
| go func(){ |
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 requests | |
| requests.get('https://192.168.100.4',headers={'Host':'test.com'},verify=False) | |
| import urllib2 | |
| req=urllib2.Request('https://192.168.199.4',headers={'Host':'test.com'}) | |
| urllib2.urlopen(req) | |
| #urllib2 https会自动忽略证书 | |
| curl --resolve test.test.com:80:127.0.0.1 "http://test.test.com/" |
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
| /* | |
| -- | |
| -- SQL Server 2014 SP2 | |
| -- | |
| -- 查看有哪些存储过程: | |
| USE master; | |
| SELECT * FROM sys.sysobjects WHERE xtype='P'; | |
| -- | |
| -- 查看存储过程或函数的基本信息 |
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 sys | |
| import time | |
| import psutil | |
| # get pid from args | |
| if len(sys.argv) < 2: | |
| print ("missing pid arg") | |
| sys.exit() | |
| # get process |
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 sys | |
| import time | |
| import psutil | |
| # get pid from args | |
| if len(sys.argv) < 2: | |
| print ("missing pid arg") | |
| sys.exit() | |
| # get process |
NewerOlder
