Skip to content

Instantly share code, notes, and snippets.

@jihan917
jihan917 / config.sys
Created January 11, 2013 07:03
config.sys (for qemm386/desqview)
rem for the sake of compatibility, use ms-dos 6.22 and qemm386 8.03
rem do *not* load himem.sys
rem parameters needed for virtual machine (c.f. http://kb.vmware.com/kb/1102)
device=qemm386.sys ram xbda:n p:vme:n
rem do *not* load dos high
files=40
@jihan917
jihan917 / setramd.bat
Created January 10, 2013 09:01
setramd.bat
@echo off
set RamDrive=*
findramd.exe
if errorlevel 255 goto NoRamDrive
if not errorlevel 3 goto NoRamDrive
if errorlevel 15 goto OtoZ
if errorlevel 8 goto HtoN
@jihan917
jihan917 / autoexec.bat
Created January 10, 2013 08:57
autoexec.bat
@ECHO OFF
SET DIRCMD=/OGN /4
PATH=A:\
PROMPT=$p$g
SMARTDRV 4096
@jihan917
jihan917 / config.sys
Created January 10, 2013 08:55
config.sys
DEVICE=HIMEM.SYS
DEVICE=EMM386.EXE NOEMS I=B000-B7FF X=D000-D3FF
DOS=HIGH,UMB
FILES=40
BUFFERS=20
STACKS=9,256
LASTDRIVE=Z
SHELL=COMMAND.COM /P /E:2048
DEVICE=RAMDRIVE.SYS 16384 /E
@jihan917
jihan917 / system.ini
Created January 9, 2013 22:38
Microsoft Network Client for DOS, system.ini (specify NDIS2 driver "netcard=pcntnd.dos", and see to it "transport=tcpdrv.dos,nemm.dos". the rest need no change.)
[network]
sizworkbuf=1498
filesharing=no
printsharing=no
autologon=yes
computername=COMPUTER
lanroot=C:\MSNET
username=Administrator
workgroup=WORKGROUP
reconnect=yes
@jihan917
jihan917 / startnet.bat
Created January 9, 2013 22:35
Microsoft Network Client for DOS - script to start net
@echo off
rem config.sys should have "device=ifshlp.sys"
rem (and that alone suffices. --without protman.dos/pcntnd.dos/dis_pkt.dos)
PATH=C:\MSNET;%PATH%
net initialize
netbind
umb
@jihan917
jihan917 / protocol.ini
Created January 9, 2013 22:27
Microsoft Network Client for DOS configuration - TCP/IP network using AMD PCNET adapter (VMWare workstation default NIC)
[network.setup]
version=0x3110
netcard=MS$NetCard,1
transport=tcpip,TCPIP
lana0=MS$NetCard,1,TCPIP
[MS$NetCard]
DriverName=PCNTND$
[protman]
@jihan917
jihan917 / ocaml-3.12.0.patch
Created December 5, 2010 06:53
patch to ocaml-3.12.0 source when I compiled it under WinSDK (msvc10) and Cygwin
diff -ru ocaml-3.12.0/ocamldoc/Makefile.nt ocaml-3.12.0-patched/ocamldoc/Makefile.nt
--- ocaml-3.12.0/ocamldoc/Makefile.nt 2010-05-28 19:21:46 +0800
+++ ocaml-3.12.0-patched/ocamldoc/Makefile.nt 2010-11-23 19:25:09 +0800
@@ -27,7 +27,7 @@
# For installation
##############
MKDIR=mkdir
-CP=cp
+CP=cp -f
OCAMLDOC=ocamldoc
@jihan917
jihan917 / doskey.mac
Created October 27, 2010 08:10
doskey macrofile - (quick and dirty) *nix shell simulation for cmd.exe
;= doskey.mac - posix shell style aliases for cmd.exe
;= place it under %AppData% and create a shortcut to
;= C:\Windows\System32\cmd.exe /k "doskey /macrofile=%AppData%\doskey.mac"
;= beware, this is very crippled *nix shell simulation.
;= --``why not go ahead and use bash/ksh/etc?''
;= --``no I don't. shell on Windows just sucks.''
;= I use these aliases to save me a few (otherwise-would-be) typos;
;= for anything more than a few lines,
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0tpgZXDCS1DUJh8V+z6uW9Em0ebC5/HdVCN5wUGzuCA9jmMEVLD1k8I7m+KLRhtIR9s7L3pK1LmWo2koxNMBbTWNzZbC6K1Ok3mtn5fZt0qGC2+fTmiC0hwEf2VXNOotXn/CnJ5l3HEfJFoxXovbbobDGgFFPRoTctyiXIv8u3Wiw+aNfrntYjRD0WFkAak8G1M+AdkqJ3FYpcBHkl0PiLKR9dppSqwOoBZfosxoGugVqAnCQtfrDAzAgtwwIQPrMbT6npr3Fg9SEZH8tWk9VgE6TrsQIWPpjGAM5lCFoVWJNfMDUyGox0AMtjyT5yPiS2cKp9KlnaBAmwyJzXVLkw== jihan917@yahoo.com