Skip to content

Instantly share code, notes, and snippets.

View rava-dosa's full-sized avatar

Apoorva Kumar rava-dosa

View GitHub Profile
@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
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):
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(" ")
# $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
@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.
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 / input.json
Created July 12, 2018 14:00
jquery - Populate List with JSON using jQuery
{
"Shoe": [
{
"Women": [
{
"Sandals": [
{
"Slide": [
{
"id": "1",
<!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>
$(document).ready(function() {
$('form').on('submit', function(event) {
$.ajax({
data : {
name : $('#nameInput').val(),
email : $('#emailInput').val(),
password : $('#emailInput').val()
},
https://danluu.com/assembly-intrinsics/
https://www.infoworld.com/article/3175127/software/simd-intrinsics-aren-t-so-scary-but-should-we-use-them.html
https://johanmabille.github.io/blog/2014/10/09/writing-c-plus-plus-wrappers-for-simd-intrinsics-1/
https://fgiesen.wordpress.com/2016/04/03/sse-mind-the-gap/
https://software.intel.com/en-us/articles/how-to-use-intrinsics
http://pharr.org/matt/blog/2018/04/25/ispc-volta-avx.html
https://docs.microsoft.com/en-us/cpp/intrinsics/x64-amd64-intrinsics-list
https://bitshifter.github.io/blog/2018/06/04/simd-path-tracing/
http://www.adrian.idv.hk/2018-05-16-intrinsic/
http://www.cs.uu.nl/docs/vakken/magr/2017-2018/files/SIMD%20Tutorial.pdf