Windows

gVim + Janus on Windows

Tagged:  

At work, I'm developing on Windows. At home, I love my MacVim and Janus, so I decided, "Why can't I have that love at work as well?"

To start, just download VIM from http://www.vim.org/download.php#pc and download GIT from http://code.google.com/p/msysgit/ and install. You will also need a ruby install with the rake gem installed.

Now, the first thing to note is that the directory names and a little different on Windows. Your .vimrc will be in $HOME\_vimrc and your .vim directory will be in $HOME\vimfiles.

A simple web service for Windows DNS

We have a few Windows DNS servers we manage, each in a different domain. I need to do some reconciliation against our billing database and needed a way of getting a list of zones from a remote server. I found the command dnscmd, which is useful for getting DNS info from a script and for doing remote access on the same domain, but since I had to deal with several domains, this wasn't a solution. So I have made a little web service to wrap dnscmd using sinatra, JSON and the windows service wrapper.

Regaining admin access to redirected folders

When folders have been redirected with the “Grant user exclusive rights” option, the Admin user needs to take ownership and change the permissions to be able to access the files (to move the share for example).

Now, assuming you have a directory structure like: x:\docs_share\username, then just set the permissions you need on x:\docs_share, cd to x:\docs_share and run:


takeown /f <username> /a /r /d Y
icacls <username> /reset /t /q
icacls <username> /grant <username>:(OI)(CI)F /q

Syndicate content