Postgresql

# Коннект к бд через консоль
psql -U username -d database_name -h host -p port
#-U username - имя пользователя базы данных
#-d database_name - название базы данных
#-h host - хост базы данных (обычно localhost)
#-p port - порт, на котором работает PostgreSQL (обычно 5432)
# ex.  psql -U root -d auth


# просмотр всех баз данных
\l
# просмотр всех таблиц
\dt

Remix まとめ

# ルーティング

## ルーティング作成(ページ作成)

`app/routes` ディレクトリにファイルを作成することでルーティングとそのページを記述できる。  
`app/routes` ディレクトリ配下のディレクトリ構成やファイル名がルーティングを表す。  

例えば、 `contacts.$contactId.tsx` という名前のファイルを作ると `/contacts/1` や `/contacts/2` などのパスに対応するページとなる。  

## リンク

|リンクの種類|書き方|説明|
|---|---|---|
|サーバーサイドルーティング|`<a href={`/path/to/page`}>Page1</a>`|サーバーに同期リクエストを送ってページを取得し描画する。|
|クライアントサイドルーティング|`<Link to={`/path/to/page`}>Page1</Link>`|サーバーに非同期リクエストを送り、レスポンスに応じてクライアント側でコンテンツを書き換え、URLを変更する。|

## ページの表示

`<

UAT Attribute Test | Final | interest_accrued, interest_accrued_to_period

-- specify a cutoff date
with vx_cutoff_date as (select (select * from dw_reporting_meta.add_business_days(current_date,-3)) as cutoff_date)
,
-- Construct a set of UAT loan_ids
v0_uat_loan_ids as (select *
from (
    values
        (563673),(563746),(563783),(563802),(563811),(563815),(563832),(563841),(563850),(563857),(563892),(563900),(563913),(563921),(563942),(563987),(563999),(564015),(564020),(564054),
        (564104),(564137),(564140),(564148),(564190),(564198),(564228),(564231),(56428

Kube Rollouts

kube -n [namespace] rollout:

- restart deploy
- undo deploy
- history deploy

Text box partially overlapping image in a Foundation grid layout

Example: https://audreywestfall.us1.advisor.ws/oakwell-difference
<div class="grid-container the-oakwell-way">
    <div class="grid-x large-up-2 align-middle">
        <div class="cell difference-text small-order-2 large-order-1">
            <h3>Relationships</h3>
            <p><strong>Having genuine relationships based on lasting trust is necessary for your peace of mind.</strong> In our commitment to delivering exceptional service, Oakwell adheres to the principles of Dunbar’s number, which suggests that maintaining meaningful relationships is optimal with

Start up PyEnv with bash, add to path

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc

PyEnv update versions and packages

pyenv update

List available Pyenv Python versions

pyenv install --list

Install PYENV for local user

git clone https://github.com/pyenv/pyenv.git ~/.pyenv

Debian missing packages

# no acceptable C compiler found in $PATH 
sudo apt-get install build-essential

Add PyEnv start up to .profile too

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.profile

03 list versions uninstall versions

pyenv versions
#pyenv uninstall

02_ATTACH REPO to A PyENV

pyenv local envname
#while @ ~/repos/envname
#attaching that env to this repo
# python version in this repo will now match pyenv envname -version
# .gitignore .python version

01_CREATE_NEW PYENV

pyenv virtualenv 3.8.18 envname
#to use eg in a specific repo

00ALSO install pyenv-virtualenv

git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv

00a_add pyenv start with bash

$ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc