Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
Action | Windows/Linux | macOS |
---|---|---|
New window | Ctrl+Shift+N | Cmd+N |
Close window | Alt+F4 | Cmd+Shift+W |
{ | |
programs.niri.settings.animations = { | |
window-open = { | |
easing = { | |
curve = "ease-out-expo"; | |
duration-ms = 800; | |
}; | |
}; | |
window-close = { | |
easing = { |
from typing import Generator | |
import pytest | |
from sqlalchemy import Engine, create_engine | |
from sqlalchemy.orm import Session, sessionmaker | |
from .models import Base | |
@pytest.fixture(name="engine", scope="session") |
We have some app and dishka container
from fastapi import FasAPI
from dishka.integrations.fastapi import Depends, inject, setup_dishka
router = APIRouter()
@router.get("/")
@inject
telegram.message
{{- /* Telegram message to use: {{ template "telegram.message2" . }} */ -}}
{{ define "__alerts_list" -}}
{{ range . }}
{{if ne (index .Labels "alertname") "" -}}
{{ if eq .Status "firing" }}🔴{{ else }}🟢{{ end }}
{{- if ne (index .Labels "severity") "" -}}
<u><b>P{{ index .Labels "severity" }}</b></u> {{ end -}}
#!/data/data/com.termux/files/usr/bin/bash | |
# https://github.com/orgzly/orgzly-android/issues/8 | |
orgzly_sync() { | |
# if you are using orgzly-revived use the following instead: | |
# am broadcast -n com.orgzlyrevived/com.orgzly.android.ActionReceiver -a com.orgzly.intent.action.SYNC_START | |
am broadcast -n com.orgzly/com.orgzly.android.ActionReceiver -a com.orgzly.intent.action.SYNC_START | |
} |
telegram.message
{{ define "alert_list" }}{{ range . }}{{ .Labels.alertname }}
{{ range .Annotations.SortedPairs }}<strong>{{ .Name }}</strong>: {{ .Value }}
{{ end }}| {{ if gt (len .GeneratorURL) 0 }}<a href="{{ .GeneratorURL }}">source</a> | {{ end }}{{ if gt (len .SilenceURL) 0 }}<a href="{{ .SilenceURL }}">silence</a> | {{ end }}{{ if gt (len .DashboardURL) 0 }}<a href="{{ .DashboardURL }}">dashboard</a> | {{ end }}{{ if gt (len .PanelURL) 0 }}<a href="{{ .PanelURL }}">panel</a> |{{ end }}
—
{{ end }}{{ end }}
{{ define "telegram.message" }}
{{ if gt (len .Alerts.Firing) 0 }}FIRING!!!
# reference: https://github.com/sqlalchemy/sqlalchemy/issues/5626 | |
import pytest | |
import sqlalchemy as sa | |
from sqlalchemy import orm | |
from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession | |
Base = orm.declarative_base() | |