Vim日常笔记 Vim乱码处理 在/etc/vim/vimrc文件末尾添加 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 vim 去掉自动注释和自动回车 取消 :set paste 恢复 :set paste! 操作 vim删除 x 删除当前光标下的字符 dw 删除光标... 2022-01-06 Linux教程 0 张图
WAMP本地环境搭建笔记 开启虚拟主机 1.编辑文件 F:\wamp\bin\apache\apache2.4.9\conf\httpd.conf 去掉httpd-vhosts.conf的注释 # Virtual hosts Include conf/extra/httpd-vhosts.conf 把Directory修改成如下 <Directory /> Order Deny,Allow Deny fr... 2022-01-06 Win 0 张图
Windows日常操作 启动时加载bat 运行: shell:startup -> startup.vbs set ws=WScript.CreateObject("WScript.Shell") ws.Run "C:\auto_run\startup\start.bat /start",0 命令行工具 windows curl 下载地址:https://curl.haxx.se/windows/ 计算文件Hash值: 在W... 2022-01-06 Win 0 张图
Nodejs 本文记录nvm、node、npm、yarn安装过程 Windows下安装 nvm-windowns下载 https://github.com/coreybutler/nvm-windows/releases 切换nvm安装源: 在 nvm 的安装路径下,找到 settings.txt,在后面加上这两行 node_mirror: https://npm.taobao.org/mirror... 2022-01-05 Linux教程 0 张图
wol网络唤醒 首先网络唤醒需要硬件支持,目前大部分主流的板载网卡都支持,只需在bios里开启即可,笔记本中thinkpad全系列都支持,部分品牌的部分型号是不支持的,比如我有2台acer笔记本不支持。(很多时候wol是为了节电考虑,但是电源插座是必须通电的,笔记本也是) 路... 2022-01-05 Linux教程 0 张图
MySQL线上与本地实时同步 运行环境: 线上:RDS(内网)+ECS 本地:xampp 由于本地只能访问ECS,需要在ECS上架设mysql代理: 参考这篇笔记:http://git.malu.me/MySQL-Proxy/ mysql线上与本地实现主从同步 ECS配置(作为主服务器master): 修改配置文件: #vim /etc/my.cnf ... 2022-01-05 Linux教程 0 张图
Github github.com SSH 加速访问 修改 C:\Users\Dell\.ssh\config 文件,添加如下内容: Host github.com User git Port 22 Hostname github.com IdentityFile "C:/Users/Dell/.ssh/id_ecdsa" TCPKeepAlive yes ProxyCommand connect -S 127.... 2022-01-05 Linux教程 0 张图
Linux常用脚本 记录日常使用到的脚本 Git切换开关 cat git-proxy #!/bin/bash if [[ $1 == "no" ]];then git config --global --unset https.proxy else git config --global https.proxy socks5://192.168.2.2:10808 fi 放入/usr/local/bin/git-prox... 2022-01-05 Linux教程 0 张图
工具软件下载 生产力工具集 https://u.tools/ Windows 子系统 直接安装WSL2 适用于之前没有安装过WSL 1.如果之前没有用过 WSL,那么首先需要为Linux启用Windows子系统: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /nor... 2022-01-05 Linux教程 0 张图
DNS linux nslookup安装 apt install dnsutils DNSmasq安装 apt install dnsmasq 使用本地hosts做解析 小方转存SAMBA技巧 1.使用一台开有samba匿名共享的服务器 2.建立匿名目录TDDOWNLOAD 3.把手机里的网关指向该服务器 4.进入小方转存即可 2022-01-05 Linux教程 0 张图