mac配置防火墙
在 macOS 中,防火墙(Firewall)的设置通常通过系统偏好设置(System Preferences)中的“安全性与隐私”面板来进行配置,但也可以通过终端(Terminal)命令来修改防火墙设置。macOS 还使用一个名为 pf.conf 的文件来配置其内置的 Packet Filter(PF),这是一个强大的网络过滤工具。 通过系统偏好设置配置防火墙 打开“系统偏好设置”。 点击“安全性与隐私”。 选择“防火墙”选项卡。 点击“防火墙选项...”。 在这里,你可以启用或禁用防火墙,以及配置特定的规则,如允许或阻止特定的应用程序访问网络。 通过终端(Terminal)配置防火墙如果你希望通过命令行来配置防火墙,可以使用 pfctl 命令。pfctl 是一个用于管理 PF 防火墙的工具。 启用防火墙1sudo pfctl -e 禁用防火墙1sudo pfctl -d 查看防火墙状态1sudo pfctl -s rules 编辑 pf.conf 文件pf.conf 文件位于 /etc/pf.conf。你可以使用文本编辑器(如 nano 或...
浏览器禁用自动更新
转自:https://sysin.org/ 如何禁用 Firefox 自动更新 (macOS, Linux, Windows) 如何禁用 Google Chrome 自动更新 (macOS, Linux, Windows) 如何禁用 Microsoft Edge 自动更新 (Windows, Linux, macOS)
iTerm2安装配置使用指南
转自:https://zhuanlan.zhihu.com/p/550022490 安装指南软件安装官网下载安装官方下载地址: iTerm2官网iTerm2.com/downloads.html 根据个人需求下载正式稳定版或者beta版,下载完成之后,双击打开zip包,解压至当前文件夹, 双击打开iTerm.app,根据弹窗提示点击Move to Applications Folder即可。 Homebrew安装打开电脑终端,命令行输入如下命令回车: 1brew install iTerm2 如提示未安装Homebrew,参考这篇文章进行安装 金牛肖马:Homebrew国内如何自动安装(国内地址)(Mac &...
mac开发&环境配置篇
Usage habit Ice, to hide status bar do not use bar appearance, this will cause a bug to use alt + tab instead of the localized function: https://github.com/lwouis/alt-tab-macos to use scroll in windows style: https://github.com/pilotmoon/Scroll-Reverser config the Modifier key & shortcuts: turn off off the shortcuts system setting → 键盘 → 键盘快捷键 → 修饰键 display all hide files or directory type on terminal: defaults write com.apple.finder AppleShowAllFiles YES type on...
windows指令记录
端口转发1234567891011# 添加端口转发规则netsh interface portproxy add v4tov4 listenport=$port listenaddress=$addr connectport=$port connectaddress=$remoteport# 删除端口转发规则netsh interface portproxy delete v4tov4 listenport=$port listenaddress=$addr# 清空当前所有的配置规则netsh interface portproxy reseteg:netsh interface portproxy add v4tov4 listenport=主机转发端口 listenaddress=0.0.0.0 connectport=监听端口 connectaddress=监听ip 查看端口转发规则1234567netsh interface portproxy show all侦听 ipv4: 连接到 ipv4:地址 端口 ...
vagrant+virtualbox
virtualbox下载地址:https://www.virtualbox.org/wiki/Downloads vagrant下载地址:https://developer.hashicorp.com/vagrant/downloads virtualbox安装添加box1vagrant box add --name centos/7 D:\HashiCorp\Vagrant\boxes\CentOS-7-x86_64-Vagrant-2004_01.VirtualBox.box 安装插件/配置环境变量(修改disksize需要)1234567# 解决centos7下使用synced_folder报错,https://stackoverflow.com/a/65545379/14936119vagrant plugin install vagrant-vbguest --plugin-version 0.21# 配合config.disksize.size使用(非必要,目前vagrant已支持实验参数node.vm.disk)# vagrant plugin...
整理wsl2配合开发的一些配置
推荐使用idea自带的wsl remote,而非手动配置 IDEA使用WSL作为默认的TerminalFile -> Settings -> Tools -> Terminal -> Shell path在Shell path处填: 1"cmd.exe" /k "wsl.exe" 如图 设置之后的效果 IDEA将node切换为WSL中的node安装nvm/node 参考站内nvm的安装 File -> Settings -> Languages & Frameworks -> Node.js 如图 在下拉列表中选择ubuntu IDEA使用wsl中的gitSetting -> Version Control -> Git 路径配置为 \\wsl$\Ubuntu-20.04\usr\bin\git 代理12345git config --global http.proxy $http_proxygit config...
linux(debian)系统开发配置
输入法 (fcitx-rime)参考资料: rime-auto-deploy GitHub RIME 官方下载页面 安装步骤: 进入系统设置 -》 输入法 -》 输入法框架 -》 选择fcitx 检查 fcitx 版本: 使用命令 fcitx --version 查看。如果版本不是 5,则安装 fcitx-rime,否则安装 fcitx5-rime。 安装命令: 1sudo apt-get install fcitx-rime -y # 如果不是fcitx5版本,安装此包 克隆仓库并运行安装脚本: 123git clone --depth=1 https://github.com/Mark24Code/rime-auto-deploy.git --branch latestcd rime-auto-deploy./installer.rb 按照屏幕上的提示选择相应的选项完成安装。 进入工具栏 -》 输入法配置 -》 如果之前装有其他的输入法如sunpinyin,将其删掉 -》 将中州音移到第二位 Dust (磁盘使用情况工具)安装步骤: 安装 Rust 和...
wsl配合docker desktop安装k8s
clone k8s-for-docker-desktop 项目1git clone https://github.com/AliyunContainerService/k8s-for-docker-desktop.git 从阿里云镜像服务下载 Kubernetes 所需要的镜像 如果项目未支持想要的镜像版本, 可以通过修改 images.properties 文件自行加载你自己需要的镜像 如果因为安全策略无法执行 PowerShell 脚本,请在 “以管理员身份运行” 的 PowerShell 中执行 Set-ExecutionPolicy RemoteSigned 命令。 在Windows上,使用 PowerShell 1.\load_images.ps1 开启 Kubernetes,并等待 Kubernetes 开始运行 如果在Kubernetes部署的过程中出现问题 可以在 C:\ProgramData\DockerDesktop下的service.txt 查看Docker日志 在...
记录elementary OS的安装以及配置(基于elementaryos-6.0-stable)
记录elementary OS的安装以及配置(基于elementaryos-6.0-stable)elementary...
