Skip to content

Instantly share code, notes, and snippets.

View abuturabofficial's full-sized avatar

AbuTurab abuturabofficial

View GitHub Profile
@abuturabofficial
abuturabofficial / .vimrc
Created December 12, 2021 11:17
Got from freeCodecamp
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗
" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝
" ██║ ██║██║██╔████╔██║██████╔╝██║
" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║
" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗
" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
.vim/
├── autoload/
├── backup/
├── colors/
└── plugged/
$ mkdir -p ~/.vim ~/.vim/autoload ~/.vim/backup ~/.vim/color ~/.vim/plugged
$ touch ~/.vimrc
@abuturabofficial
abuturabofficial / .vimrc
Last active December 16, 2021 13:15
Location: $HOME/.vimrc
" Set commands for vim ---------------------------------------------------------------- {{{
" Set command code goes here.
syntax on
set wrap
set number
set autoindent
set shiftwidth=4
set nocompatible
@abuturabofficial
abuturabofficial / mpv.conf
Created December 9, 2021 08:09
Location: ~.config/mpv/mpv.conf
# Uses GPU-accelerated video output by default.
vo=gpu
# Enables best HW decoder; turn off for software decoding
hwdec=auto
border=no # hides the window title bar
msg-color=yes # color log messages on terminal
@abuturabofficial
abuturabofficial / .pam_environment
Created December 9, 2021 06:45
User based environment variables for enabling HWA in Linux
iHD
va_gl
@abuturabofficial
abuturabofficial / brave-flags.conf
Last active December 9, 2021 06:42
Brave-flags for Video HWA. Location: ~.config/
--ignore-gpu-blocklist
--enable-gpu-rasterization
--enable-zero-copy
--disable-gpu-driver-bug-workarounds
--enable-features=VaapiVideoDecoder
--use-gl=egl
#location `$profile`.
#Oh-My-Posh module using InstalledModule Command
#Import-Module oh-my-posh
#Set-PoshPrompt -Theme powerlevel10k_modern
oh-my-posh --init --shell pwsh --config ~\AppData\Local\Programs\oh-my-posh\themes\powerlevel10k_modern.omp.json | Invoke-Expression
#Terminal Icons for PowerShell
Import-Module -Name Terminal-Icons
## sudoers file.
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##
##
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
@abuturabofficial
abuturabofficial / git_bash.bashrc
Last active December 9, 2021 02:03
Windows GitBAsh
eval "$(oh-my-posh --init --shell bash --config ~/AppData/Local/Programs/oh-my-posh/themes/powerlevel10k_modern.omp.json)"
alias ls='ls --color=auto'