I hereby claim:
- I am onjin on github.
- I am onjin (https://keybase.io/onjin) on keybase.
- I have a public key ASCwD1OeHWmiu_hIv3OxMq8D2bUMqYLzdO_e5x-8mCINTgo
To claim this, I am signing this object:
| javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = ""; | |
| /* Optional folder name such as "Clippings/" */ |
| #!/usr/bin/env python | |
| """ | |
| Example layout | |
| 2022/01/input_test.txt | |
| 2022/01/input_prod.txt | |
| 2022/01/code.py | |
| Example code.py: | |
| def phase_1(input: List[str]) -> Any: | |
| # lines have '\n' at end |
| RT = TypeVar('RT') # return type | |
| def inject_user() -> Callable[[Callable[..., RT]], Callable[..., RT]]: | |
| def decorator(func: Callable[..., RT]) -> Callable[..., RT]: | |
| def wrapper(*args, **kwargs) -> RT: | |
| # ... |
| k3d registry create myregistry.localhost --port 5555 | |
| k3d cluster create local --registry-use k3d-myregistry.localhost:5555 |
| update-nvim () { | |
| target=${1:-nightly} | |
| tmp_bin=/tmp/nvim.appimage.${target} | |
| previous=$(nvim --version|grep '^NVIM') | |
| url="https://github.com/neovim/neovim/releases/download/${target}/nvim.appimage" | |
| echo "[update-nvim] target version ${target}" | |
| echo "[update-nvim] current version ${previous}" | |
| echo "[update-nvim] downloading file ${url}" | |
| curl --output ${tmp_bin} --silent -L ${url} | |
| file_type=$(file ${tmp_bin}) |
| #!/bin/bash | |
| url=https://zoom.us/client/latest/zoom_amd64.deb | |
| debdir=/usr/local/zoomdebs | |
| aptconf=/etc/apt/apt.conf.d/100update_zoom | |
| sourcelist=/etc/apt/sources.list.d/zoomdebs.list | |
| sudo mkdir -p $debdir | |
| ( echo 'APT::Update::Pre-Invoke {"cd '$debdir' && wget -qN '$url' && apt-ftparchive packages . > Packages && apt-ftparchive release . > Release";};' | sudo tee $aptconf | |
| echo 'deb [trusted=yes lang=none] file:'$debdir' ./' | sudo tee $sourcelist |
I hereby claim:
To claim this, I am signing this object:
| import os | |
| from importlib.util import find_spec | |
| from configurations.wsgi import get_wsgi_application | |
| from fastapi import FastAPI | |
| from fastapi.middleware.wsgi import WSGIMiddleware | |
| from fastapi.staticfiles import StaticFiles | |
| from api import router |
| from typing import Any, Callable, TypeVar, cast | |
| F = TypeVar('F', bound=Callable[..., Any]) | |
| # A decorator that preserves the signature. | |
| def my_decorator(func: F) -> F: | |
| def wrapper(*args, **kwargs): | |
| print("Calling", func) | |
| return func(*args, **kwargs) |
| version: '3' | |
| services: | |
| sentry: | |
| image: 'sentry:latest' | |
| command: start | |
| networks: | |
| - sentry | |
| - traefik-public | |
| depends_on: | |
| - redis |