This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################################################################## | |
| ##### Key Bindings #################################################### | |
| ########################################################################## | |
| # Note: | |
| # `<Prefix>+key`: simultaneously press <Prefix> and key | |
| # `<Prefix> key`: press <Prefix> and then press the key | |
| # Bind <Prefix> to Ctrl+A instead of Ctrl+B | |
| unbind C-b | |
| set -g prefix C-a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window: | |
| dimensions: | |
| columns: 80 | |
| lines: 42 | |
| position: | |
| x: 0 | |
| y: 0 | |
| decorations: none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " General Settings -------------------------------- | |
| set configversion 2.0 | |
| set update.lastchecktime 1646149576452 | |
| " Set tridactyl theme to 'Midnight' | |
| set theme midnight | |
| " Binds ------------------------------------------- | |
| " Go to the next/previous tab with `J`/`K` | |
| bind J tabnext | |
| bind K tabprev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update packages | |
| sudo apt update && sudo apt upgrade -y | |
| # Install Docker | |
| sudo apt-get install \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg \ | |
| lsb-release -y | |
| # Add Docker’s official GPG key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Update packages | |
| sudo pacman -Syu --noconfirm | |
| # Install useful tools: zsh, oh-my-zsh, p10k prompt, tmux, LunarVim, etc. | |
| # Install zsh, oh-my-zsh, plugins, set up config ########### | |
| # Download dotfiles | |
| git clone https://github.com/shitcoding/dotfiles ~/.dotfiles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from functools import wraps | |
| from async_fastapi_jwt_auth import AuthJWT | |
| from fastapi import Depends, Request, status | |
| from fastapi.security import HTTPBearer | |
| from sqlalchemy.ext.asyncio import AsyncSession | |
| from db.db import get_session | |
| from helpers.auth_request import AuthRequest | |
| from helpers.exceptions import AuthException |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Pop OS: Repair the bootloader manual - https://support.system76.com/articles/bootloader/ | |
| # Unlock LUKS volume | |
| sudo cryptsetup luksOpen /dev/nvme0n1p3 cryptdata | |
| sudo lvscan | |
| sudo vgchange -ay | |
| # Mount unlocked LUKS volume | |
| sudo mount /dev/mapper/data-root /mnt |