Skip to content

Instantly share code, notes, and snippets.

sureshshrestha /
Created Jan 10, 2020 — forked from gopalindians/
Jetbrains IntelliJ IDEA 2019.2.4 Activation code

Please make fork of this, as this can be removed by sooner or later.


sureshshrestha / js
Created Dec 31, 2018
Avoid mutation in js
View js
In javascript array and object are mutable so to avoid mutation we need to use Spread Operator.
// To add new element ('four') to an array.
const arr1 = [1,2,3];
const fourth = 'four';
const arr2 = [...arr1, fourth];
// Output for arr2: [1, 2, 3, "four"]
sureshshrestha / txt
Created Oct 26, 2018
pip issue fix for 'ImportError: No module named _internal'
View txt
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named _internal
$ sudo rm /usr/local/bin/pip*
$ sudo apt remove python-pip
$ sudo apt install python-pip
View txt
1. Start vault
$ vault server -dev
2. Fetch data
$ vault kv get secret/password
3. Add data from file
$ vault kv put secret/password value=@laudio_admin.txt
sureshshrestha / txt
Created Sep 14, 2018
Coding notes for Windows environment
View txt
# Starting MongoDB in windows
"C:\Program Files\MongoDB\Server\3.0\bin\mongod.exe" --dbpath="c:\data\db"