merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 07 Mar 2010 22:35:34 +0200
changeset 336 dd61a6e88b63
parent 335 46777be3b34b (current diff)
parent 333 32fc18cfdf8b (diff)
child 337 e315ba898bec
merged
--- a/hg.rst	Sun Mar 07 22:34:03 2010 +0200
+++ b/hg.rst	Sun Mar 07 22:35:34 2010 +0200
@@ -1,5 +1,55 @@
 -*- mode: outline; coding: utf-8 -*-
 
+* Useful customization.
+
+Put to your ~/.hgrc:
+
+  [ui]
+  ; Editor for editing commit message.
+  editor = gvim
+  ; Who commit.
+  username = Oleksandr Gavenko <gavenkoa@gmail.com>
+  ; Use internal merge algorithm, which mark conflict like <<<<<< ====== >>>>>>.
+  ; Save previous file version in '*.orig' file, after merge must be marked as
+  ; resolved by running 'hg resolve -m <file>'.
+  merge = internal:merge
+  [web]
+  ; Default encoding for file hosted by 'hg serv'.
+  encoding = utf-8
+
+** Useful extension.
+
+Put to your ~/.hgrc:
+
+  [extensions]
+  ; To allow fetch command.
+  fetch =
+  ; To allow Mercurial Queues.
+  hgext.mq =
+
+** Multiline log message for log command.
+
+By default 'hg log' show only first line of log message. To see all message run:
+
+  $ hg log -v
+
+or put into ~/.hgrc:
+
+  [defaults]
+  log = -v
+
+** Follow history ever when file copied.
+
+By default 'hg log' show only history after last file copy. To see log message
+before copying run:
+
+  $ hg log -f
+
+or put into ~/.hgrc:
+
+  [defaults]
+  log = -f
+
 * Manage patches with MQ.
 
 First enable MQ, add following to your ~/.hgrc:
--- a/mail.rst	Sun Mar 07 22:34:03 2010 +0200
+++ b/mail.rst	Sun Mar 07 22:35:34 2010 +0200
@@ -1,5 +1,23 @@
 -*- outline -*-
 
+* Message headers fields.
+
+  from            =       "From:" mailbox-list CRLF
+  sender          =       "Sender:" mailbox CRLF
+  reply-to        =       "Reply-To:" address-list CRLF
+
+  to              =       "To:" address-list CRLF
+  cc              =       "Cc:" address-list CRLF
+  bcc             =       "Bcc:" (address-list / [CFWS]) CRLF
+  newsgroups
+
+  http://tools.ietf.org/rfc//rfc2076.txt
+                Common Internet Message Headers, Informational
+  http://tools.ietf.org/rfc/rfc2822.txt
+                Internet Message Format, Standard Track
+  http://tools.ietf.org/rfc/rfc2821.txt
+                Simple Mail Transfer Protocol, Standard Track
+
 * Sending email via gmail in emacs.
 
 ; install starttls from here (no need for patch)
--- a/newsgroup.rst	Sun Mar 07 22:34:03 2010 +0200
+++ b/newsgroup.rst	Sun Mar 07 22:35:34 2010 +0200
@@ -18,3 +18,7 @@
 
 ** Mozilla Thunderbird.
 
+* Newsgroup to feed.
+
+  http://groups.google.com/group/<news-name>/feeds
+                news-name like mozilla.dev.tech.network or comp.emacs
--- a/windows.rst	Sun Mar 07 22:34:03 2010 +0200
+++ b/windows.rst	Sun Mar 07 22:35:34 2010 +0200
@@ -1,5 +1,20 @@
 -*- outline -*-
 
+* Determining windows version.
+
+Run winver.exe: <Win> + R winver <RET>.
+
+Or type: <Win> + <Break>.
+
+Under cmd.exe use built-in command ver.
+
+For Win 2000 and upper check registry key:
+
+  cmd> reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion
+
+To check 32/64-bit OS use PROCESSOR_ARCHITECTURE env var (it has such values:
+x86, AMD64, IA64).
+
 * XP.
 
 ** Check system files integrity.
@@ -38,6 +53,11 @@
 
   http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx
 
+** Activate windows.
+
+  http://www.microsoft.com/genuine/selfhelp/XPPkuinst.aspx?sGuid=bab9e103-6365-44dd-9337-93f0cd9dd4b7&displaylang=en
+                Windows Product Key Update Tool Instructions
+
 * Vista
 
 ** Samba.
@@ -90,3 +110,54 @@
 To remove:
 
   cmd> subst disk: /d
+
+* CMD.
+
+** How run cmd on 64-bit OS.
+
+From 64-bit process:
+
+  %windir%\System32\cmd.exe (for 64-bit)
+  %windir%\SysWOW64\cmd.exe (for 32-bit)
+
+From 32-bit process:
+
+  %windir%\System32\cmd.exe (for 32-bit)
+  %windir%\Sysnative\cmd.exe (for 64-bit)
+
+  http://msdn.microsoft.com/en-us/library/aa384187%28VS.85%29.aspx
+                File System Redirector
+
+* Standard scripts.
+
+  compmgmt.msc - Computer management
+  devmgmt.msc - Device manager
+  diskmgmt.msc - Disk management
+  dfrg.msc - Disk defrag
+  eventvwr.msc - Event viewer
+  fsmgmt.msc - Shared folders
+  gpedit.msc - Group policies
+  lusrmgr.msc - Local users and groups
+  perfmon.msc - Performance monitor
+  rsop.msc - Resultant set of policies
+  secpol.msc - Local security settings
+  services.msc - Various Services
+  msconfig - System Configuration Utility
+  regedit - Registry Editor
+  msinfo32 - System Information
+  sysedit - System Configuration Editor
+  win.ini - windows loading information(also system.ini)
+  winver - Shows current version of windows
+  mailto: - Opens default email client
+  command - Opens command prompt
+
+  appwiz.cpl - Add & Remove Programs
+  timedate.cpl - Date/Time Properties
+  desk.cpl - Display Properties
+  inetcpl.cpl - Internet Options
+  mmsys.cpl - Sound Settings
+  sysdm.cpl - System Properties
+  password.cpl - Password Options
+  main.cpl - Mouse and Keyboard Options
+  control fonts - Fonts Folder
+  control printers Printers Folder