Skip to content

Instantly share code, notes, and snippets.

View gearonixx's full-sized avatar

Uzhanin Egor gearonixx

  • ITMO University
  • Moscow, Russia
  • 17:11 (UTC +03:00)
View GitHub Profile
@gearonixx
gearonixx / DeepTelegram.md
Created May 16, 2025 16:00 — forked from fortunto2/DeepTelegram.md
Чатики и каналы по Deep Learning в telegram

Чатики и каналы по Deep Learning в telegram

Каналы

Чаты

@gearonixx
gearonixx / DeepTelegram.md
Created May 16, 2025 16:00 — forked from fortunto2/DeepTelegram.md
Чатики и каналы по Deep Learning в telegram

Чатики и каналы по Deep Learning в telegram

Каналы

Чаты

type UnionToIntersection<U> =
(U extends U ? (arg: U) => unknown : never) extends
((arg: infer I) => unknown) ? I : never
type LastOfUnion<U> =
UnionToIntersection<
(U extends unknown ? (arg: U) => unknown : never)
> extends (arg: infer I) => unknown ? I : never
type IsAny<T> = [T] extends [never] ?
@gearonixx
gearonixx / .gitconfig
Last active November 3, 2023 15:44
custom .gitconfig aliases
[alias]
ln = "!f() { git clone $1; }; f"
c = "!f() { category=\"$1\"; commit_message=\"$2\"; git add . && git commit -m -n \"$category: $commit_message\"; }; f"
cd = "!f() { git add . && git commit -m -n \"$1\"; }; f"
pu = "!f() { branch=\"$(git symbolic-ref --short HEAD)\"; git push origin $branch; }; f"
a = add
p = "!f() { category=\"$1\"; commit_message=\"$2\"; branch=\"$(git symbolic-ref --short HEAD)\"; git add . && git commit -m \"$category: $commit_message\" && git push origin $branch; }; f"
pd = "!f() { branch=\"$(git symbolic-ref --short HEAD)\"; git add . && git commit -m -n \"$1\" && git push origin $branch; }; f"
di = diff
@gearonixx
gearonixx / .zshrc
Last active January 20, 2024 17:59
dotfiles
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME=gozilla
plugins=(
@gearonixx
gearonixx / clean-nodes.sh
Created September 27, 2023 07:52
Something like npkill, will delete all unnecessary files from your nodejs projects
#!/bin/bash
# will delete all unnecessary files
# from your nodejs projects
EXECUTE_DIR=$1
PURPLE='\033[1;36m'
NC='\033[0m'