Skip to content

Instantly share code, notes, and snippets.

View 0xbharath's full-sized avatar
:shipit:
Joy of programming! <img src=1>

Bharath 0xbharath

:shipit:
Joy of programming! <img src=1>
View GitHub Profile
#!/usr/bin/env python3
"""
namecheap-export-dns-records.py - Extract DNS records from Namecheap
This script can export DNS records from a domain in Namecheap and print the domains detected.
python namecheap-export-dns-records.py
To use the script you need to enable the Namecheap API on your account and
@0xbharath
0xbharath / GitHub-Forking.md
Created July 17, 2024 07:49 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@0xbharath
0xbharath / profiling-a-chrome-extension.md
Created February 21, 2024 05:46 — forked from bvaughn/profiling-a-chrome-extension.md
Profiling a custom Chrome extension

Chrome's profiler ("Performance tab) is very useful for measuring JavaScript performance, but what if you want to measure the performance of a custom extension?

For example, what if I would like to profile the following interaction:


The interaction we want to profile


@0xbharath
0xbharath / docker-setup-22.04.sh
Last active July 11, 2024 06:51
docker-setup-22.04.sh
#!/bin/bash
sudo apt update -y
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update -y
sudo apt install -y docker-ce
sudo usermod -aG docker ${USER}
#!/bin/bash
# Regular Colors
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Blue='\033[0;34m' # Blue
Purple='\033[0;35m' # Purple
Cyan='\033[0;36m' # Cyan
@0xbharath
0xbharath / gist:7d378a40c16e465c71604e43b27daf5a
Created May 3, 2023 08:20 — forked from pwlin/gist:8a0d01e6428b7a96e2eb
Android : add cert to system store
https://code.google.com/p/android/issues/detail?id=32696#c5
If you have a certificate that is not
trusted by Android, when you add it, it goes in the personal cert store.
When you add a cert in this personal cert store, the system requires a
higher security level to unlock the device. But if you manage to add your
cert to the system store then you don't have this requirement. Obviously,
root is required to add a certificate to the system store, but it is quiet
easy.
924117dfd0f821775216dc77898e45f969a0cc998b0095fa6fd6f18681fad044