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 / Flask.md
Created July 31, 2020 17:35
Flask Cheetsheet

Run it

  • on Windows (powershell)
$env:FLASK_APP = "hello.py"
  • on Linux
export FLASK_APP=hello.py

Then run with

@shivampip
shivampip / pypi_package.md
Last active July 16, 2020 07:09
Publish Python Package

Installation

pip install --upgrade setuptools wheel
pip install --upgrade twine
  • Must have account on PyPi

Initial setup

  • Create this hirercy
@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 / chrome_remote_desktop.md
Created May 28, 2020 11:25
Chrome Remote Desktop
@shivampip
shivampip / settings.json
Created May 22, 2020 04:35
VS Code Pretier Tab problem
"editor.insertSpaces": false,
"editor.tabSize": 4,
"editor.detectIndentation": false,
"prettier.tabWidth": 4,
"prettier.useTabs": true // This made it finally work for me
@shivampip
shivampip / Docker_Cheatsheet.md
Last active February 26, 2020 10:30
Docker Cheatsheet

Welcome to Docker

  • We downlaod the docker image.
  • Underlying host where docker is installed is called Docker Host
  • when we run the image, a container is created from that image.
  • that container runs.
  • we can run multiple container of same images.
  • every running container is assigned a container-name and container-id randomly by docker
  • we don't need to type full container-id. just type the minimum chars to distiguish from other running containers.
@shivampip
shivampip / Docker_on_Ubuntu.md
Created February 21, 2020 14:24
Docker Installation on Ubuntu
  • Uninstall old version
sudo apt-get remove docker docker-engine docker.io containerd runc
  • Set up the repo
sudo apt-get update

then

@shivampip
shivampip / Python_Virtual_Evn.md
Last active April 12, 2020 08:02
Python Virtual Environment
  • Install virtual env
pip install virtualenv
  • Go to your project directory
cd project
  • Create virtual env
@shivampip
shivampip / README.md
Last active February 20, 2020 16:31
React Setup
  • Install node & npm
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs
  • Verify
node -v
npm -v
@shivampip
shivampip / Demo.js
Created February 14, 2020 15:54
[MEDIUM][REACT][EX-SCR] demo component
import React from "react";
class Demo extends React.Component {
render() {
if (this.props.ready) {
window.helloLife("Hey There");
}
return <div>THis is a demo</div>;
}
}