Skip to content

Instantly share code, notes, and snippets.

View ajinux's full-sized avatar
🎯
Focusing

Ajithkumar sekar ajinux

🎯
Focusing
View GitHub Profile
@ajinux
ajinux / jiofi.py
Last active May 28, 2021 17:45
Simple python script to fetch details from JioFi (dongle) device
#!/usr/bin/python3
from bs4 import BeautifulSoup
import requests
URL = "http://192.168.225.1/cgi-bin/en-jio/mStatus.html"
page = requests.get(URL).text
soup = BeautifulSoup(page, 'html.parser')
@ajinux
ajinux / mac-setup-redis.md
Created June 10, 2020 10:56 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@ajinux
ajinux / README.md
Last active July 25, 2017 21:28
JSON API in Python flask

JSON API

Question

Question Code:JSON_API
                    Create a JSON API server takes a string and returns response ‘acks’ when the input is number ‘acki’ when the input is a string and has a JSON field in the response which divides the requested object into two.

Input - 1

input1

Output - 1

output1

@ajinux
ajinux / README.md
Last active September 27, 2023 21:39
This python script scrapes the fedex website and outputs the package details on giving the package tracking id as input

FEDEX SCRAPER

Question

Question Code:FEDEX
                    Write a Python script which will scrape the FEDEX website to obtain the tracking details of the given shipment tracking details. The output by the script should be in JSON format.
Input: 744668909687
Expected Output:
{ "tracking no": 744668909687,
"ship date": "Wed 19/07/2017",
"status": "delivered",
"scheduled delivery": "Mon 24/07/2017 16:21"

@ajinux
ajinux / keybase.md
Created May 30, 2017 17:50
Keybase.io

Keybase proof

I hereby claim:

  • I am ajithkumarsekar on github.
  • I am ajithkumarsekar (https://keybase.io/ajithkumarsekar) on keybase.
  • I have a public key ASCgNLrr2T290gbzKmsaHbZQF2kR4zcXuGFfNL_jHkSNFQo

To claim this, I am signing this object:

@ajinux
ajinux / beauti.py
Created April 25, 2017 18:44
AIconcalve moneycontrol crawler
import requests
from bs4 import BeautifulSoup
import csv
count_sub = 0
count_main = 0
def subcrawl(suburl):
suburl = "http://moneycontrol.com" + suburl
@ajinux
ajinux / README.md
Created June 8, 2016 12:01 — forked from hofmannsven/README.md
My simply Git Cheatsheet
import speech_recognition
import pyttsx
speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init
speech_engine.setProperty('rate', 150)
def speak(text):
speech_engine.say(text)
speech_engine.runAndWait()