Skip to content

Instantly share code, notes, and snippets.

View shivampip's full-sized avatar
🏡
In Quarantine

Shivam Agrawal shivampip

🏡
In Quarantine
View GitHub Profile
@shivampip
shivampip / mongodb_pass_reset.md
Created November 6, 2019 16:31
MongoDB shell admin password reset
  • open mongod.conf
cd /etc/mongod.conf
  • Comment security
#security:
#  authroization: "enabled"
@shivampip
shivampip / directus_custom_endpoint.md
Last active November 17, 2023 18:25
Directus Custom Endpoint

Create Custom Endpoint in Directus

Build Extension

  • Create any folder and go inside
mkdir shivam
cd shivam
  • Create directus extension here
@shivampip
shivampip / MongoDB_ubuntu_nginx_ssh.md
Last active October 18, 2022 01:30
MongoDB on Ubuntu 18.04 (nginx) SSH

Just follow these steps and teke ref of Refernce

  • Uninstall previous installation
sudo service mongod stop

sudo apt-get purge mongodb-org*

sudo rm -r /var/log/mongodb
@shivampip
shivampip / chrome_remote_desktop.md
Created May 28, 2020 11:25
Chrome Remote Desktop
@shivampip
shivampip / nginx.md
Last active July 19, 2022 04:53
Nginx Started

Let's get started

Installation

  • Update ubuntu
sudo apt-get update
sudo apt-get upgrade
@shivampip
shivampip / wikibot.py
Last active March 7, 2022 04:22
[Telegram Wikipedia Bot] #telegram #wikipedia #bot #python
from telegram.ext import Updater
from telegram.ext import MessageHandler, Filters
import wikipedia as wiki
# put your toen here
BOT_TOKEN= "641238067:AAEB___d1oM4llx6********************"
updater= Updater(BOT_TOKEN) #Bot Token is given by BotFather on Telegram while creating bot.
def get_wiki(word):
@shivampip
shivampip / .dockerignore
Last active January 13, 2022 06:06
react-docker
**/node_modules
**/npm-debug.log
build
@shivampip
shivampip / postgresql.md
Last active October 13, 2021 07:30
Postgresql Ubuntu Configuration

After INstallation

  • Switch to postgres user
su - postgres
  • Create new user name root (for example)
createuser --interactive --pwprompt
@shivampip
shivampip / shape_divider
Created January 19, 2021 12:02
Shape Divider
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shapre Divider Test</title>
</head>
<style>
@shivampip
shivampip / supervisord.md
Last active December 30, 2020 17:46
Supervisord Cheetsheet

Supervisord

Installation

sudo apt-get install supervisor

Configuration file

  • For any new process create a supervisor config file
  • path will be /etc/supervisor/conf.d/myfile.conf