Thursday, January 27, 2011

git bits...




http://www.draconianoverlord.com/2010/03/04/git-config.html
http://www.sourcemage.org/Git_Guide
http://cheat.errtheblog.com/s/git
http://www.gitready.com/intermediate/2009/02/06/helpful-command-aliases.html

Toggle Character Codes

In Windows, when you enter text you can press Alt-X after it to show the hex for that character. (inversely you can type a number and do Alt-X to make the character, or hold Alt & type the number on the numeric keypad to get the character)

Wednesday, January 12, 2011

vim one liner to convert backslashes in clipboard to percents

Windows clipboard modifier in vim...


I was exporting a whole lot of registry entries in Windows.
I would do F3 to find the next match, right click & click "Export",
then select the whole key name, the press ^C to copy
Then go to vim and press v to run the mapped macro below.
Then go to the filename box and press ^V to paste & click save.


:map v dd"+gP^Q:%s/\\/%/g^Q^MV"+y


Which looks like:


:map v dd"+gP^[:%s/\\/%/g^MV"+y


The macro takes the one line in the clipboard like:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\OpenWithProgids.reg

and converts it to:

HKEY_CURRENT_USER%Software%Microsoft%Windows%CurrentVersion%Explorer%FileExts%.htm%OpenWithProgids.reg

and copies it back to the clipboard.

Apache Directory Index

http://httpd.apache.org/docs/current/mod/mod_autoindex.html



IndexOptions NameWidth=* FancyIndexing FoldersFirst HTMLTable SuppressHTMLPreamble VersionSort IgnoreCase

Wednesday, January 05, 2011

Windows bits

"Desktop As Shortcut" Command Is Missing from the "Send To" Menu:

http://support.microsoft.com/kb/191882

Sysinternals Process Utilities:

http://technet.microsoft.com/en-us/sysinternals/bb795533


Microsoft PowerToys for Windows XP:

http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx

CiWiki

CiWiki is a fork of didiwiki which has some of the features that didiwiki lacks added to it.

http://sourceforge.net/projects/ciwiki/
http://ciwiki.sourceforge.net/

To edit pages you have to register a user account first.

http://server:8000/NewAccount

When you go through the registration process it says it is going to send you an email, but it doesn't send one.

What it *does* do is write an entry to the file "~/newwikiusers.txt"

If you look in this file you will find the confirmation code that you need to complete the registration of your account:

U:UserName P:Password M:email@address.com I:10.0.0.2 T:21570445 C:149ce5ebd5db644

Copy the hex code in the C: field to the "Validation Code:" box & click [Process it]
You should now be logged in.