Skip to content

Instantly share code, notes, and snippets.

View shitcoding's full-sized avatar
💭
Coding shit

Vasiliy Ivanov shitcoding

💭
Coding shit
View GitHub Profile
@shitcoding
shitcoding / fix_bootloader.sh
Created March 14, 2024 18:52
Fix bootloader for ubuntu / pop os
# 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
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
@shitcoding
shitcoding / setup_tools_arch.sh
Last active July 15, 2024 20:18
Setup tools on fresh Arch Linux installation
#!/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
@shitcoding
shitcoding / setup_utils.sh
Created March 6, 2023 21:15
Install Docker, zsh+oh-my-zsh, tmux, alacritty, lunarvim and other utils on Ubuntu instance
# 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
@shitcoding
shitcoding / tridactylrc
Created March 27, 2022 12:35
Mindblowingly awesome Tridactyl config
" 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
@shitcoding
shitcoding / alacritty.yml
Created March 27, 2022 12:13
Awesome Alacritty config
window:
dimensions:
columns: 80
lines: 42
position:
x: 0
y: 0
decorations: none
@shitcoding
shitcoding / .tmux.conf
Last active March 27, 2022 12:33
The best of the best Tmux config ever
##########################################################################
##### 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