Skip to content

Instantly share code, notes, and snippets.

View cooliscool's full-sized avatar
🐼

Ajmal Moochingal cooliscool

🐼
View GitHub Profile
@cooliscool
cooliscool / netaccess.py
Last active August 31, 2021 01:15
Approve Netaccess automatically ( for IIT Madras ).
#!/usr/bin/env python
import requests
import sys
import getpass
username = 'aexxxxxx'
print ('LDAP pass ')
pa = str(getpass.getpass())
with requests.session() as s:
page = s.post('https://netaccess.iitm.ac.in/account/login' , data={ 'userLogin':username, 'userPassword':pa, 'submit':''})
@cooliscool
cooliscool / removeproxy.sh
Last active August 20, 2017 18:01
Automate Setting and Removing of SSH tunnel SOCKS Proxy in Ubuntu.
# Author : Mohammed Ajmal
# GNU Public License
# Tested to work well in Ubuntu 16.04
# use ` chmod +x removeproxy.sh ` to give executable permissions
gsettings set org.gnome.system.proxy mode 'none'
@cooliscool
cooliscool / create_dataset.py
Last active January 21, 2023 10:18
For selecting only a few number of classes from PASCAL VOC for training in Tensorflow. ( Please refer the code thoroughly :) )
PASCAL_CLASSES = [
'none',
'aeroplane',
'bicycle',
'bird',
'boat',
'bottle',
'bus',
'car',
'cat',