Skip to content

Instantly share code, notes, and snippets.

@x011
x011 / gmail_attachment_downloader.py
Last active Aug 14, 2022
Gmail Attachment Downloader 2020
View gmail_attachment_downloader.py
# Made for: https://stackoverflow.com/questions/61366836/download-attachment-from-mail-using-python/
import os
from imbox import Imbox # pip install imbox
import traceback
# enable less secure apps on your google account
# https://myaccount.google.com/lesssecureapps
host = "imap.gmail.com"
@x011
x011 / mirrorace.org_upload.py
Last active Aug 8, 2022
Upload files to mirrorace.org using python
View mirrorace.org_upload.py
from requests import Session
import mimetypes
from pathlib import Path
"""
Coded for https://stackoverflow.com/questions/66393210/how-can-i-send-api-request-through-python-for-mirrorace-org
"""
def get_mime(f):
@x011
x011 / python_windows_monitor_on_off.py
Last active Jul 15, 2022
Pyhon script to turn the monitor On/Off on windows systems.
View python_windows_monitor_on_off.py
import win32gui, win32con
from time import sleep
SC_MONITORPOWER = 0xF170
win32gui.SendMessage(win32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND, SC_MONITORPOWER, 2) # Off
sleep(2)
win32gui.SendMessage(win32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND, SC_MONITORPOWER, -1) # On
View python_printer_gui.py
'''
Project: curinga
Time: 2020/03/07 01:37
'''
import win32api
import win32print
import traceback
from tkinter.filedialog import askopenfilename
from tkinter import *
@x011
x011 / imacros-cheatsheet.md
Created Oct 7, 2016
iMacros Command, Variable, and function reference
View imacros-cheatsheet.md
@x011
x011 / python_hangman_game_computer_jargons.json
Created Apr 4, 2019
python_hangman_game_computer_jargons_dict.json
View python_hangman_game_computer_jargons.json
{"AAC":"Advanced Audio Coding", "AADL":"Axiomatic Architecture Description Language", "AAL":"ATM Adaptation Layer", "AAP":"Association of American Publishers", "aard":"programming, tool Dutch for earth A tool to check memory use for C++ programs, written by Steve Reiss spr@cs.brown.edu who names his programs after living systems.", "AARP":"Apple Address Resolution Protocol", "AAUI":"Apple Attachment Unit Interface", "abbrev":"jargon /*-breev'/, /*-brev'/ Common abbreviation for abbreviation.", "ABC":"1. computer Atanasoff-Berry Computer.", "abduction":"logic The process of inference to the best explanation.", "ABEND":"jargon /o'bend/, /*-bend'/ ABnormal END. Abnormal termination of software; crash; lossage. Derives from an error message on the IBM 360; used jokingly by hackers but seriously mainly by code grinders. Usually capitalised, but may appear as abend. Hackers will try to persuade you that ABEND is called abend because it is what system operators do to the computer late on Friday when the
@x011
x011 / Interactive Brokers Equities (NASDAQ, NYSE, AMEX) - Symbol, Primary Exchange, Tick Increment, ISIN, CONID, ASSETID.txt
Last active Sep 30, 2021
Interactive Brokers Equities (NASDAQ, NYSE, AMEX) - Symbol, Primary Exchange, Tick Increment, ISIN, CONID, ASSETID
View Interactive Brokers Equities (NASDAQ, NYSE, AMEX) - Symbol, Primary Exchange, Tick Increment, ISIN, CONID, ASSETID.txt
symbol,exch,tick,isin,conid,assetid
OGEN,AMEX,0001,US6840232036,79502228,IB14002948
AZRX,NASDAQ,01,US05502L1052,249028358,IB44916495
SLIM,NASDAQ,01,US47103U5065,236317253,IB42908076
SPNC,NASDAQ,05,US84760C1071,274605,IB49346
SLMAP,NASDAQ,01,US78442P2056,2009074,IB24382
ISCA,NASDAQ,05,US4603352018,4596071,IB47153
JASN,NASDAQ,0001,US4711721062,159114177,IB28671428
PMD,NASDAQ,01,US7443752057,756145,IB82271
SPAN,NASDAQ,01,US8463961099,274554,IB49331
@x011
x011 / Google_IP_Addresses.txt
Created Oct 8, 2018
List of Google ip addresses - Feel free to contribute if you find new ip's operated by google.
View Google_IP_Addresses.txt
1.0.0.0/24
1.1.1.0/24
1.2.3.0/24
8.6.48.0/21
8.8.8.0/24
8.35.192.0/21
8.35.200.0/21
8.34.216.0/21
8.34.208.0/21
23.236.48.0/20
View gist:088e2f3a5e3a13b45602d71b4da59a23
teste 123 0x03fae834961ba15203a0f493dc47b6a41090cabf5892b63fbb2d20c9c59a2468 00000000
View gist:874b0f15a31720267201fb6c4bc923de
m/44'/60'/0'/0/0 0xfBC4f0fDF6eFC1A18481C23D6C9149b06019b0A0 0x6af883f97a80a3e93b4f67ec0a464dedf67b3fb991dbcd47ee37da89ab002701
m/44'/60'/0'/0/1 0xF228d2A5AD066f79c71ea8f717F90C3eBce13F45 0x376607636d7e1d2b21845593bff6b52c329853012a5b05eca8738362cd9b4950
m/44'/60'/0'/0/2 0x7e8885361C354d7AA6Fc3CAbE72058d61fA3a4aD 0x549e8f591a67ad74015f1dad862bd3f4f67f27eb3e0e6b7106c4d3461bc2ec89
m/44'/60'/0'/0/3 0xB3CA35156fcc44b4A01c05A2Aef11dd54796bb79 0x6ece26233bfb629c595b7d7fca65bb51fc847dc4caa3e5cae777e6a12d8b6ced
m/44'/60'/0'/0/4 0x8Aa523a8776807d1D69EfB8A35A2d192F72D336D 0xe7209f5d049e919cfa2703db35b39282fa0899ad32bf4e59c29d2f27118b840c
m/44'/60'/0'/0/5 0x513656211691393a181c85d7c6b22C38cdBb43Ac 0x37f2eb799ef113d93891827f74b9d3f3e92824b7492238660bb45e8efab9ba60
m/44'/60'/0'/0/6 0x18D72546E34dEcE48B7b07dd0a203daD9DB0e8B3 0x17a1d6d24a1611d59da1e867cde8fec46ea5439ac4a54fab271b524853a35a13
m/44'/60'/0'/0/7 0x7EE2F82258e48C36a5540191540d087a77165F62 0xc9b8b52bf896455aaccb495b785912b55a6d7c96c189e640c