Skip to content

Instantly share code, notes, and snippets.

View itsvinayak's full-sized avatar
🎯
Focusing

vinayak itsvinayak

🎯
Focusing
View GitHub Profile
@itsvinayak
itsvinayak / Oh My ZSH with Agnoster Theme in Terminator.md
Last active April 14, 2023 10:50
Ubuntu 18.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Edit config file for Terminator /home/{yourUserName}/.config/terminator/config

@itsvinayak
itsvinayak / terminator setup
Created June 4, 2020 12:08
terminator setup -> /home/spider/.config/terminator/config
[global_config]
always_split_with_profile = True
enabled_plugins = CustomCommandsMenu, InactivityWatch, TestPlugin, ActivityWatch, TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, Logger, MavenPluginURLHandler, LaunchpadBugURLHandler
geometry_hinting = True
hide_tabbar = True
inactive_color_offset = 0.651741293532
scroll_tabbar = True
tab_position = bottom
title_font = Roboto Mono for Powerline Bold Italic 11
title_hide_sizetext = True
@itsvinayak
itsvinayak / .vimrc
Last active June 26, 2020 05:04
configuration file for vim
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
"autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
let need_to_install_plugins = 1
endif
call plug#begin()
Plug 'tpope/vim-sensible'
@itsvinayak
itsvinayak / zshrc
Last active June 4, 2020 20:31
config file for ZSH/Bash shell
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@itsvinayak
itsvinayak / bashrc
Created June 4, 2020 20:32
.bashrc config
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# powerline python
# if [ -f `which powerline-daemon` ]; then
# powerline-daemon -q
# POWERLINE_BASH_CONTINUATION=1
# POWERLINE_BASH_SELECT=1
@itsvinayak
itsvinayak / .ycm_global_ycm_extra_conf.py
Created June 5, 2020 05:54
youcomplete ycm_global_ycm_extra_conf file for cpp
# in vimrc let g:ycm_global_ycm_extra_conf = '~/path/.ycm_extra_conf.py'
import os
import os.path
import logging
import ycm_core
# Default settings in case no *compile_commands.json* or *.clang_complete* file
# is not found, these and nearest *include* folder are used
BASE_FLAGS = [
@itsvinayak
itsvinayak / init.vim
Last active August 4, 2021 17:54
vimrc file for nvim
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" __ _(_)_ __ ___ _ __ ___
" \ \ / / | '_ ` _ \| '__/ __|
" \ V /| | | | | | | | | (__
" \_/ |_|_| |_| |_|_| \___|
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" ├── templates
" │ └── skeleton.cpp
name: autoblack_on_push
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- run: pip install black isort
- run: black --check .
@itsvinayak
itsvinayak / template.py
Created August 18, 2020 14:44
Competitive Programming template for Python 3 files
import os
import sys
from io import BytesIO, IOBase
__author__ = "vinayak sharma"
__version__ = "1.0.0"
__email__ = "itssvinayak@gmail.com"
# fastio
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.