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 / 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 September 28, 2023 22:16 — 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 / 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]
@CodeAsm
CodeAsm / mozlz4.py
Created January 25, 2022 19:42 — forked from snorey/mozlz4.py
Simple tool to decode Firefox jsonlz4, baklz4 files
#!/usr/bin/python
# Command-line tool to decompress mozLz4 files used for example by Firefox to store various kinds of session backup information.
# Works in both Python 2.7.15 and 3.6.7, as of version 2.1.6 of the LZ4 Python bindings at pypi.org/project/lz4.
# To use in another script, simply cut and paste the import statement and the mozlz4_to_text() function (lines 8 to 17).
import lz4.block # pip install lz4 --user
def mozlz4_to_text(filepath):
# Given the path to a "mozlz4", "jsonlz4", "baklz4" etc. file,
@CodeAsm
CodeAsm / How-to Arch Linux on Cubieboard 1.md
Created July 21, 2021 17:10 — forked from trixpan/How-to Arch Linux on Cubieboard 1.md
How to really Arch Linux on Cubieboard 1.... (for the Wiki entry is sort of short of some things)

Intro Notes

I wrote this guide because after getting my CubieBoard 1 I followed the Arch Linux ARM instructions and was suprised to be left with a system that albeit working, had missing RAM and no fbconsole at all.

This guide gets Arch Linux ARM into your 1GB Cubieboard 1 with the minimum functionality one would expect. It is not intended to be an all encompassing document, focusing instead on saving your time having to read through the forum to get functionality that otherwise every other Linux distribution brings out of box.

You will have to adjust these instructions if you have a 512M Cubieboard.

Step 1 - Format disk your SD Card

At a minimum, you need to create the first partition on an SD card to store the bootloader files and kernel uImage. For the root filesystem you can choose to use either a second partition on the SD card, USB or SATA. This guide however only covers SD. Replace instances of /dev/mmcblkX with the appropriate device name registered on your system.

@CodeAsm
CodeAsm / bootlog.txt
Created July 13, 2021 13:16 — forked from anonymous/bootlog.txt
ubee DDW3611 bootlog
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2017.03.17 21:30:14 =~=~=~=~=~=~=~=~=~=~=~=
BCM338031 TP0
1
Sync:1
346890
MemSize: 64 M
BootLoader Version: 10.1.2 Release Gnu spiboot reduced DDR drive
Build Date: Dec 23 2009
@CodeAsm
CodeAsm / KDEPlasma_depgraph_req.dot
Last active November 1, 2021 14:44 — forked from emarsk/xorg_depgraph.dot
Xorg graphviz dependency graph, as in BLFS book. To generate the image: "dot -Tpng xorg_depgraph.dot >xorg_depgraph.png".
// KDE Plasma 5 dependency graph (dot)
// BLFS 10.0
// Required only
//
// style=solid : required
// style=solid arrowhead=dot color=grey : required at runtime
strict digraph xorg {
label="KDE Plasma 5 dependencies
required only, BLFS 10.0
@CodeAsm
CodeAsm / glUtils.js
Created November 23, 2015 11:16 — forked from zdxerr/glUtils.js
Small webgl example
// augment Sylvester some
Matrix.Translation = function (v)
{
if (v.elements.length == 2) {
var r = Matrix.I(3);
r.elements[2][0] = v.elements[0];
r.elements[2][1] = v.elements[1];
return r;
}