Skip to content

Instantly share code, notes, and snippets.

View ayushxx7's full-sized avatar
🏠
Working from home

Ayush Mandowara ayushxx7

🏠
Working from home
View GitHub Profile
@ayushxx7
ayushxx7 / kill_process.py
Created May 12, 2021 18:42
Kill Process by Name using the `psutil` module in Python
import traceback
import psutil
def kill(process_name):
"""Kill Running Process by using it's name
- Generate list of processes currently running
- Iterate through each process
- Check if process name or cmdline matches the input process_name
@ayushxx7
ayushxx7 / vpn_handler.py
Last active January 6, 2023 14:25
ExpressVPN Windows Utility to Connect & Disconnect from VPN using Python
import os
import pyautogui
import inspect
import logging
from datetime import date
import time
import win32gui
import win32com.client
@ayushxx7
ayushxx7 / aws_helper.py
Created April 23, 2021 20:36
AWS S3 File Upload & Invalidation using Python (Public Access)
import time
import traceback
import boto3
from botocore.exceptions import NoCredentialsError
class AWSActions:
def __init__(self):
self.ACCESS_KEY = '--your key--'
# Basic commands
:Git [args] # does what you'd expect
all of your `~/.gitconfig` aliases are available.
:Git! [args] # same as before, dumping output to a tmp file
Moving inside a repo.