Skip to content

Instantly share code, notes, and snippets.

View ninadpchaudhari's full-sized avatar
:shipit:

Ninad P.Chaudhari ninadpchaudhari

:shipit:
View GitHub Profile
@ninadpchaudhari
ninadpchaudhari / Bucket policy
Created February 14, 2018 22:02
S3 Policy to make content in Bucket public by default
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "MakeItPublic",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<Your Bucket Name here>/*"
}
@ninadpchaudhari
ninadpchaudhari / stream.py
Created February 19, 2018 21:22
py stream
'''
This codes crawls the tweets in SanFrancisco area from Twitter.
Jan 11, 2014
Feng Chen
'''
import tweepy # twitter api module - python version
import datetime # python datetime module
import json # python json module
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Image-only Example - Record Plugin for Video.js</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link href="http://vjs.zencdn.net/5.8.8/video-js.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/videojs-record/2.1.0/css/videojs.record.css" rel="stylesheet">
<script
src="http://code.jquery.com/jquery-3.3.1.min.js"
@ninadpchaudhari
ninadpchaudhari / parser.py
Last active February 4, 2024 10:13 — forked from hreeder/parser.py
Forked : Python nginx Log Parser <<Modified>> : Parsed & normalized the datetime string to native python objects
#!/usr/bin/env python
import gzip
import os
import sys
import re
from datetime import datetime
import pytz
tz = pytz.timezone('UTC')
Squash last X Commits. : https://stackoverflow.com/a/5190323/3262852
use --force if already pushed to github
2) Reset all local changes & reset to one from Github : https://stackoverflow.com/a/8888015/3262852
3) Create, apply patches https://stackoverflow.com/questions/6658313/generate-a-git-patch-for-a-specific-commit
https://www.surveymonkey.com/r/VPH5733
@ninadpchaudhari
ninadpchaudhari / copy all same type files
Created November 9, 2018 06:37
Copy all files from a directory with same extension.
https://superuser.com/questions/477480/how-can-i-recursively-copy-all-pdf-files-in-a-directory-and-its-subdirectories
This file has been truncated, but you can view the full file.
Date/Time: 2019-03-28 02:44:18 -0400
End time: 2019-03-28 02:44:19 -0400
OS Version: Mac OS X 10.14 (Build 18A391)
Architecture: x86_64h
Report Version: 27
Data Source: Stackshots
Shared Cache: 0xa5b1000 FC89571E-90B2-3484-B55A-D92B7B8D70B8
Command: OneDrive
@ninadpchaudhari
ninadpchaudhari / fix-wordpress-permissions.sh
Last active February 5, 2020 06:39 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
# Edited: Ninad Chaudhari <nchaudhari@albany.edu>
# https://gist.github.com/ninadpchaudhari/5c32d596670e5253a15c6deb69642698
if [[ $# -eq 0 ]] ; then
Create Basic Client & Server (hello world) apps & push to Github, EC2 and S3 bucket exists- 20
HTML for profile page with bootstrap present & works well - 15
Server app can respond with custom response & is used in React. - 10
Server app can save and retrive data in the request from DB - 10
Server can do Auth - Static IF conditions - 5
React can use conditinal rendering to show Admin things - 5
Application is well constructed Profile & Nav & Admin Component -- 10
S3 bucket integration - 10
Application deployed - 10