We can export a mermaid diagram to PNG very simply using the official Mermaid CLI Tool.
Installation via npm
npm i -g mermaid.cliUsage:
| #!/bin/bash | |
| # 定义 Chrome Local State 文件的路径 | |
| CHROME_STATE_FILE="$HOME/Library/Application Support/Google/Chrome/Local State" | |
| echo "🚀 开始尝试强制开启 Chrome Gemini 功能..." | |
| # 1. 安全检查:检测 Google Chrome 是否正在运行 | |
| # 如果 Chrome 没关,修改配置文件可能会被覆盖或导致错误 | |
| if pgrep "Google Chrome" > /dev/null; then |
| > * Go to [hexed.it](https://hexed.it/) | |
| > * Click "Open File" and choose your sublime_text.exe **(DON'T FORGET TO BACKUP YOUR EXE FILE)** | |
| > * Go to Search and in "Search for" put: 80 78 05 00 0F 94 C1 | |
| > * In Search Type select "Enable replace" and put: 80 78 05 00 0F 94 C1 | |
| > * Click "Find next" then "Replace" | |
| > * Do the same thing with: C6 40 05 01 48 85 C9 => C6 40 05 01 48 85 C9 | |
| > * Click "Save as" then name it: sublime_text | |
| > * Copy your modified sublime_text.exe to directory Sublime Text |
We can export a mermaid diagram to PNG very simply using the official Mermaid CLI Tool.
Installation via npm
npm i -g mermaid.cliUsage:
| # .zshrc 中 p9k 的配置内容 | |
| ##################################### | |
| # P9k 配色方案: bright、 light、dark(模式下右侧提示符不显示) | |
| POWERLEVEL9K_COLOR_SCHEME='light' | |
| # 在新提示符之前插入一行以保持间距 | |
| POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
| # https://github.com/bhilburn/powerlevel9k/tree/next#customizing-prompt-segments | |
| # LEFT_PROMPT 左侧提示符 |
Treat git log as a book, exec git next or git prev to checkout the next or the previous commit.
Please check hutusi/git-paging for updates.
| ## Sublime Text 3 Serial key build is 3103 | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
| B085E65E 2F5F5360 8489D422 FB8FC1AA |
| input { | |
| beats { | |
| port => 5044 | |
| } | |
| } | |
| filter { | |
| if [log_type] == "php_slow" { | |
| # php 慢查询日志 | |
| ruby { |
| #!/bin/bash | |
| # variables | |
| LOGFILE="/var/log/nginx/access.log" | |
| LOGFILE_GZ="/var/log/nginx/access.log.*" | |
| RESPONSE_CODE="200" | |
| # functions | |
| filters(){ | |
| grep $RESPONSE_CODE \ |
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
sentrySENTRY_SECRET_KEY to random 32 char stringdocker-compose up -ddocker-compose exec sentry sentry upgrade to setup database and create admin userdocker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done laterdocker-compose restart sentry9000