Skip to content

Instantly share code, notes, and snippets.

Avatar

Ninad P.Chaudhari ninadpchaudhari

View GitHub Profile
View synchrony_tutorial.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View assignment 2 - grade
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
View fix-wordpress-permissions.sh
#!/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
View onedrive-update-ring-issue.txt
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
@ninadpchaudhari
ninadpchaudhari / copy all same type files
Created Nov 9, 2018
Copy all files from a directory with same extension.
View copy all same type files
https://superuser.com/questions/477480/how-can-i-recursively-copy-all-pdf-files-in-a-directory-and-its-subdirectories
View Git Reference
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
@ninadpchaudhari
ninadpchaudhari / parser.py
Last active Feb 14, 2020 — forked from hreeder/parser.py
Forked : Python nginx Log Parser <<Modified>> : Parsed & normalized the datetime string to native python objects
View parser.py
#!/usr/bin/env python
import gzip
import os
import sys
import re
from datetime import datetime
import pytz
tz = pytz.timezone('UTC')
View index.html
<!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"
View stream.py
'''
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
You can’t perform that action at this time.