随笔分类 - OS/内核
WINDOWS LINUX DOS
摘要:用到的端口 TCP 30303 8545 sudo apt-get updatesudo apt-get installsoftware-properties-commonsudo add-apt-repository -y ppa:ethereum/ethereumsudo add-apt-rep
阅读全文
摘要:禁用时间间隔回收 设置为0 然后设置指定时间回收 0:00:00 然后设置脚本 设置计划任务 定期运行
阅读全文
摘要:del /f/s/q dirname> nulrmdir /s/q dirname
阅读全文
摘要:for dir in `find ./ -type d ` ;do echo -n "$dir " ;find $dir -type f | wc -l ;echo "" ;done;./4336694 59./0630088 38./0001667 196./3545234 5./3840810 ...
阅读全文
摘要:禁用:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\Schannel\Protocols验证:
阅读全文
摘要::topset PINGIP="192.168.1.236"echo %date% %time%>>%PINGIP%.txtping -n 1 %PINGIP% | findstr "TTL">> %PINGIP%.txtping -n 5 127.1 >nulgoto top
阅读全文
摘要:#include #include #include #pragma execution_character_set("utf-8")int main(int argc, char *argv[]){ QApplication app(argc,argv); QLabel hello(QOb...
阅读全文
摘要:win2008下添加NFS安卓下运行(需要安装busybox 还有root)busybox mount -t nfs 192.168.1.2:/NFS /nfs -o nolock
阅读全文
摘要:RoyCShell.exe -PE -if:"G:\EncryptTool\Finder.exe" -of:"G:\EncryptTool\Finder_enc.exe" -AntiDbg -SctAlign -t:Rockey3 -VID:B00E0006 -BkChk:78 -Nrkt:"错误"...
阅读全文
摘要:declare @i int set @i=1 while @i<(10000)begin INSERT INTO [Table]( [IDi] ,[IDo] ,[Synci] ) ( SELECT top 1 [IDi] ,@i ,[Synci] FROM [Table] ) set @i=@i+1 end
阅读全文
摘要:在安装vm 安装后发现网络连接中的网桥模式不能使用。原来在本地连接里少了:VMware Bridge Protocol最后的解决方案如下:打开物理网卡本地连接->属性安装->(选中服务)添加->从磁盘安装->浏览->C:\Program Files (x86)\VMware\VMware Workstation\netbridge.inf重启VM后正常
阅读全文
摘要:git clone https://android.googlesource.com/nameName Descriptionaccessories/manifest device/asus/deb device/asus/flo device/asus/flo-kernel device/asus/grouper Files specific to Nexus 7device/asus/tilapia device/common device/generic/armv7-a device/generic/armv7-a-neon device/generic/common device/ge
阅读全文
摘要:MFC 通过HTML访问内部资源资源导入JPG的图片,资源对应ID是137#defineRT_CURSORMAKEINTRESOURCE(1)#defineRT_BITMAPMAKEINTRESOURCE(2)#defineRT_ICONMAKEINTRESOURCE(3)#defineRT_MENUMAKEINTRESOURCE(4)#defineRT_DIALOGMAKEINTRESOURCE(5)#defineRT_STRINGMAKEINTRESOURCE(6)#defineRT_FONTDIRMAKEINTRESOURCE(7)#defineRT_FONTMAKEINTRESOURC
阅读全文
摘要:主板支持AHCI,把sata模式改成AHCI,在bios打开SATA热插拔开关开启AHCI,需要修改注册表:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci:Start -->0否则win7 无法正常启动
阅读全文
摘要:gdb是個命令列模式的交談(interactive)除錯器, 跟telnet或其它的unix交談式程式一樣有個提示符號,然後要下命令 (gdb)COMMAND 不要忘了gcc編譯時要加 -g 參數, 基本gdb命令 檔案處理 ======== file a.out 載入可執行檔a.out path 告訴gdb obj code在那 directory 告訴gdb source code在那裡 SHELL ===== shell ls 就會執行ls了 cd xxx 不過用shell的方法跟Makefile一樣...
阅读全文
摘要:目的是看这个u盘会不会因为这样导致这个flash块快速损坏std::string szDiscFile( "\\\\.\\H:"); HANDLE hDisc = CreateFile(szDiscFile.c_str(), GENERIC_WRITE | GENERIC_READ, FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); SetFilePointer(hDisc, 0, NULL, FILE_BEGIN); DWORD dwSectorNum =1; DWORD dwRead = dwSecto...
阅读全文
摘要:想要查看一些结构体的定义,比如struct ip_mreq,可以查看头文件,所有的系统预定义的结构体都在内核源代码的/include下有定义,ubuntu里面是/usr/include 。 比如要找上面提到的struct ip_mreq,可以这样:find /usr/include -name "*.h" | xargs grep "struct ip_mreq" -rn ,结果显示,这个结构体在/usr/include/netinet/in.h 的251行有定义。 其他的情况举一反三即可。
阅读全文
摘要:迅雷,搜狐微门户,腾讯 弹出拦截http://files.cnblogs.com/ahuo/CloseAD.rar
阅读全文
摘要:int _tmain(int argc, _TCHAR* argv[]){USES_CONVERSION;FILE* pf = _wfopen(L"w.xml",L"r");CHAR buf[1024]={0};int r = fread(buf,sizeof(CHAR),sizeof(buf),pf);TiXmlDocument doc;doc.Parse(buf,0,TIXML_ENCODING_UTF8);TiXmlElement* pPluginRoote = doc.RootElement()->FirstChildElement(&qu
阅读全文