Skip to content

Instantly share code, notes, and snippets.

View CodeAsm's full-sized avatar
🌏
Doing my coding thingies

CodeAsm CodeAsm

🌏
Doing my coding thingies
View GitHub Profile
@CodeAsm
CodeAsm / grab.py
Created July 29, 2025 13:53
a python script to pull video files like gif, webm and mp4 from a website. if it already has it, wont redownload. can use cookies to authenticate.
# movie grabber in python
# This script pulls videos from websites using cookies for authentication.
# Usage:
# 1. Have the required libraries installed:
# pip install requests beautifulsoup4
# 2. Get your cookies in a file "cookies.txt":
# cookie_name1|cookie_value1
# cookie_name2|cookie_value2
# 3. Run the script and provide the cookies.txt and website URL when prompted.
# Note1: This script is designed to work with websites that require cookies for access.
@CodeAsm
CodeAsm / RaspberryQemu.md
Last active January 9, 2025 21:05
Some quick notes on emulating or porting XNU (apples kernel) to emulated arm cpu based hardware or the raspberry pi. (not hackingtosh like x86)
@CodeAsm
CodeAsm / strace.log
Created December 21, 2024 16:14
ectool strace log
execve("src/ectool", ["src/ectool", "battery"], 0x7ffc98acd678 /* 75 vars */) = 0
brk(NULL) = 0x629287156000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=306907, ...}) = 0
mmap(NULL, 306907, PROT_READ, MAP_PRIVATE, 3, 0) = 0x781c6fe0e000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=120808, ...}) = 0
@CodeAsm
CodeAsm / minicom.cap
Created November 3, 2024 21:06
Ive captured my latest kernel build for the Playstation 1. pre0 apparantly. I think Im getting somewhere, still no BU formatter tho.
Loading R[23]00 MMU routines.
CPU revision is: 00000002
Primary instruction cache 4kb, linesize 4 bytes
Primary data cache 1kb, linesize 4 bytes
Linux version 2.4.0.0pre0 (codeasm@framework) (gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)) #1 Sun Nov 3 09:35:52 PM CET 2024
Determined physical RAM map:
memory: 00200000 @ 00000000 (usable)
On node 0 totalpages: 512
zone(0): 512 pages.
zone(1): 0 pages.
@CodeAsm
CodeAsm / linux_ps2.md
Created August 14, 2024 12:01 — forked from ABelliqueux/linux_ps2.md
How to install Linux on the Playstation 2

Adapted to gist from https://unix.stackexchange.com/questions/344225/how-to-install-linux-on-the-playstation-2
Credits to Alison E.E.

Preambule

Looking to learn about game development? Are you a Linux enthusiast looking to test the claim that "Linux runs on everything"? Perhaps you are a software developer who is looking to release for multiple architectures, and you don't have another MIPS Little Endian machine on-hand for testing your programme. Whatever your situation there are a surprising number of reasons to install Linux on a Playstation 2, even sixteen years after it's release (boy do I feel old all of a sudden.), yet an equally surprising lack of documentation about it or how to install it.

Now don't get me wrong, if you want to use the original Sony Linux Kit, or one of it's updated open source releases on a fat PS2 with a network adapter and an IDE hard disk you can find plenty of info. However th

@CodeAsm
CodeAsm / VisualStudioCode.png
Last active May 23, 2024 12:19 — forked from CocoaCaa/vscode-sawaratsuki-logo.css
Visual Studio Code with @sawaratsuki1004's custom logo
VisualStudioCode.png
@CodeAsm
CodeAsm / unpackxip.md
Last active July 3, 2025 21:06 — forked from phracker/unpackxip.md
Unpack XIP on Linux

Unpacking XIP files on Linux:

  1. Install xar from https://mackyle.github.io/xar/ or install from AUR: yay -S xar pbzx (skip step 2 now)
  2. Install pbzx from https://github.com/NiklasRosenstein/pbzx (use gcc -llzma -lxar -I /usr/local/include pbzx.c -o pbzx and copy the binary into your PATH)
  3. use xar -xf XIP_FILE -C /path/to/extract/to
  4. Change to the directory where you extracted the file.
  5. Use pbzx -n Content | cpio -i to extract the contents.
@CodeAsm
CodeAsm / windows11_manuallyInstalled.md
Last active August 12, 2025 11:12
Windows 11 Install manually
@CodeAsm
CodeAsm / build_cross_gcc.sh
Last active October 16, 2022 20:42 — forked from stahta01/build_cross_gcc.sh
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.
@CodeAsm
CodeAsm / hva.8021x
Last active September 19, 2022 09:00 — forked from Moelf/eduroam.8021x
Hogeschool van Amsterdam Secure and eduroam config for iwd/iwctl
[Security]
EAP-Method=PEAP
EAP-Identity=anonymous@hva.nl
EAP-PEAP-CACert=/var/lib/iwd/usertrustrsaca.cer
EAP-PEAP-Phase2-ServerDomainMask=radius.hva.nl
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=[HVA ID]@hva.nl
EAP-PEAP-Phase2-Password=[password]
[Settings]