Skip to content

Instantly share code, notes, and snippets.

View sushant-at-nitor's full-sized avatar
🖖
Focusing µS

Sushant Kulkarni sushant-at-nitor

🖖
Focusing µS
View GitHub Profile
@sushant-at-nitor
sushant-at-nitor / docker-reset.sh
Created July 23, 2019 18:04
Docker Reset / Docker clean slate / Docker Instance Clean Restart
# kill running containers
docker-compose down
# delete all containers
docker rm -f $(docker ps -a -q)
# Remove all the volumes
docker volume rm $(docker volume ls -q)
# up again
mongod --port <desired-port> --fork --auth --bind_ip_all --dbpath ~/mongodb/qa/db/ --logpath ~/mongodb/mongod.log >> ~/mongodb/log &
## You can check the process using following command:
# => ps -edaf | grep mongo | grep -v grep
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@sushant-at-nitor
sushant-at-nitor / download-vs-code.sh
Last active May 13, 2018 10:29
Download specific version of VSCode
#Windows
#wget https://az764295.vo.msecnd.net/stable/7c7da59c2333a1306c41e6e7b68d7f0caa7b3d45/VSCodeSetup-x64-1.23.0.exe
wget https://az764295.vo.msecnd.net/stable/{latest-commit-in-version}/VSCodeSetup-{arch}-{version}.exe
#Mac
#wget https://az764295.vo.msecnd.net/stable/d0182c3417d225529c6d5ad24b7572815d0de9ac/VSCode-darwin-stable.zip
wget https://az764295.vo.msecnd.net/stable/{latest-commit-in-version}/VSCode-darwin-stable.zip