Skip to content

Instantly share code, notes, and snippets.

View john-clark's full-sized avatar
🛸
Out there

John Clark john-clark

🛸
Out there
View GitHub Profile
@john-clark
john-clark / generate-debian-iso.sh
Created April 8, 2025 19:38
menu driven iso generator for debian
#!/bin/bash
# Author: John Clark
# License: MIT License
# Copyright: © 2025 John Clark
# Description:
# This script is a comprehensive tool for creating, customizing, and managing Debian ISO images.
# It provides functionality to download Debian ISO images, extract and modify them,
# create preseed configuration files, and generate new ISO images with custom settings.
# The script uses `whiptail` for an interactive menu-driven interface.
#from: https://krystof.io/mjpg-streamer-on-a-raspberry-pi-zero-w-with-a-usb-webcam-streaming-setup/
#
sudo apt-get install build-essential libjpeg-dev imagemagick libv4l-dev cmake git -y
git clone https://github.com/jacksonliam/mjpg-streamer.git
cd mjpg-streamer/mjpg-streamer-experimental
make
sudo make install
#
# installer locations:
# /usr/local/bin/mjpg_streamer – The primary binary
### Preseed configuration for Debian
# Type auto http://server/preseed.cfg at netinst grub prompt
# Locale
d-i debian-installer/language string en
d-i debian-installer/locale string en_US
d-i debian-installer/country string US
# Keyboard
d-i keyboard-configuration/xkb-keymap select us
d-i keyboard-configuration/layoutcode string us
@john-clark
john-clark / ComPort over Network.md
Created January 24, 2025 16:56 — forked from DraTeots/ComPort over Network.md
ComPort over Network
@john-clark
john-clark / setupvice.sh
Last active January 29, 2025 21:09
vice deb12
#!/bin/sh
di() {
for deb_file in "$@"; do
local package_name=$(basename "$deb_file" | cut -d'_' -f1)
if dpkg -l | grep -q "^ii $package_name "; then
echo "$package_name is already installed, skipping installation."
else
dpkg -i "$deb_file"
fi

Setup new Windows for BBS testing

Some notes on what I was testing...

Working on getting Commodore and Amiga BBS and terminals going.

Install Choco from admin powershell

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

JiffyDOS cheat sheet commands for C=64

Load/Function keys

  • SHIFT RUN/STOP Load and run 1st program on disk ( shift-esc )

  • C= RUN/STOP load last run program ( tab-esc )

  • F1 @$:* RETURN or @$ RETURN Display directory

  • F2 %D[filename] List a BASIC program from disk

# have your pi automatically log in to x and want to remotely view the screen with rdp
#
sudo apt install freerdp2-shadow-cli
cp /etc/xdg/lxsession/LXDE-pi/autostart .config/lxsession/LXDE-pi/autostart
echo @freerdp-shadow-cli -auth >>.config/lxsession/LXDE-pi/autostart
@john-clark
john-clark / turn_off_wsl_service_after_uninstall.cmd
Created June 22, 2023 16:04
After uninstalling wsl the service still starts!? Service can't be disabled via control panel. Use this to get access back to VT-x
@echo off
net.exe session 1>NUL 2>NUL || (Echo This script requires elevated rights. & Exit /b 1)
set key=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WslService
set val=Start
set new=0x0
set old=
for /F "skip=2 tokens=3" %%r in ('reg query %key% /v %val%') do set old=%%r
echo old=%old%
@echo off
net.exe session 1>NUL 2>NUL || (Echo This script requires elevated rights. & Exit /b 1)
set key=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
set val=ConsentPromptBehaviorAdmin
set new=0x0
set old=
echo 0 = Elevate without prompting
echo 1 = Prompt for credentials on the secure desktop