Skip to content

Instantly share code, notes, and snippets.

View sbimochan's full-sized avatar
🎩
Sherlock Holmes mode

Bimochan Shrestha sbimochan

🎩
Sherlock Holmes mode
View GitHub Profile
@sbimochan
sbimochan / git.md
Last active June 2, 2017 14:53
From basic git to advance for java

Tutorial

By: Bimochan Shrestha

  • Accept Collaborator request? :+1:

step 1

Netbeans maa gayera project ko name DnaCryptography raakhne close it

@sbimochan
sbimochan / .zshrc
Created August 21, 2019 06:40
zsh config file
# 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="/Users/grim/.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/robbyrussell/oh-my-zsh/wiki/Themes
@sbimochan
sbimochan / .vimrc
Created August 21, 2019 06:46
vim config file
" -----------------------------------------------------------------------------
let $RUBYHOME=$HOME."/.rbenv/versions/2.5.1"
set rubydll=$HOME/.rbenv/versions/2.5.1/lib/libruby.2.5.1.dylib
set nocompatible " Disable vi compatibility
filetype on " filetype must be 'on' before setting it 'off'
" otherwise it exits with a bad status and breaks
" git commit.
filetype off " force reloading *after* pathogen loaded
@sbimochan
sbimochan / .gitconfig
Created August 21, 2019 06:56
git settings
[user]
name = Bimochan Shrestha
email = bmochan@gmail.com
[core]
excludesfile = /Users/grim/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
@sbimochan
sbimochan / All profiles
Created August 21, 2019 06:58
iterm2 Profile
{
"Profiles": [
{
"Badge Text" : "",
"Working Directory" : "\/Users\/grim",
"Prompt Before Closing 2" : 2,
"Selected Text Color" : {
"Red Component" : 0.95294117647058818,
"Color Space" : "sRGB",
"Blue Component" : 0.35294117647058826,
@sbimochan
sbimochan / faker.md
Created August 25, 2020 09:14
Faker for dummy.
pip install faker
vim ~/faker_for_testing.py

Hit i

Paste these

@sbimochan
sbimochan / autoRowOpener.js
Last active January 15, 2021 03:47
Open all rows of react-table in new tab. Change 7 to number of columns manually. You might get a pop up blocked in url box while running for first time.
function getColumnIndices(total) {
let indices = [];
//7 because number of column is 7
for (let index = 0; index < total; index += 7) {
indices.push(index);
}
return indices;
}
const allColumns = document.getElementsByClassName('rt-td');
const indices = getColumnIndices(allColumns.length);
@sbimochan
sbimochan / songsterrBannerRemover.md
Created April 16, 2021 15:30
Remove annoying banner from songsterr.com

A temporary workaround to remove the banner.

  • Fire up console. Right click-> click Inspect element-> Click console tab
  • Paste following
setInterval(()=> {
  let banner = document.getElementById('showroom');
  banner.remove();
},2000);
@sbimochan
sbimochan / Guidance.md
Last active April 27, 2021 06:05
Basic measures you should take to prevent Web vulnerabilities

Prevent Web Vulnerabilities

It's a shame to see all those nepal's government and ecommerce sites getting hacked. I'd like to call out all Pentesters out there that can at least share out some docs, links that could make our government systems secure. The purpose of this document to have a single source to eliminate overwhelming results from google. Security is very wide domain just like development. You should dedicate some hours to prevent from basic vulnerabilities if you follow these steps. There are already lots of tools that are making life of developers easy.

@sbimochan
sbimochan / work.scpt
Last active December 31, 2021 05:14
Daily work flow automation
#!/usr/bin/osascript
tell application "iTerm2"
tell current session of current tab of current window
split vertically with default profile
split vertically with default profile
write text "cd ~/projects/myFavProject"
write text "code ."
end tell
tell second session of current tab of current window
write text "cd ~/projects/myFavProject"