Skip to content

Instantly share code, notes, and snippets.

View thenerdsuperuser's full-sized avatar
🌎
hosting globally

Parth Krishna thenerdsuperuser

🌎
hosting globally
View GitHub Profile
@thenerdsuperuser
thenerdsuperuser / login.py
Created December 21, 2016 15:20
These are my login and register scripts. They can be integrated in any python program. A lot of modifications has to be done and bugs have to fixed/
def intro():
print("\nEnter your details to login \n")
def login():
# Opens the user.txt file
with(open('uid.txt', 'r+')) as u_name:
a = u_name.read()
uid = a.split()
uid_low = [item.lower() for item in uid]
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 5986:02d3 Acer, Inc
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[ 2069.489185] usb 3-3: GSM modem (1-port) converter now attached to ttyUSB2
[ 2069.489387] usb-storage 3-3:1.3: USB Mass Storage device detected
[ 2069.489754] scsi host25: usb-storage 3-3:1.3
[ 2070.490830] scsi 25:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
[ 2070.492692] scsi 25:0:0:1: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 2070.501785] sr 25:0:0:0: [sr1] scsi-1 drive
[ 2070.502087] sr 25:0:0:0: Attached scsi CD-ROM sr1
[ 2070.502252] sr 25:0:0:0: Attached scsi generic sg2 type 5
[ 2070.504006] sd 25:0:0:1: Attached scsi generic sg3 type 0
[ 2070.513874] sd 25:0:0:1: [sdb] Attached SCSI removable disk

Keybase proof

I hereby claim:

To claim this, I am signing this object:

<body style=margin:0 onload="for(s=document,w=q.width=s.width,h=q.height=s.height,m=Math.random,p=[];!p[255];p.push(1));setInterval('9Style=\'rgba(0,0,0,.05)\'9Rect(0,0,w,h)9Style=\'#0F0\';p.map(function(v,i){9Text(String.fromCharCode(3e4+m()*33),i*10,v);p[i]=v>758+m()*1e4?0:v+10})'.replace(/9/g,';q.getContext(\'2d\').fill'),33)"><canvas id=q>
@thenerdsuperuser
thenerdsuperuser / List.ipynb
Last active February 10, 2019 16:04
Trying out IPython
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thenerdsuperuser
thenerdsuperuser / install-docker.sh
Created March 27, 2019 02:33 — forked from dweldon/install-docker.sh
Install docker CE on Linux Mint 18.3
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
# https://docs.docker.com/compose/install/
@thenerdsuperuser
thenerdsuperuser / nearbySafe.js
Created March 30, 2019 15:00
This js function returns a list of all the nearby hospitals which are marked as safe zones and prints them out.
YOUR_API_KEY = ''
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"></script>
var map;
var service;
var infowindow;
function initialize() {
var pyrmont = new google.maps.LatLng(-33.8665433,151.1956316);
from flask import Flask, jsonify, request, abort
from flask import Response
import requests
import sqlite3
#import make_response
import hashlib
import json
from flask_cors import CORS
import base64
import datetime
from flask import Flask, jsonify, request, abort
from flask import Response
import sqlite3
#import make_response
import hashlib
import json
from flask_cors import CORS
import base64
import datetime
import string