Posts

  • IDEA 快捷键

    窗口 文件 Command + 1 Project Ctrl + Tab Switcher Enter 打开 Command + ↓ 打开编辑 Esc 返回编辑 Command + E 最近打开的列表 Command + N 新建文件 Ctrl+H,显示类结构图(类的继承层次) 编辑 Command + B 调到函数定义处 Command + Option + ← 回到上次浏览地点 Command + Option + → 回到最新的浏览地点 Command +...
  • Windows 查看端口占用情况并关闭

    查看指定端口的使用情况 [C:\~]$ netstat -ano|findstr 8000 TCP 127.0.0.1:8000 0.0.0.0:0 LISTENING 5468 以上 5 列分别是 [C:\~]$ netstat 活动连接 协议 本地地址 外部地址 状态 查看进程的详细信息 [C:\~]$ tasklist|findstr "5468" clock1.exe...
  • Visual Studio Code 常用操作

    快捷操作 多光标 列选择 快捷操作 多光标 Option + 鼠标 列选择 Shift+Option+Command+Arrow Key Shift+Option+鼠标
  • zip 密码破解 fcrackzip

    fcrackzip fcrackzip - a Free/Fast Zip Password Cracker help root@kali:~# fcrackzip -h fcrackzip version 1.0, a fast/free zip password cracker written by Marc Lehmann <pcg@goof.com> You can find more info on http://www.goof.com/pcg/marc/ ...
  • Git

    Git: http://www.git-scm.com GIT CHEATSHEET: https://ndpsoftware.com/git-cheatsheet.html GitHub Training Kit: https://training.github.com/ GitHub Cheat Sheet: https://github.com/tiimgreen/github-cheat-sheet github-git-cheat-sheet.pdf: https://g...
  • Redis

    Install cd /usr/local/src wget http://download.redis.io/releases/redis-4.0.2.tar.gz tar -zxvf redis-4.0.2.tar.gz cd redis-4.0.2 make MALLOC=libc make install 开机启动 cd /usr/local/src/redis-4.0.2 mkdir /etc/redis cp redis.conf /etc/redis/6379.con...
  • install php

    Install groupadd www useradd -s /sbin/nologin -g www -M www yum install -y gcc gcc-c++ autoconf \ zlib zlib-devel openssl openssl-devel libxml2 libxml2-devel bzip2-devel libcurl-devel openldap-devel readline-devel epel-release libmcrypt-devel \ l...
  • install jdk

    Install https://docs.oracle.com/en/java/javase/15/install/installation-jdk-linux-platforms.html cd /usr/local/src wget https://download.oracle.com/otn-pub/java/jdk/15.0.2+7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_linux-x64_bin.tar.gz tar -zx...
  • VirtualBox 设置静态 IP

    虚拟机网络配置方式 Windows: NatNetwork 或者 共享网络 + Host-only MacOS: NatNetwork MacOS 使用 Host-only 模式共享网络比较复杂,推荐使用 NatNetwork,可以使用端口映射或者开一台Client虚拟机操作 文件传输示例: ssh user@127.0.0.1 -p 2022 scp -P 2022 ~/Downloads/a.zip user@127.0.0.1:~ MacOS: VirtualBox ...
  • webserver

    Install Nginx nginx -V #查看编译选项 2>&1 nginx -V | tr ' ' '\n' nginx -t # 检查配置文件是否正确 nginx -s stop nginx -s reload #平滑重启 Red Hat NGINX Init Script https://www.nginx.com/resources/wiki/start/topics/examples/redhatnginxinit/ sed -i 's/nginx=...