This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -m django startproject video_demo | |
python -m virtualenv env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################################## | |
##### USE THIS FILE IF YOU LAUNCHED UBUNTU ##### | |
######################################################## | |
sudo apt update | |
sudo apt install nginx -y | |
sudo ufw allow 'Nginx HTTP' | |
sudo su | |
sudo systemctl start nginx | |
systemctl status nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
def main(token): | |
payload = {} | |
headers= { | |
'Authorization': 'Token '+token | |
} | |
url = "https://api.github.com/user" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#include<list> | |
int mostFrequent(int arr[], int n) | |
{ | |
// Sort the array | |
sort(arr, arr + n); | |
// find the max frequency using linear traversal |
NewerOlder