按下 Win + X 鍵,選擇「終端機 (管理員)」或是搜尋「PowerShell」
使管理員系統身分執行
輸入以下指令
Set-SmbClientConfiguration -RequireSecuritySignature $false 按下Enter輸入 Y 確認執行,完成後重開機。
或是Nas上可以設定,請參考下方連結
參考來源
AI
與 Windows 間透過 SMB 傳輸資料的速度緩慢,該如何解決?
筆記筆記
Set-SmbClientConfiguration -RequireSecuritySignature $false 按下Enter輸入 Y 確認執行,完成後重開機。
a.到專案中 b.點選settings c.Repository name輸入新名稱 d.Rename2.本機端修改有兩種方式
git remote -v使用以下指令更新 URL(請將 新網址 替換為你在 GitHub 上看到的新 HTTPS 或 SSH 連結)
git remote set-url origin <您的新專案網址.git>
-- 查看資料庫檔案容量
SELECT
DB_NAME(database_id) AS '資料庫名稱',
physical_name N'實體檔案',
name AS 'Log檔名稱' ,
type_desc N'檔案類型',
state_desc N'檔案狀態',
CAST(size * 8.0 / 1024 AS DECIMAL(10,2)) AS 'Log大小(MB)'
FROM sys.master_files
--WHERE
--type_desc = 'LOG' -- 只看LOG
--AND database_id > 4 -- 排除系統資料庫
--AND DB_NAME(database_id) NOT IN ('ReportServer', 'ReportServerTempDB')
ORDER BY size DESC;
參考來源--查指定資料庫Table欄位資訊 --先登入選擇資料庫 SELECT a.Table_schema +'.'+a.Table_name as 表格名稱 ,b.COLUMN_NAME as 欄位名稱 ,b.DATA_TYPE as 資料型別 ,isnull(b.CHARACTER_MAXIMUM_LENGTH,'') as 長度 ,isnull(b.COLUMN_DEFAULT,'') as 預設值 ,b.IS_NULLABLE as 允許空值 ,( SELECT value FROM fn_listextendedproperty (NULL, 'schema', a.Table_schema, 'table', a.TABLE_NAME, 'column', default) WHERE name='MS_Description' and objtype='COLUMN' and objname Collate Chinese_Taiwan_Stroke_CI_AS = b.COLUMN_NAME ) as 欄位備註 FROM INFORMATION_SCHEMA.TABLES a LEFT JOIN INFORMATION_SCHEMA.COLUMNS b ON a.TABLE_NAME = b.TABLE_NAME WHERE TABLE_TYPE='BASE TABLE'參考來源
--查指定資料庫Table筆數 --先登入選擇資料庫 SELECT a.name as 表格名稱 , MAX(b.rows) as 目前筆數 FROM sysobjects a, sysindexes b WHERE a.xtype = 'U' AND b.id = OBJECT_ID(a.name) GROUP BY a.name ORDER BY 表格名稱參考來源
--查指定資料庫所有Table --先登入選擇資料庫 select * from sysobjects where xtype = 'U' or xtype = 'v' order by xtype --AF = 聚合函數 (CLR) --C = CHECK 條件約束 --D = 預設或 DEFAULT 條件約束 --F = FOREIGN KEY 條件約束 --L = 記錄 --FN = 純量函式 --FS = 元件 (CLR) 純量函式 --FT = 元件 (CLR) 資料表值函式 --IF = 內嵌數據表函式 --IT = 內部數據表 --P = 預存程式 --PC = 元件 (CLR) 預存程式 --PK = PRIMARY KEY 條件約束 (類型為 K) --RF = 複寫篩選預存程式 --S = 系統資料表 --SN = 同義字 --SO = 時序 --SQ = 服務佇列 --TA = 元件 (CLR) DML 觸發程式 --TF = 資料表函式 --TR = SQL DML 觸發程式 --TT = 資料表類型 --U = 用戶數據表 --UQ = UNIQUE 條件約束 (類型為 K) --V = 檢視 --X = 擴充預存程式參考來源
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>使用babel測試開發React</title>
<!-- React 和 ReactDOM(開發版本) -->
<script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<!-- Babel Standalone:讓瀏覽器即時編譯 JSX -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<!-- axios -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!-- bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
</head>
<body>
<div id="root"></div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI"
crossorigin="anonymous"></script>
<script type="text/babel">
const App = () => {
const { useState } = React;
const [count, setCount] = useState(0);
const handleClick = () => {
setCount(count + 1);
}
return (
<>
<h5>{count}</h5>
<button className="btn btn-primary" onClick={handleClick}>+1</button>
</>
)
}
ReactDOM.createRoot(document.querySelector('#root')).render(<App />);
</script>
</body>
</html>
vite.config.js
import { defineConfig } from 'vite';
import fs from 'fs';
export default defineConfig({
server: {
https: {
key: fs.readFileSync('./localhost-key.pem'),
cert: fs.readFileSync('./localhost.pem')
},
port: 3000,
open: true
}
});
package.json
{
"name": "20260222_1",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview",
"deploy": "vite build && gh-pages -d dist"
},
"devDependencies": {
"vite": "^7.2.7",
"gh-pages": "^6.3.0"
}
}
.gitignore node_modules/ dist/ .vite/ npm-debug.log* .yarn-debug.log* .yarn-error.log* .pnpm-debug.log* .vscode/ .DS_Store Thumbs.db # mkcert local certificates localhost.pem localhost-key.pem3.改package.json裡的name變成你的專案名稱
VS Code
Visual Studio Live Share: 即時程式碼共同作業工具
Chrome插件
Visual Studio
網頁
AJAX:AJAX:axios
輪播:swiper
動畫:Animate.css aos wow.js gsap parallax.js
瀑布流:masonry
3d圖:three.js
時間:mement.js
alert:sweetalert sweetalert2
eslint檢查 code 風格
多國:i18n
分頁:
git config --global user.name "你git上面的名稱" git config --global user.email 你git註冊的mail
Set-SmbClientConfiguration -RequireSecuritySignature $false參考資料
勾選Require Server Name Indication中文版請參考下方參考資料
get-executionpolicy3.如為Restricted執行
set-executionpolicy remotesigned4.如有例外改執行
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned參考資料
USE Master
GO
ALTER LOGIN UserName WITH PASSWORD = 'password'
GO
ALTER LOGIN UserName WITH
CHECK_POLICY = OFF,
CHECK_EXPIRATION = OFF;
參考資料
using System.Text.RegularExpressions;
public static bool taiwancarrier(string input) {
return Regex.IsMatch(input, @"^/[0-9A-Z.+-]{7}$");
}
參考資料<system.web> <httpRuntime maxQueryStringLength="102400" maxUrlLength="102400" /> </system.web> <system.webServer> <security> <requestFiltering> <requestLimits maxUrl="102400" maxQueryString="102400" /> </requestFiltering> </security> </system.webServer>