Skip to content

Instantly share code, notes, and snippets.

View mrhalix's full-sized avatar
💭
Call me on telegram

SM. Amin Aleahmad mrhalix

💭
Call me on telegram
View GitHub Profile
@mrhalix
mrhalix / cinematicket-findcinema.py
Created October 21, 2023 10:00
Query cinemas for the specific time and movie
import requests
import json
txt = requests.get("https://cinematicket.org/api/v1/cinematicket/home/movies/6062/?city=235").text
jdat = json.loads(txt)
for cinema in jdat['cinemas'][0]['cinemas']:
for time in cinema['halls']:
for session in cinema['halls'][time]['sessions']:
start_time = session['start_at']
if start_time == "2023-10-20T19:00:00+03:30":
@mrhalix
mrhalix / domain_info.py
Created January 30, 2024 08:45
Namecheap dump/export
import requests
import json
domains = open("Domains/api/getdomainsonly.json" ,"r")
jd = json.loads(domains.read())
def get_domain_info(domain):
cookies = {
'ADD': 'YOUR_COOKIE_HERE'
}
@mrhalix
mrhalix / README.md
Created March 28, 2024 13:04
VMware vSphere (VCSA) VM Finder in bash
  1. First download and install govc binary (Reference)

    # extract govc binary to /usr/local/bin
    # note: the "tar" command must run with root permissions
    curl -L -o - "https://github.com/vmware/govmomi/releases/latest/download/govc_$(uname -s)_$(uname -m).tar.gz" | tar -C /usr/local/bin -xvzf - govc
  2. put this script in your .bashrc/.zshrc, replace your credentials (Lines 6 to 16)

  3. Use it