| Desc | Host | Port | User | Pwd | DB |
|---|---|---|---|---|---|
| test | test_host | 3306 | test_user | test_pwd | test_db |
| prod | prod_host | 3306 | marketplace_uat | prod_pwd | test_db |
for row in tab:
desc, host, port, user, pwd, db = tuple(row)
print(f'[{desc}]')| local wezterm = require("wezterm") | |
| -- Custom title and icon based on: https://github.com/protiumx/.dotfiles/blob/854d4b159a0a0512dc24cbc840af467ac84085f8/stow/wezterm/.config/wezterm/wezterm.lua#L291-L319 | |
| local process_icons = { | |
| ["bash"] = wezterm.nerdfonts.cod_terminal_bash, | |
| ["btm"] = wezterm.nerdfonts.mdi_chart_donut_variant, | |
| ["cargo"] = wezterm.nerdfonts.dev_rust, | |
| ["curl"] = wezterm.nerdfonts.mdi_flattr, | |
| ["docker"] = wezterm.nerdfonts.linux_docker, | |
| ["docker-compose"] = wezterm.nerdfonts.linux_docker, |
| Desc | Host | Port | User | Pwd | DB |
|---|---|---|---|---|---|
| test | test_host | 3306 | test_user | test_pwd | test_db |
| prod | prod_host | 3306 | marketplace_uat | prod_pwd | test_db |
for row in tab:
desc, host, port, user, pwd, db = tuple(row)
print(f'[{desc}]')| package main | |
| import ( | |
| "crypto/sha256" | |
| "fmt" | |
| "math/rand" | |
| "strconv" | |
| ) | |
| func main() { |
| package string_test | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "strconv" | |
| "strings" | |
| "testing" | |
| ) |
| package main | |
| /* | |
| Prerequisites: | |
| go get -v github.com/pingcap/parser@3a18f1e | |
| go get -v github.com/pingcap/tidb/types/parser_driver@328b6d0 | |
| */ | |
| import ( | |
| "fmt" |
| # ~/.profile: executed by the command interpreter for login shells. | |
| # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
| # exists. | |
| # see /usr/share/doc/bash/examples/startup-files for examples. | |
| # the files are located in the bash-doc package. | |
| # the default umask is set in /etc/profile; for setting the umask | |
| # for ssh logins, install and configure the libpam-umask package. | |
| #umask 022 |
| set scrolloff=5 | |
| set showmode | |
| set history=1000 | |
| " set rnu | |
| " for default search | |
| set ignorecase | |
| set hlsearch | |
| set smartcase | |
| set incsearch |