Skip to content

Instantly share code, notes, and snippets.

View vishwajeetio's full-sized avatar
🌴
On vacation

Vishwajeet vishwajeetio

🌴
On vacation
View GitHub Profile
"""djreact URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
@vishwajeetio
vishwajeetio / docker-help.md
Created February 12, 2020 23:38 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@vishwajeetio
vishwajeetio / webdev_online_resources.md
Created February 16, 2020 08:47 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
HelloWorld
@vishwajeetio
vishwajeetio / postgreSQLinDocker.md
Created May 25, 2020 10:00
postgreSQL in docker

PostgreSQL with Docker AGENDA

1 : Create a Postgres docker container docker run --name demo -e POSTGRES_PASSWORD=password1 -d postgres

2: Connect and run some queries docker exec -it demo psql -U postgres

In this space I will write some basic commands on dealing with postgresql install on docker.

  1. Connet to postgres docker container for psql commands:

    docker exec -it Name or id psql -U postgres_username

  2. list databases:

    \l

  3. switch between databases:

    \c database_name

  4. list of tables:

\dt

@vishwajeetio
vishwajeetio / kubernetes_digitalocean.md
Created July 13, 2020 19:09
kubernetes on digitalocean
start a django project
django-admin startproject 'project-name'
run server
python manage.py runserver
start app:
python manage.py startapp polls
@vishwajeetio
vishwajeetio / kiki.py
Created October 16, 2020 18:01 — forked from akhan118/kiki.py
A Python Client For TdAmeritrade API
import pandas as pd
import requests
from pandas.io.json import json_normalize
from datetime import datetime
import time
class Td:
def __init__(self,refresh_token,client_id,apikey):
# URL decoded refresh token
self.refresh_token= refresh_token
@vishwajeetio
vishwajeetio / digitalocean.md
Created November 21, 2020 06:40
digital ocean cheatsheet

setting up a droplet

  1. reset password
  2. login to console with user as root and password from email
  3. open file nano /etc/ssh/sshd_config
  4. go to the very botton of file and find line with PasswordAuthentication and change its value from no to yes
  5. then run sudo service sshd reload
  6. come to local terminal and run ssh user@server