Skip to content

Instantly share code, notes, and snippets.

@kayaked
kayaked / ​​
Last active October 27, 2019 23:31
____ _
/ __ \| | __
| | | | |/ /
| |__| | <
\____/|_|\_\
@kayaked
kayaked / oneline.py
Created October 7, 2018 18:48
My Best one line programs for Python
# HTTP Status Codes
import bs4, requests;soup=bs4.BeautifulSoup(requests.get('http://httpstat.us/').text, 'html.parser'); [[soup.find_all('dt')[d].text.strip(),soup.find_all('dd')[d].text.strip()] for d in list(range(0, soup.find_all('dt').__len__()))]
# Reddit Hot Posts
import requests;[[a['data']['title'], "https://reddit.com" + a['data']['permalink'], a['data']['subreddit_name_prefixed']] for a in requests.get("https://www.reddit.com/.json", headers={'User-agent':'me'}).json()['data']['children']]
@kayaked
kayaked / MSFTScraper.py
Last active August 8, 2018 18:00
locate microsoft store app ids
# MSFTScraper - Microsoft Bundle ID Locator
# By jack (oganessium)
# @saucize/@trueyak, github.com/oganessium
from bs4 import BeautifulSoup as bs
import requests
print("=============================")
print("MSFTScraper - Microsoft Bundle ID Locator")
print("=============================")
@kayaked
kayaked / KitsuneReddit.py
Created August 8, 2018 03:20
yet another kitsunegd variant with no error handling
import requests
from bs4 import BeautifulSoup
import random
def reddit():
sel = input("u for user, b for batch ")
if sel.lower()=="u":
user = input("input a username: ")
if user.startswith("/u/"):
user=user[3:]
@kayaked
kayaked / PlayScraper.py
Created August 8, 2018 03:19
finds bundle ids of apps on google play
# PlayScraper - Android Bundle ID Locator
# By jack (oganessium)
# @saucize/@trueyak, github.com/oganessium
from bs4 import BeautifulSoup as bs
import requests
print("=============================")
print("PlayScraper - Android Bundle ID Locator")
print("=============================")
@kayaked
kayaked / RLMaker1.py
Last active August 8, 2018 03:31
trash. but it does actually work using anemone!
import os
import subprocess
import math
# This program is severely outdated.
# The updated version can be found at github.com/oganessium/pyrespringcreatorGUI
"""begin the spaghetti"""
if os.name != 'nt':
@kayaked
kayaked / terminalbot.py
Last active July 15, 2018 01:06
TerminalBot - a bot that interprets basic terminal commands on your machine
import discord
import asyncio
from discord.ext import commands
from discord.ext.commands import Bot
import platform
from os import listdir, makedirs, utime, rename, system, remove
from os.path import isfile, join, isdir, exists, dirname, realpath
import traceback
import random
from random import randint
@kayaked
kayaked / custom-window.hta
Created January 22, 2018 22:12
Custom Window Theme with HTA
<HTA:APPLICATION ID="customheader"
applicationname="customheader"
border="dialog"
maximizebutton="no"
minimizebutton="no"
singleinstance="no"
scroll="no"
caption="no"
innerborder="no"
showintaskbar="yes"