Skip to content

Instantly share code, notes, and snippets.

View 5HT's full-sized avatar
🌐
STOP KILLING UKRAINIANS ⟶

Максим Сохацький 5HT

🌐
STOP KILLING UKRAINIANS ⟶
View GitHub Profile
@5HT
5HT / linux_ps2.md
Created April 18, 2024 05:52 — 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

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:plink="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:soap12env="http://www.w3.org/2003/05/soap-envelope" xmlns:tns="NotificationDistributionStatus" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:wsdlsoap11="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdlsoap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:xroad="http://x-road.eu/xsd/xroad.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Application" targetNamespace="NotificationDistributionStatus">
<wsdl:types>
<xs:schema elementFormDefault="qualified" tar
> HL7.showCodeSystem "Religion2"
{"Religion2", :ok, "v2-0006", "http://terminology.hl7.org/CodeSystem/v2-0006",
[
{1, "527", :A, "Atheist"},
{1, "528", :B, "Baptist"},
{1, "529", :C, "Catholic"},
{1, "530", :E, "Episcopalian"},
{1, "531", :J, "Judaism"},
{1, "532", :L, "Lutheran"},
{1, "533", :M, "Church of Latter Day Saints (Mormon)"},
@5HT
5HT / edit.k
Created November 23, 2023 21:41
c::a$"\n" / cuts
b::0,1+c / begins
d::(#c),|/-':b / dims
i::x,j-b x:b'j / x y
j::*|k / insertion(from interval k)
s::i&s|i-w-2 / scroll
f:"" / findstring
g::a$f / find intervals
J:{c[x]&y+b x} / j from x y
@5HT
5HT / glx.c
Created November 19, 2023 04:00
Pure Windows X System, Xlib, GLX (Similar to Pure Win32 and Pure Cocoa/NeXT)
#include<stdio.h>
#include<stdlib.h>
#include<X11/X.h>
#include<X11/Xlib.h>
#include<GL/gl.h>
#include<GL/glx.h>
#include<GL/glu.h>
Display *dpy;
@5HT
5HT / 1_smime-clients.md
Created July 5, 2023 20:21 — forked from rmoriz/1_smime-clients.md
S/MIME is the industry standard for secure E-Mail and build into every relevant mail client. From Outlook to Thunderbird, from Blackberry to Apple Mail on OSX and iOS. http://smime.io/
@5HT
5HT / KDF.js
Last active July 5, 2023 15:14
const EMPTY_BUFFER = new ArrayBuffer(0);
console.log("OK");
const key = new Uint8Array([0, 23, 75, 69, 228, 151, 69, 27, 32, 251, 44, 195, 58, 217, 225, 184, 169, 242, 86, 179, 98, 202, 182, 149, 194, 58, 0, 63, 18, 87, 112, 173]).buffer;
const keyLen = 256;
const info = new Uint8Array([48, 89, 48, 11, 6, 9, 96, 134, 72, 1, 101, 3, 4, 1, 45, 160, 66, 4, 64, 223, 26, 197, 93, 44, 41, 6, 2, 221, 131, 15, 3, 178, 246, 255, 171, 206, 252, 81, 162, 246, 68, 56, 165, 0, 140, 202, 2, 197, 115, 90, 94, 50, 142, 83, 129, 17, 198, 186, 108, 44, 206, 149, 11, 121, 229, 163, 32, 246, 65, 16, 92, 91, 104, 245, 32, 88, 223, 70, 116, 34, 53, 178, 249, 162, 6, 4, 4, 0, 0, 1, 0]).buffer;
const hash = "SHA-512";
async function run() {
main(_) ->
try
start()
catch
ErrT:Err ->
io:format("[ERROR] ~p : ~p~n", [ErrT, Err]),
usage()
end;
main(_) ->
usage().
// TV Moire Pattern Effect
// by rinf 2014.
//
// Simulates a TV screen consisting of RGB pixels and a camera filming the screen,
// which creates a nice Moire pattern.
//
// Use fullscreen mode for best experience
//
// Press 'x' to toggle effect on and off
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted