Skip to content

Instantly share code, notes, and snippets.

View chainq's full-sized avatar
🕹️
writeln('hello, world!');

Károly Balogh chainq

🕹️
writeln('hello, world!');
View GitHub Profile
@chainq
chainq / ssh-tunnel@.service
Created February 2, 2025 12:43
systemd service files for an SSH Reverse Proxy
# Put this into /etc/systemd/system
[Unit]
Description=Keeps a tunnel to %I open
After=network-online.target
# You can also run this as a specific user, change it below
[Service]
User=root
Environment="LOCAL_ADDR=localhost"
@chainq
chainq / wuhu-install.sh
Last active February 2, 2025 12:11 — forked from Gargaj/wuhu-install.sh
Install script for Wuhu (tested on Debian)
#!/bin/bash
# install script for http://wuhu.function.hu/
if [ "$EUID" -ne 0 ]
then
echo "[wuhu] ERROR: This script needs to install a bunch of things, so please run as root"
exit
fi
echo "[wuhu] Installing packages..."
@chainq
chainq / x68-mouse.ino
Last active February 4, 2025 14:17
X68000 to USB Mouse adapter
// Sharp X68000 to USB mouse port adapter
// by Chain-Q
//
// based on:
// Sharp X68000 to USB keyboard and mouse converter
// by Zuofu
//
// Supports true USB protocol (even through hub), so all types mice may be used.
//
// Provided free of charge and without warranty by Zuofu and Chain-Q, you may use
@chainq
chainq / nbsd_fix_bootblock.patch
Created March 25, 2023 17:27
NetBSD BootBlock Patch to boot with Hyperion's Kickstart versions
diff --git a/sys/arch/amiga/stand/bootblock/boot/console.c b/sys/arch/amiga/stand/bootblock/boot/console.c
index 08cb523adccd..5e385de0bdd2 100644
--- a/sys/arch/amiga/stand/bootblock/boot/console.c
+++ b/sys/arch/amiga/stand/bootblock/boot/console.c
@@ -138,8 +138,21 @@ consinit(void *consptr) {
goto err;
mc->cnior->buf = (void *)mc->w;
- if (OpenDevice("console.device", 0, mc->cnior, 0))
- goto err;
@chainq
chainq / nbsd_console_debug.patch
Created March 25, 2023 10:52
NetBSD Console Debug patch
diff --git a/sys/arch/amiga/stand/bootblock/boot/console.c b/sys/arch/amiga/stand/bootblock/boot/console.c
index 08cb523adccd..801be4cc5c95 100644
--- a/sys/arch/amiga/stand/bootblock/boot/console.c
+++ b/sys/arch/amiga/stand/bootblock/boot/console.c
@@ -43,6 +43,24 @@
#include "amigaio.h"
#include "libstubs.h"
+int32_t EasyRequestArgs(void *, void *, u_int32_t *, void *);
+
@chainq
chainq / viaduct-1.0-readme.txt
Created May 28, 2018 09:57
Viaduct 1.0 README
Viaduct
=======
A PCWindow replacement for CBM Bridgeboards for Amiga computers.
Why?
----
In short, I like crazy projects which don't make any sense whatsoever.
@chainq
chainq / e-uae_ovl.patch
Created February 5, 2018 11:17
MorphOS/CybergraphX overlay modulo fix for E-UAE
Index: ami-win.c
===================================================================
--- ami-win.c (revision 161)
+++ ami-win.c (working copy)
@@ -147,7 +147,6 @@
#ifdef USE_CGX_OVERLAY
int use_overlay = 0;
-UWORD * vlayer_baseaddress = NULL;
APTR VLHandle = NULL;
@chainq
chainq / get-maven.sh
Created January 12, 2018 11:33
Gets a pair of .jar/.pom files from Maven central
#!/bin/sh
HOST=https://repo.maven.apache.org/maven2/
WGET_OPTS="-N -nH -x --cut-dirs=1"
ARG=$1
if [ -z "$ARG" ]; then
echo "No arg."
exit
@chainq
chainq / monthsandseasons.pas
Last active June 1, 2017 00:29
Example about Sets, Enums and Arrays in Pascal (requires Free Pascal 2.4 or newer)
{$MODE OBJFPC}
program MonthsAndSeasons;
uses
sysutils, dateutils;
function hasArguments: boolean;
const
yesNo: array[boolean] of string = ( 'No', 'Yes' );
@chainq
chainq / init
Created May 21, 2015 12:08
My BootWithNoStartup init script for expanded Commodore Amigas, because many people requested it. I mainly use it to run demoscene stuff.
.key NOOXY/S,NOKCON/S
.bra {
.ket }
; $VER: init 40.4 (21.5.15) (c) 2003-2015 Charlie/Singular Crew
; Simple initialization script for use with BootWithNoStartup
; on expanded classic Amiga systems.
;
; This script is not generic, and you will probably have to
; customize it for your and your system's needs.