Skip to content

Instantly share code, notes, and snippets.

View aviiciii's full-sized avatar

Laaveshwaran P aviiciii

View GitHub Profile
@aviiciii
aviiciii / csbs-rollno.py
Last active August 29, 2023 14:07
csbs-rollno-regex.py
gform="^202[0-9]{1}PECCB[1-3]{1}[0-9]{2}$"
# all rollno
# does from
# -2020 onwards
# - cb, cs, ai, ml, cc, it
# - from 100-999
gform="202[0-9]{1}PEC(CB|AI|ML|CC|CS|IT)[1-9]{1}[0-9]{2}$"
@aviiciii
aviiciii / script
Created June 27, 2023 07:10
run blocked mac apps
# replace LockedApp.app with the app to unlock
sudo xattr -rd com.apple.quarantine '/Applications/LockedApp.app'
# Creating
pip freeze > requirements.txt
# Installing
pip install -r requirements.txt
# see eeeasy peeeasy
@aviiciii
aviiciii / venv.py
Last active June 22, 2023 18:20
creating a virtual environment on macos
# create venv
py -m venv venv
# activate venv
source venv/bin/activate
@aviiciii
aviiciii / copyright auto
Created June 11, 2023 19:18
A automatic copyright footer generator for years
@aviiciii
aviiciii / py-change.py
Last active July 12, 2023 17:50
Use 'py' instead of 'python3' in macOS
# open in terminal
$ nano ~/.zshrc
# this open a file in nano editor
# add the following line in the editor
alias py=python
or
alias py=python3
@aviiciii
aviiciii / iitm-bs-id.py
Created May 25, 2023 16:45
IIT Madras Online Degree Roll Number Regex
import re
inpt=input('ID:')
# inpt = '21F3000426'
# writting regex
if re.search(r'^(21|22)(F|DP|DS)([1-3]{1})([0-9]{6})$', inpt):
print('Valid ID')
else:
print('Invalid ID')