Home
Yates Zhang
Cancel

Windows 使用os2go创建u盘操作系统

refer to: https://www.easeus.com/backup-utility/create-portable-windows-usb-drive.html 1.下载:(破解版) https://haxnode.net/easeus-os2go-v3-1-build-20220822-crack/ 2. 安装 正常安装即可. 记得把crack中的.exe文件(有好几...

Python Command_line_options命令行帮助

refer to: https://click.palletsprojects.com/en/8.1.x/options/#basic-value-options 非常好用。 $ pip install -U click 使用: import click @click.command() @click.option("--count", default=1, help="Number o...

Linux Stop_unattended_upgrade

refer to: https://askubuntu.com/questions/1186492/terminate-unattended-upgrades-or-whatever-is-using-apt-in-ubuntu-18-04-or-later 强制停止目前的unattended 任务 sudo pkill --signal SIGKILL unattended-upgrad...

Windows 如何开启端口不能仅仅关闭防火墙完事_open_all_ports

refer to: https://www.softwaretestinghelp.com/how-to-open-ports/ 我的windows是跟 wsl 一起用的,所以很多时候需要两个子系统之间进行通信,例如 windows上开启 8094端口,。 wsl 读取该端口的内容。 不过从昨天开始,就发现 8094端口无法使用。尝试更换了几次都不行。无语了都。 后来想到另一个 windo...

Go 使用air对代码进行实时更新air_gin

refer to: 用这个 https://github.com/cosmtrek/air 不要用这个 https://github.com/codegangsta/gin/issues/165  不好用。莫名其妙的参数 安装 go install github.com/cosmtrek/air@latest 使用 air init   (首次运行即可,会生成...

Linux Sudo时使用http_proxy

refer to: https://askubuntu.com/questions/530547/proxy-does-not-work-using-sudo sudo vim /etc/sudoers 保留这一行: Defaults env_keep += "http_proxy https_proxy" 然后在普通用户的界面设置好http_proxy , 然后再运行sudo命令即可。

Security Js 批量格式化代码prettier_command_line_cmd_format

refer to : https://unix.stackexchange.com/questions/658767/is-there-a-command-line-application-that-can-prettify-text-containing-html-css https://prettier.io/docs/en/cli.html 安装 npm install -g pr...

Aws Ubuntu系统下允许密码登录

refer to: https://unix.stackexchange.com/questions/37633/can-a-linux-user-change-their-password-without-knowing-the-current-password 1. 设置ubuntu的密码 sudo passwd ubuntu 2. sudo vim /etc/pam.d 保证这一...

Linux 执行sudo命令不需要sudo例如nmap

refer to: https://www.maketecheasier.com/run-nmap-without-root-or-sudo/ 详细原理就不说了,大概就是nmap的一些操作,会用到底层/root权限的某些命令,所以没有sudo,root的权限就不行。 解决办法 sudo apt-get install libcap2-bin sudo setcap cap_net_raw,...

Rails 让对应的进程使用代理use_http_proxy_in_rails_app

refer to: https://stackoverflow.com/questions/15792999/how-to-set-a-proxy-in-rubys-net-http 在terminal中,直接设置 http_proxy 变量就可以。(export HTTP_PROXY=...) 在rails中也一样。 1. export http_proxy=xx 2. rails s ...