Monday, April 28, 2008

Perl Script into EXE

App::Packer - is a Perl Module to help get your script into a free running program - no dependencies. Its worked with a ntp time check script I have. Now I have a script that will pull a list of the OUs in AD and create a batch file to dsacls is run for each OU.


This link has more details on running p2e.pl the script that runs to create the exe:
http://www.perlmonks.org/?displaytype=print;node_id=215299

Thursday, April 17, 2008

Mysql Cheat Sheet

I was having some problems using the LOAD DATA INFILE.

This guy's cheatsheet helped me out.

http://www.nparikh.org/unix/mysql.php

Tuesday, April 15, 2008

Windows 2003 SP2 install with no backup

Just a reminder that this is the way to run a Windows 2003 SP2 install choosing not to backuup the files.

i386\update\update.exe /nobackup

Monday, April 07, 2008

Cheap diag tool

I like Visio, and I like DIA (GPL - I think ) - here is edraw.


http://www.edrawsoft.com/Network-Diagrams.php

Thursday, April 03, 2008

Some Good Cheat Sheets

Some good cheat sheets from sloppycode.net

I like the programming cheat sheet here lets you see perl next to php, vbscript.
http://www.sloppycode.net/tools/language-reference.aspx

the unix one seems handy as well.
http://www.sloppycode.net/Tools/unix-cheat-sheet.aspx

Friday, March 21, 2008

Nortel VPN Device and Passive FTP problems

We have some site with problematic FTP trasnfers, found that Active FTP was working, Passive FTP was not working. Found IE and FileZilla both have ways to change default behavior. We needed to get FTP working.

Found a note on Nortel's site known issues with specific firmware and passive FTP.

Here is my test file, first line is active, second is passive - the second line was failing. The test downloads a 3 meg file from Microsoft.

I also found this guide:
Active FTP vs. Passive FTP, a Definitive Explanation

ftptesting.cmd
curl ftp://anonymous:wow@ftp.microsoft.com/PSS/Tools/NetMon/netmon2.zip > netmon2-norm.zip
curl --disable-epsv ftp://anonymous:wow@ftp.microsoft.com/PSS/Tools/NetMon/netmon2.zip > netmon2-disable.zip


After the firmware it worked as expected.

Tuesday, March 11, 2008

Reloading Laptop After some Problems

Step 1. Pull down corporate apps
Step 2. Install Office 2007 (team thing)

Installed 7.10 Ubuntu Desktop, tried to update the network with Wicd, had some failures will need to redo. The install was nice, I just told it the new size of the ntfs partition during the Ubuntu install.



Here is a program I love - Tea Timer
http://users.adelphia.net/~dceubank/

I am trying to add it to my GTD work.



Other apps
Putty
WinSCP
SongBird
Juice
Cygwin
Hotkeys ( trying to force myself to do this more )

Friday, November 09, 2007

resolv.conf and inetd and telnet and reverse dns

Interesting I recently had seen on a unix box after the resolv.conf was changed, telnet sessions were taking 20 seconds to initiate.

I told the unix guys to change the name servers for their machines as we were decommissioning a dns name server. After they made the change name resolution was working as expected, however there was a 20 second delay for telnet sessions and rlogon sessions. I was able to connect via ssh without a delay. I went to troubleshoot dns with nslookup and found the expected results without delay.

My first question was how do you get unix to re-read the manually edited resolv.conf - answer is the file is read on each dns request - most unix systems I have read about linux, freebsd, and hpux all are configured like this. The idea is the operating file system cache will have the file in memory and the file is quite small. So it is true that it is read on each request.

So telnet was configured to be called from inetd, the answer for this was to restart the inet daemon. I should state rather then a restart or reload, one of the admins had found many suggested simple killing and restarting the inetd deamon.

Friday, October 12, 2007

Tuesday, September 11, 2007

ajaxWindows

I just signed up for this website, ajaxWindows another webos - seems pretty impressive so far. I just saw the slashdot posting on it.

the cons - mainly security, may not be available from "every" machine I touch.
the pros - a quick way to be able to browse the web and save notes on most machines I touch.

Here is the YouTube video demo of the site/service

they also recommend and let you open a gmail account for online storage, cool.

Mark

Thursday, August 23, 2007

Getting Started with DD-WRT

A friend asked me how about getting started with DD-WRT, so here is the list:

Step 1: See if your device is supported
http://www.dd-wrt.com/wiki/index.php/Supported_Devices

Step 2: Read up
FAQ
http://www.dd-wrt.com/wiki/index.php/Index:FAQ
Installation
http://www.dd-wrt.com/wiki/index.php/Installation

Here is a link to the forums
http://www.dd-wrt.com/phpBB2/

Step 3: Download
DD-WRT
Download
http://www.dd-wrt.com/dd-wrtv2/downloads.php

Step 4:
Look at some Tutorials
http://www.dd-wrt.com/wiki/index.php/Tutorials

Step 5:
Why he was interested in dd-wrt is the ability to use ssh tunnels with Putty, here are the links for that.

Putty
http://www.chiark.greenend.org.uk/~sgtatham/putty/


Tunneling VNC over SSH with PuTTY
http://martybugs.net/smoothwall/puttyvnc.cgi

Wednesday, August 08, 2007

Making ScITE even better - Part 1

Things I want in my ScITE
svn?
code complete
code snippents

http://caladbolg.net/scite_snippets.php

CentOS5 running VMware Server

this page was helpful -
http://fosswire.com/2007/04/21/installing-vmware-server-on-centos-5/

I didn't have to load the any-any vmware patch??


[root@BOX ~]# uname -r
2.6.18-8.1.8.el5xen

Friday, August 03, 2007

Openssl tips and tricks

convert an apache type ssl cert to IIS:

openssl pkcs12 -export -in myssl.crt -inkey myssl.key -out myssl.p12

you will be prompted for the password.

Friday, July 20, 2007

perl files under subversion with keywords

To set keywords for all files, (well only for those under version control)
"c:\Program Files\svn-win32-1.4.2\bin\svn.exe" ps svn:keywords "URL Rev Author Date Id" *.*

Then add the following to your perl file:

#/* $URL$
# $Rev$
# $Author$
# $Date$
# $Id$

I know there is a way to change this to be default behavior, maybe I think.

vbscript top get modification date of file


getmoddate.vbs
'cscript getmoddate.vbs filename
'output filename#datemodified

strFilename=Wscript.Arguments(i)
Set filesys = CreateObject("Scripting.FileSystemObject")
Set demofile = filesys.GetFile(strFilename)
wscript.echo strFilename & "#" & demofile.DateLastModified

Wednesday, July 11, 2007

Map WebDAV folder as drive letter under XP

net use * http://webdav.domain.com/subfolder1/ password /user:domainname\username

found this should work great for those sharepoint sites as well.

I wish I didn't need to use sharepoint.

Thursday, June 28, 2007

use perl and forget sed

perl one liner that will replace all strings in a text file.

perl -pi -e "s/searchForText/replacewithThis/g;" *.txt

ok, the above sucks but it was what I found before.

Here is what is needed
perl -pi.bak -e "s/searchForText/replacewithThis/g" testf.txt

tested on 5.8 win32 - from activestate

Monday, June 18, 2007

Great collection of Windows VBScripts

I found a great collection of scripts, this covers some things the scripting guys miss.

http://www.windows-management.com/scripting/wmi/

I found under the networking section two dns scripts that I found helpful.