Skip to content

Instantly share code, notes, and snippets.

View rohitwtbs's full-sized avatar
😍
I will create a mark before leaving.

rohit kumar rohitwtbs

😍
I will create a mark before leaving.
View GitHub Profile
@rohitwtbs
rohitwtbs / Javascript OO Cheat Sheet
Created October 2, 2018 06:33
Javascript OO Cheat Sheet
/***********************************************************************************************************************
***********************************************************************************************************************
* CONTENTS:
* Native Object
* Object Literal
* Basic Object
* Psuedo-Class
* Self Executing/Invoking Structure
* Lazy Function
* Module Pattern
@rohitwtbs
rohitwtbs / activate_venv.sh
Last active August 14, 2021 15:51
This shell script will activate venv when we cd into a folder which has venv. Put the following code in the config file of your terminal shell.
function cd() {
builtin cd "$@"
if [[ -z "$VIRTUAL_ENV" ]] ; then
## If venv folder is found then activate the vitualenv
if [[ -d ./venv ]] ; then
source ./venv/bin/activate
fi
else
## check the current folder belong to earlier VIRTUAL_ENV folder
@rohitwtbs
rohitwtbs / .vimrc
Last active March 6, 2022 16:16
my vimrc
set nu
syntax on
colorscheme desert
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
@rohitwtbs
rohitwtbs / commands.txt
Last active March 7, 2022 11:25
commands i want to learn
GIT
- revert a file chnages to commited changes
git checkout <filename>
VIM
* for creating file in nerd tree ":m"
* for resizing partitions in vim
@rohitwtbs
rohitwtbs / sshKeyGen.py
Created September 8, 2022 06:05 — forked from hugobarzano/sshKeyGen.py
Python script that uses ssh-keygen and ssh-copy-id to create SSH keys
'''
Author: Brian Oliver II
Instagram: bolo_ne3
License:
MIT License
Copyright (c) 2016 Brian Oliver II
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal