2016年1月31日 星期日

asp.net 常用指令


=================加密和解密組態區段==================

Aspnet_regiis.exe 工具位於 %windows%\Microsoft.NET\Framework\versionNumber 資料夾


加密

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -pef "connectionStrings" "[web.config所在的檔案路徑]"

解密

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -pdf "connectionStrings" "[web.config所在的檔案路徑]"


2016年1月24日 星期日

nodejs 常用指令


開發工具http://www.nodeclipse.org/


常用指令:

npm ls ~ 列出目前npm 已經安裝的模組

npm install [模組名稱] -g ~ 加-g代表是全域使用(只針對該專案就不用加)


進入debug模式:

1.command line 在你的專案下輸入
node --debug app.js

2.在nodeclipse中啟動偵錯


























3.使用RestClient觸發偵錯程序

chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo/RestClient.html




2016年1月10日 星期日

Mariadb建立使用者時出現Password hash should be a 41-digit hexadecimal number錯誤


create user '[你的帳號]'@'%' identified by password '[你的密碼]';


使用指令建立使用者時出現

Password hash should be a 41-digit hexadecimal number


解決方式:

select password('[你的密碼明碼]');








將顯示的加密密碼貼到原本明碼的地方就可以建立了

create user '[你的帳號]'@'%' identified by password '[你的加密密碼]';


最後再給權限就可以正常登入了


給全部DB權限
grant all on *.* to '[帳號]@'%';

給某一DB權限
grant all on [DB名稱].* to '[帳號]'@'%';



2016年1月7日 星期四

Ubuntu 常用指令集


==================系統相關========================

ssh登入時會提醒目前已有多少套件可安裝

245 packages can be updated.
128 updates are security updates.


安裝系統更新套件

sudo apt-get update        # Fetches the list of available updates
sudo apt-get upgrade       # Strictly upgrades the current packages
sudo apt-get dist-upgrade  # Installs updates (new ones)

==================================================


[Tab] 接在一串指令的第一個字的後面,則為命令補全;
[Tab] 接在一串指令的第二個字以後時,則為『檔案補齊』

輸入ch 按兩次Tab鍵








清除畫面:clear

查詢目前環境變數:env

修改語系請直接參考 [Ubuntu] 如何設定語系locale 寫得很詳細

己安裝語系:locale -a

目前的語系設定:locale


查詢IP位置:ifconfig


===========================netstat ===============================

查目前服務的port及你要查的port

sudo netstat -taupen

sudo netstat -tapen | grep ":8000 "

======================閱讀壓縮的說明文件====================

zless <filename.gz>

ex.zless README.gz


熱門文章