Skip to content

Instantly share code, notes, and snippets.

View jarrodnorwell's full-sized avatar
🏠
Working from home

Jarrod Norwell jarrodnorwell

🏠
Working from home
View GitHub Profile
@jarrodnorwell
jarrodnorwell / arm11.cpp
Created January 30, 2023 18:56
arm11 cpu stuff
enum Mode : uint32_t {
USER,
FIQ,
IRQ,
SUPERVISOR,
ABORT,
SYSTEM,
UNDEFINED
};
@jarrodnorwell
jarrodnorwell / sho_decomp.py
Last active December 23, 2022 14:55 — forked from ifahadone/decompile-pyc-dir-recursively.py
Decompile compiled Python files preserving directory structure.
from argparse import ArgumentParser
from glob import glob
from os import mkdir, path, sep, walk
from subprocess import call
from sys import version_info
PY_EXT = 'py'
PYC_EXT = 'pyc'
class Colors:
<?xml version="1.0" encoding="UTF-8"?>
<FileZilla3 version="3.61.0" platform="windows">
<Servers>
<Server>
<Host>us1.storj.io</Host>
<Port>7777</Port>
<Protocol>21</Protocol>
<User />
<Pass encoding="base64">MTR5TDZvTmhrUlZIbmhuMWRtcHg5WWJocFNSWTdpWG9HcXF4ekFKMjdQc2VWOTN5VjdlbTZ1dFFzakczNzF2N0x2NmZXWmNNZWJQcmhxM1pFdHVrcDdOVExzYUF6Qmo2TWQxUmhERzZkUzZzd0FWS3daZVBnMlpQSEpzcDl5U3ZwcVMyMTk4QW1wRDJ2TmJtUlJ2M3Z6Yno3cXVyZnlnVENTMkJNTWhpSDVlRUVtMVlqS0s2RVExYTJocUVmbnBTdTk5cEpjQmVMWmRTdVh4NnVOYzc5TWtveVdiMzlvVmNYM0xYSzlOandYSkVud2t2UVBETjhHUW94cUgxM2gzektCa3FjaDlqSGUzcVF2cG8xaw==</Pass>
<Logontype>1</Logontype>
from bs4 import BeautifulSoup
import json, os, requests
def device() -> dict:
response = requests.get('https://www.myfakeinfo.com/mobile/get-android-device-information.php')
soup = BeautifulSoup(response.text, 'html.parser')
container = soup.find('div', class_='container')
rows = container.find_all('div', class_='row')
import Foundation
struct Movie : Codable, Hashable {
// ...
}
struct MovieResults : Codable, Hashable {
let results: [Movie]
}
import Foundation
/*
WHY YOURS WASN'T WORKING
Line 320: Your URL is incorrect, it's missing the search in /1.0[/search/]setlists
Line 332: Setlist is not what is returned by the response (more below)
You can see that the response is the root dict and *setlist* is actually a key/value within.
- response
- setlist