Skip to content

Instantly share code, notes, and snippets.

View rava-dosa's full-sized avatar

Apoorva Kumar rava-dosa

View GitHub Profile
<!doctype html>
<html>
{% block body %}
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ProMon</title>
<link rel="stylesheet" href="../static/styles.css" type="text/css" />
<!-- <script src="../static/js/form1.js"></script> -->
<script src="{{ url_for('static', filename='js/form.js') }}"></script>
@rava-dosa
rava-dosa / input.json
Created July 12, 2018 14:00
jquery - Populate List with JSON using jQuery
{
"Shoe": [
{
"Women": [
{
"Sandals": [
{
"Slide": [
{
"id": "1",
http://flask.pocoo.org/docs/0.12/becomingbig/#becomingbig
http://flask.pocoo.org/docs/0.12/design/
https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xv-ajax
http://flask.pocoo.org/snippets/98/
@rava-dosa
rava-dosa / intern.md
Last active September 30, 2019 09:23

Table of content

  1. Internships
  2. Projects
  3. Blogs
  4. Workshops

Internships

Intern Analyst @Barclays(5/05/2019-12/07/19)

  1. Created full fledged tool to manage ssl certificates for their cluster of servers.
  2. Automated distribution of Jenkins config changes using python.
  3. Wrote code in groovy to do api health-checks.
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
import subprocess
import os
while(1):
r=subprocess.check_output(['who','-u'])
s1=r.split("\n")
for x in s1:
s2=x.split(" ")
if(len(s2[5])==18):
s3=s2[5]
s4=s3.split(" ")
def check_descending(l):
for i in range(len(l)-1,0,-1):
if l[i] > l[i-1]:
break
print (i)
return i
def main_next(l):
i=check_descending(l)
if(i==1):
@rava-dosa
rava-dosa / out.py
Last active September 8, 2018 12:05
├── admin # this contained business logic for admin users. Seperated using blueprints.
│   ├── 2111.csv
│   ├── admin.py
│   ├── bugzilla.py # this was that bugzilla scraper to scrape
│   ├── gemail.py #this was used to mail
│   ├── github.py # this was used to scrape issues from github wrt keywords. It was kind of scraping api.
│   └── __init__.py
├── guideline
├── __init__.py
├── install.sh
@rava-dosa
rava-dosa / gist:c622bb9fdf644c5b09d43219b69a1210
Created September 29, 2018 10:31
basic react with jsx working
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<!-- Don't use this in production: -->
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>