Skip to content

Instantly share code, notes, and snippets.

View silentlastdive's full-sized avatar

silentlastdive

View GitHub Profile

查詢同區網內 所有ip

ip 裝置查詢工具

winget install Nmap --location "D:\network\Nmap" -e

以一台cpanel主機為例 其根目錄為 /home/主機名稱

target: "/home/warriord/test_ssh/websocketExample"

因此有個固定的前綴 之後才是檔案位置

ssh 開放的port 取決於每台主機的不同。非固定

host 為頂層網域,非子域名。

ex:XXX.xxx-xxx.com

第一步:建立ssh

ssh-keygen

然後到~/.ssh/id_rsa.pub 打開並且將其放到github 帳號設定中

~/.ssh 在windows 使用者中

複雜化指令如下

ssh-keygen \
 -m PEM \ 方式 預設:PEM

假文字生產器

chcp 65001
curl -s "https://textgen.cqd.tw?format=plain&size=300" | clip

第一章:簡單的sql 操作

此適合有些基礎的sql學習者 學習如何動態操作 sql 變量

設置變量

SET @current_db := DATABASE(); -- sql query 得取 現在database 名稱
SELECT @current_db -- 打印目前database

多版本並行控制介紹(MVCC介紹)

version control


    <FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
    SetHandler application/x-httpd-alt-php81___lsphp
    </FilesMatch>

rewrite Rule