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
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
import Foundation
struct Movie : Codable, Hashable {
// ...
}
struct MovieResults : Codable, Hashable {
let results: [Movie]
}
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')
<?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>
@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:
@jarrodnorwell
jarrodnorwell / arm11.cpp
Created January 30, 2023 18:56
arm11 cpu stuff
enum Mode : uint32_t {
USER,
FIQ,
IRQ,
SUPERVISOR,
ABORT,
SYSTEM,
UNDEFINED
};
class MetalView : UIView {
override var layerClass: AnyClass {
return CAMetalLayer.class
}
}
let metalView = MetalView(frame: view.bounds)
view.addSubview(metalView)
let wrapper = Wrapper()
//
// MinimalRoundedTextField.swift
// AppNameHere
//
// Created by Antique on 4/7/2023.
//
import Foundation
import UIKit
import SwiftUI
struct DeIncrementView: View {
@State var value: Int = 0
var body: some View {
HStack {
Button {
value -= 1
}, label: {
@jarrodnorwell
jarrodnorwell / gumtree_locations.json
Created July 29, 2023 18:31
Response from a reverse engineered Gumtree API
This file has been truncated, but you can view the full file.
{
"children": [
{
"children": [
{
"children": [
{
"children": [
{
"children": [],