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
@mnml
mnml / build-m8c-rg35xx-splush.sh
Last active December 31, 2024 21:20
Building m8c for RG35XX Plus/H/SP on KNULLI (Scroll down for zip)
#!/bin/bash
#
# build kernel modules
#
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.170.tar.gz
tar xzf linux-4.9.170.tar.gz
cd linux-4.9.170
wget -O .config https://raw.githubusercontent.com/knulli-cfw/distribution/refs/heads/knulli-main/board/batocera/allwinner/h700/linux-sunxi64-legacy.config
@CocoaCaa
CocoaCaa / vscode-sawaratsuki-logo.css
Created April 27, 2024 15:50
Visual Studio Code with @sawaratsuki1004's custom logo
.editor-group-watermark {
max-width: 400px !important;
}
.editor-group-watermark > .letterpress {
aspect-ratio: 1920/1080 !important;
background-image:url('https://github.com/SAWARATSUKI/ServiceLogos/blob/c2cf29211b93efe48e5c34451bac5c56f979ab94/VisualStudioCode/VisualStudioCodeRound.png?raw=true') !important;
background-position: center;
}
@WinkelCode
WinkelCode / Windows Setup Excerpt.md
Last active January 14, 2025 07:36
Excerpt from my Windows installation doc

Windows Installation

Creating Partitions (gdisk)

  • (Setup-dependent) Run blkdiscard or nvme format -s [1/2] -r (followed by blkdiscard) for the disk.
  • EFI:
    • Size: 100MiB
    • Type: EF00 (EFI System Partition) (Type may be optional depending on modern UEFI firmware)
  • MSR (Microsoft Reserved):
    • Size: 16MiB
    • Type: 0C01 (Microsoft Reserved Partition)
    • Always discard/zero the MSR after creation.
@ABelliqueux
ABelliqueux / linux_ps2.md
Last active December 25, 2024 22:33
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

@markallenpark
markallenpark / paperctl
Created March 7, 2022 18:10
Send commands to paper controlled by screen
#!/bin/env python3
import os
import sys
def sendCommand(command):
os.system('/usr/bin/screen -p 0 -S paper -X stuff "' + command + '"')
def getCommand():
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active February 7, 2025 23:49
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
@akemin-dayo
akemin-dayo / qemu-screamer-build-usage-guide.md
Last active March 29, 2025 16:15
A guide to building and using the audio-enabled "Screamer" fork of PowerPC QEMU on macOS and Windows

A guide to building and using the audio-enabled "Screamer" fork of PowerPC QEMU on macOS and Windows

Karen/あけみ (Twitter, Homepage)

Last updated: 2021/10/09 (QEMU-screamer version 6.1.50)

Here's a quickly-written guide describing how to build and use mcayland's excellent "Screamer" fork of QEMU which adds working audio support to QEMU for PowerPC guests!

Yes, this means working audio in PowerPC versions of OS X, Mac OS 9, and even Linux!

This guide isn't… quite up to my quality standards yet, but I figured I'd release it in this state regardless for anyone that might benefit from it, especially since I had to figure out quite a bit of this myself due to some of the existing documentation being somewhat outdated or incorrect.

@stahta01
stahta01 / build_cross_gcc.sh
Last active October 16, 2022 20:38 — forked from preshing/build_cross_gcc
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.
@pdp7
pdp7 / MAIX Bit Linux.md
Last active September 13, 2023 02:02
MAIX Bit Linux

The prebuild linux-5.6.0-rc1 image for Maix Boards https://twitter.com/SipeedIO/status/1228594799675990016

[    0.000000] Linux version 5.6.0-rc1-g9dbcd412b (vowstar@ryzen) (gcc version 9.2.0 (Buildroot 2020.02-git-g2ceb6f4a3f)) #5 SMP Sat Feb 15 13:02:55 CST 2020
[    0.000000] earlycon: sifive0 at MMIO 0x0000000038000000 (options '')
[    0.000000] printk: bootconsole [sifive0] enabled
[    0.000000] initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000080000000-0x00000000807fffff]
@vfsoraki
vfsoraki / svgtodxf.sh
Created January 20, 2020 10:42
Convert SVG to DXF in Linux using Inkscape and pstoedit
#! /bin/bash
# Install required applications
# Ubuntu:
# apt-get install inkscape pstoedit
# Arch:
# pacman -S inkscape pstoedit
function svgToEps()
{