设置mysql用户密码时小心 # 字符
我喜欢用 .my.cnf 配置 mysql 的登录信息,这样我执行一些命令的时候就不用在命令行上提供密码。但今天我被自己设置的”高强度密码“坑到了
简而言之,如果你的密码里有#
字符,请用双引号把整个密码括起来,要知道没有被引号括起来的 #
字符,标识后面的都是注释。哈
我喜欢用 .my.cnf 配置 mysql 的登录信息,这样我执行一些命令的时候就不用在命令行上提供密码。但今天我被自己设置的”高强度密码“坑到了
简而言之,如果你的密码里有#
字符,请用双引号把整个密码括起来,要知道没有被引号括起来的 #
字符,标识后面的都是注释。哈
ps
apt install -y procps
ping
apt install -y iputils-ping
telnet
apt install -y telnet
first,
sudo dpkg --configure -a
followed by:
sudo apt --fix-broken install
bash
ASPNETCORE_URLS="http://*:9143" ASPNETCORE_ENVIRONMENT="Development" dotnet Yourproject.dll
ASPNETCORE_ENVIRONMENT="Development" dotnet run --urls "http://*:9143" --no-launch-profile
for Windows command line (cmd.exe)
setx ASPNETCORE_URLS "http://localhost:5001"
setx ASPNETCORE_ENVIRONMENT "Development"
dotnet Yourproject.dll
for Windows powershell
$Env: ASPNETCORE_URLS "http://localhost:5001"
$Env: ASPNETCORE_ENVIRONMENT "Development"
dotnet Yourproject.dll
The keyboard shortcuts setting in the Settings app can only support 4 workspaces. However, I want to use 8 workspaces to implement the goal of "everything in its right place". Solution:
sudo apt install dconf-editor
dconf-editor
org/gnome/desktop/wm/keybindings
# Then you can do what you want to do there
By the way, my final configuration is shown below:
Ctrl + 1-8
Switch to workspace 1-8
Ctrl+Alt+1-8
Move current window to workspace 1-8 and jump to that workspace
$?
,就得用反斜线转义 \$
符号。.bashrc
别 echo 东西,否则 Jenkins 会拒绝干活。(应该弄一台专门的机器只跑 Jenkins)PS:
上面第2条其实描述不准确,后面踩的坑证明,如果用 sh 命令里有环境变量,老老实实用单引号,如果非用双引号,你反而要用\
给 $
转义。切记!Jenkins环境不是bash环境。不论是否 Jenkins里定义的环境变量,如果要在bash脚本里用,就老老实实用单引号。