Skip to content

Instantly share code, notes, and snippets.

View a3r0id's full-sized avatar
🎯
Focusing

Chad Groom a3r0id

🎯
Focusing
  • ALERTWest, Inc.
  • Chico, California
  • 18:20 (UTC -07:00)
  • X @a3r0id
View GitHub Profile
@a3r0id
a3r0id / ToolTip.js
Last active September 10, 2023 21:41
/*
Author:
github.com/a3r0id
Description:
Basic tooltip class
*/
export class ToolTip{
// ## Synopsis ##
// > triggerSelector: the selector of the element that will trigger the tooltip
import tweepy
from time import sleep
# Unfollows all users that aren't following you back.
# Twitter's rate-limiting allows about 800 unfollows per session.
SCREEN_NAME = "YOUR_TWITTER_HANDLE"
# Twitter Auth
auth = tweepy.OAuthHandler("", "")
@a3r0id
a3r0id / readme.md
Last active March 21, 2022 07:24
Chromedriver Automation Detection Fix

This is an awesome answer from @DebanjanB to a question on Stackoverflow.com.

options = webdriver.ChromeOptions() 
options.add_argument("start-maximized")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
options.add_argument('--disable-blink-features=AutomationControlled')
#...
@a3r0id
a3r0id / remote_tcp_udp.py
Last active July 31, 2022 07:55
Get IP + Geolocation info for all remote UDP/TCP connections of a process by name or substring.
import psutil
from requests import get
from sys import argv
from threading import Thread
from scapy.all import sniff
import IPy
from os import popen
# By A3R0 - Get IP + Geolocation info for all remote UDP/TCP connections of a process by name.
@a3r0id
a3r0id / headlines.json
Last active December 24, 2021 07:46
JSON file of aggregated top news headlines that is consistently updated (programatically) every 20 minutes.
This file has been truncated, but you can view the full file.
{
"timestamp": "2021-12-24 07:46:42",
"interval_time_seconds": 1200,
"major_headlines": [
{
"dataNode": 0,
"hash": "4969165cae975e5ecbaad6db5a6266e40d027f64",
"text": "Scott Peterson gets life in prison without the possibility of parole at resentencing hearing for the murders of his wife and unborn child\n",
"link": "https://cnn.it/3IxDVTN",
"pubDate": "2021-12-08 19:24:18",
@a3r0id
a3r0id / cf_allow.py
Created October 10, 2021 18:12
Generates a whitelist for all CloudFlare IPs by specific ports. Prints to stdout, usage: cf_allow.py > firewall_whitelist.txt. Change ports directly in the respective list, $ports.
from requests import get
url = "https://www.cloudflare.com/"
with get(url + "ips-v4") as r:
ipv4s = r.text.splitlines()
with get(url + "ips-v6") as r:
ipv6s = r.text.splitlines()
@a3r0id
a3r0id / symbols.txt
Created May 4, 2021 20:14
A full list of the current trading symbols on Binance.
ETHBTC
LTCBTC
BNBBTC
NEOBTC
QTUMETH
EOSETH
SNTETH
BNTETH
BCCBTC
GASBTC
@a3r0id
a3r0id / main.py
Created March 31, 2021 22:53
Encode/decode (secret) encrypted data/messages in any binary file using fernet encryption.
"""
Usage (Encryption):
python3 main.py encrypt fileIn.png fileOut.png "Hello World!"
Usage (Decryption):
python3 main.py decrypt fileIn.png DECRYPTION_KEY
OR
python3 main.py decrypt fileIn.png DECRYPTION_KEY --out=fileOut.txt
"""
@a3r0id
a3r0id / gemini_ticker_scraper.py
Last active August 4, 2021 00:29
Constantly scrape live price data from Gemeni.com's ticker. Updates to a json file so the data can be easily manipulated.
from requests_html import HTMLSession
from json import dumps, load
from time import sleep
from datetime import datetime, timezone
from traceback import format_exc
fileName = 'prices.json'
updateIntervals = 60 #SECONDS
@a3r0id
a3r0id / some_discord_automation.py
Last active May 19, 2024 05:49
Discord Stuff...
from requests import get, post
class data:
token = "YOUR_TOKEN"
host = "https://discord.com"
headers = {
"Authorization": token,
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0"
}