Skip to content

Instantly share code, notes, and snippets.

View Aero-Blue's full-sized avatar
💭
Working on stuff...

Aero Blue Aero-Blue

💭
Working on stuff...
View GitHub Profile
@Aero-Blue
Aero-Blue / high_low_game.py
Created May 15, 2019 01:02
Simple high or low game solution
import random
points = 0
def get_num():
return random.randint(1,1000)
@Aero-Blue
Aero-Blue / inspector.py
Last active May 26, 2019 02:19
Crawls a specified domain and looks for malformed headers, exporting them to a file
import requests
from urllib.parse import urlparse, urljoin
from bs4 import BeautifulSoup
import itertools
import os, sys
from collections import namedtuple
class LinkScraper:
def __init__(self, domain):
class Info:
def __init__(self, **kwargs):
print(kwargs)
class Main:
def __init__(self, input_method):
if input_method is "f":
exit()
elif input_method == "m":
@Aero-Blue
Aero-Blue / EasyCopyBTC.user.js
Created July 31, 2019 16:27
Automatically copies selected Bitcoin addresses to clipboard!
// ==UserScript==
// @name EasyCopyBTC
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Automatically copies selected Bitcoin addresses to clipboard!
// @author Aero Blue
// @match *://*/*
// @grant none
// ==/UserScript==
@Aero-Blue
Aero-Blue / reply.py
Last active August 1, 2019 21:03
Reply script
import argparse
from requests_html import HTMLSession
USERNAME = ""
PASSWORD = ""
CAPTCHA_CODE = ""
class Main:
def __init__(self):

Keybase proof

I hereby claim:

  • I am aero-blue on github.
  • I am aeroblue (https://keybase.io/aeroblue) on keybase.
  • I have a public key ASCZ2IMZwEof3e4JxFDodWvOQj38vIUp9-ri3lCKEN2JsAo

To claim this, I am signing this object:

@Aero-Blue
Aero-Blue / telegram-login.py
Created January 9, 2020 22:00
Simple Telegram login example
from telethon.sync import TelegramClient # Imports
API_ID = 123456
API_HASH = "cje94230424jlesaferj23432042cc"
PHONE_NUMBER = "+12345678900"
with TelegramClient(PHONE_NUMBER, API_ID, API_HASH) as client:
account = client.get_me() # All your account info
print(f"Logged in as {account.username}!") # Output to console
@Aero-Blue
Aero-Blue / telegram-group.py
Last active January 9, 2020 23:14
Get usernames of all Telegram members in a group
with TelegramClient(PHONE_NUMBER, API_ID, API_HASH) as client:
users = client.get_participants(input("Group Name: ")) # Get all members of a group
user_list = [user.username for user in users if user.username is not None]
print(user_list) # Print a list of members
@Aero-Blue
Aero-Blue / telegram-send-msg.py
Created January 10, 2020 00:05
Example of sending messages using Telethon
with TelegramClient(PHONE_NUMBER, API_ID, API_HASH) as client:
user_list = ["@user1", "@user2", "@user3"]
for user in user_list:
client.send_message(user, "Some message") # Send message to each user
@Aero-Blue
Aero-Blue / FXThread.java
Created March 11, 2020 01:57
Update UI with background operation (JavaFX, 8)
Thread thread = new Thread(() -> {
Runnable updater = () -> {
// update ui operation / last here
};
// perform background operations here
Platform.runLater(updater);
});
thread.setDaemon(true); // let application close
thread.start();