Skip to content

Instantly share code, notes, and snippets.

Avatar
🎩
Sherlock Holmes mode

Bimochan Shrestha sbimochan

🎩
Sherlock Holmes mode
View GitHub Profile
@sbimochan
sbimochan / songsterrBannerRemover.md
Created Apr 16, 2021
Remove annoying banner from songsterr.com
View songsterrBannerRemover.md

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 / autoRowOpener.js
Last active Jan 15, 2021
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.
View autoRowOpener.js
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 / faker.md
Created Aug 25, 2020
Faker for dummy.
View faker.md
pip install faker
vim ~/faker_for_testing.py

Hit i

Paste these

@sbimochan
sbimochan / Guidance.md
Last active Apr 27, 2021
Basic measures you should take to prevent Web vulnerabilities
View Guidance.md

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.

View All profiles
{
"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,
View .gitconfig
[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 / .vimrc
Created Aug 21, 2019
vim config file
View .vimrc
" -----------------------------------------------------------------------------
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 / .zshrc
Created Aug 21, 2019
zsh config file
View .zshrc
# 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 / git.md
Last active Jun 2, 2017
From basic git to advance for java
View git.md

Tutorial

By: Bimochan Shrestha

  • Accept Collaborator request? 👍

step 1

Netbeans maa gayera project ko name DnaCryptography raakhne close it