#关于 PAC 的书签夹
###比较全的 PAC 介绍
- http://www.proxypacfiles.com/proxypac/ 入门必看(英文)
- http://findproxyforurl.com/ 跟上面的类似(英文)
- http://wordpress0.com/2011/06/write-pac-file/ (汉语)内容比较全(尤其是附录)
- 代理自动配置 维基百科
- https://calomel.org/proxy_auto_config.html Calomel写的的实用性介绍
| extern void SACLockScreenImmediate ( ); | |
| SACLockScreenImmediate(); |
| winrm quickconfig -q | |
| winrm quickconfig -transport:http | |
| winrm set winrm/config '@{MaxTimeoutms="7200000"}' | |
| winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="0"}' | |
| winrm set winrm/config/winrs '@{MaxProcessesPerShell="0"}' | |
| winrm set winrm/config/winrs '@{MaxShellsPerUser="0"}' | |
| winrm set winrm/config/service '@{AllowUnencrypted="true"}' | |
| winrm set winrm/config/service/auth '@{Basic="true"}' | |
| winrm set winrm/config/client/auth '@{Basic="true"}' | |
| winrm set winrm/config/listener?Address=*+Transport=HTTP '@{Port="5985"} ' |
#关于 PAC 的书签夹
###比较全的 PAC 介绍
| #!/usr/bin/env python | |
| # coding=utf-8 | |
| # | |
| # Copyright 2012 F2E.im | |
| # Do have a faith in what you're doing. | |
| # Make your life a story worth telling. | |
| import json | |
| import re | |
| import string |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os,sys | |
| import socket | |
| def GetInfo(iface): | |
| ''' [AdapterName, MacAddr, IPAddr, NetMask, Gateway] ''' | |
| NAME_INFO=[];IP_INFO=[];MAC_INFO=[];MSK_INFO=[];GW_INFO=[];IPV6_INFO=[] | |
| dict_ip={};dict_mac={};dict_msk={};dict_gw={} |
| [googlesourceList] | |
| [googleapisList] | |
| 123.205.250.80 = googleapisList | |
| 121.78.74.99 = googleapisList | |
| 123.205.250.166 = googleapisList | |
| 103.25.178.19 = googleapisList | |
| [googlevideoList] | |
| 118.174.25.7 = googlevideoList |
| #!/usr/bin/env python | |
| #coding:utf-8 | |
| import sys | |
| from GCC import ip_set | |
| usage = ''' | |
| get_host.py usage: | |
| -h, --help, print help message | |
| get_host.py [ip_address], for example, get_host.py 192.168.1.1 |
| # | |
| # link: https://github.com/txthinking/google-hosts | |
| # | |
| # UPDATE: Mon Jun 9 07:21:51 UTC 2014 | |
| # | |
| 127.0.0.1 localhost | |
| 210.61.221.123 0.docs.google.com | |
| 210.61.221.123 0.drive.google.com | |
| 210.61.221.123 1.docs.google.com | |
| 210.61.221.123 1.drive.google.com |
| #!/usr/bin/env python | |
| #coding:utf-8 | |
| import sys | |
| usage = ''' | |
| get_host.py usage: | |
| -h, --help, print help message | |
| get_host.py [ip_address], for example, get_host.py 192.168.1.1 | |
| ''' |
| @echo off | |
| echo PLEASE WAIT... | |
| mkdir d:\test | |
| echo ftpuser> d:\test\temp.ftp | |
| echo 123456>> d:\test\temp.ftp | |
| echo lcd d:\test>> d:\test\temp.ftp | |
| echo get test.zip>> d:\test\temp.ftp | |
| echo bye>> d:\test\temp.ftp | |
| ftp -s:d:\test\temp.ftp 172.31.10.194 > d:\test\output.txt |