在Windows 环境中使用 Dig 工具

Dig 在Linux 里一般是在 bind-utils这个包里的。

作者Windows 环境用的模拟终端为 Babun https://github.com/babun/babun 是基于Cygwin的。可惜,没有提供dig的二进制包。可惜。

好,其实解决方法很简单,去网上直接下个dig.exe放到Windows path里就好了=)  

重点 ### 此方法适用于所有Windows 命令行

A)下载:

下载地址 [ftp://ftp.nominum.com/pub/isc/bind9/]

拉到最下面找最新版本的

下这个

A1) 准备:

解压后在目录里找到C++安装文件,双击安装

)

B) 安装DLL文件

把目录里lib*.dll拷贝到 C:\WINDOWS\System32\ 目录下

B1)安装dig.exe

把目录里的dig.exe 也拷贝到 C:\WINDOWS\System32\ 目录下

C)完成! 测试!

babun

powershell

Share

How to configure client proxy server settings by using a registry file

SUMMARY

This article describes how to create a Windows registry file
to configure the proxy server settings on a client computer that is running
Microsoft Internet Explorer or Windows Internet Explorer.

MORE INFORMATION

You can automatically configure the proxy server settings on
a client computer by updating the client computer registry. To do this, create
a registry file that contains the registry settings you want to update, and
then distribute it to the client computer by using a batch file or logon
script.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows

To configure the proxy server settings on a client computer,
create the following .reg file to populate the registry with the proxy server
information:

Regedit4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MigrateProxy"=dword:00000001
"ProxyEnable"=dword:00000001
"ProxyHttp1.1"=dword:00000000
"ProxyServer"="http://ProxyServername:80"
"ProxyOverride"="<local>"

In this file, ProxyServername is the name of
your proxy server.

You can also use the Internet Explorer
Administration Kit (IEAK) to configure proxy server settings on client
computers. For additional information about IEAK, visit the following Microsoft
Web site:

http://technet.microsoft.com/en-us/ie/bb219520.aspx

        Properties

Article ID: 819961 – Last Review: 09/11/2011 07:27:00 – Revision: 2.0

    <span>Applies to</span>
    <p>
        Windows 7 Enterprise, Windows 7 Enterprise N, Windows 7 Home Basic, Windows 7 Home Premium, Windows 7 Home Premium N, Windows 7 Professional, Windows 7 Professional N, Windows 7 Starter, Windows 7 Starter N, Windows 7 Ultimate, Windows 7 Ultimate N, Windows Internet Explorer 8, Microsoft Internet Explorer 6.0, Windows Internet Explorer 7 for Windows XP, Windows Internet Explorer 7 for Windows Server 2003



    <span>Keywords: </span>
    <ul><li>
            kbisa2004yes kbinfo KB819961 
        </li></ul>


    <h5>Feedback</h5>



            <span>Was this information helpful?</span>

        </p>
Share

Node.js Application as a Windows Service (With registry fix) – Measuring programming progress by lines of code is like measuring aircraft building progress by weight.

npm install

In my case, command nssm install MyWebService… was unsuccessful, the problem was that app.js can’t find config.json file.

First you will need:

  1. Node.js application (project) which you want to run as a Windows Service
  2. Node.js
  3. NSSM

1 step: Set your Node.js application as Windows Service

Download nssm.exe and put file into you node.js project folder

Put nssm.exe file into you node.js project folder

Run Windows Command Processor (cmd.exe) as administrator and go to your node.js project folder

Your node.js project folder

Run command npm install

npm install

Run command node src\app.js and allow access through Windows firewall

Allow access through Windows firewall

Run these two commands
nssm.exe install MyWebService "C:\Program Files\nodejs\node.exe" "C:\Service\src\app.js"
net start MyWebService

net start MyWebService

Now we need to fix this error.

2 step: Edit registry

Open registry editor (regedit.exe) and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MyWebService\Parameters

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MyWebService\Parameters

Now we need to change AppDirectory from C:\Program Files\nodejs to C:\Service

Change AppDirectory from C:\Program Files\nodejs to C:\Service

Restart computer and don’t forget to run Apache, MySQL or any other necessary servers for your project after restart.

Node.js Application as a Windows Service

Share

pavilion dv4-1103tx bios刷黑屏后。。。

网上找了很多,大致方向是对的 断电 然后win+b
不过找bios 文件确实。。。

官网上找的驱动都太新了!!
好不容易淘到了可行的
30F7.BIN

下载解压到U盘(fat格式的空盘)去电池断电源,按住win+b ,插电源,开power,松开win+b。待机器自动断电后拔掉U盘,开机就好。

Share

tail 4 win32

http://tailforwin32.sourceforge.net/

用惯了linux,总喜欢用那上面的东西,今天一google还真有win版本的收藏下。

P.S. 贴个更好的 http://www.baremetalsoft.com/baretail/index.php 上面那个不兼容 utf8.这个兼容

Share