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
# /etc/debian_installer
d-i debian-installer/language string en
d-i debian-installer/country string US
d-i debian-installer/locale string en_US.UTF-8
d-i localechooser/languagelist select en
d-i localechooser/supported-locales multiselect en_US.UTF-8 UTF-8
d-i console-setup/ask_detect boolean false
d-i console-setup/modelcode string pc105
d-i console-setup/variant USA
d-i console-setup/layout USA
@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
@john-clark
john-clark / raa.wsf
Created October 25, 2013 14:48
wip to automate remote assistance
<job id="Partially works">
'filename raa.wsf
<script language="VBScript">
'setup
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
Set oShell = createobject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objHTTP = CreateObject("Microsoft.XMLHTTP")
@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 / OutlookContacts2CiscoJabberXML.hta
Created February 24, 2017 16:59
Export Outlook Contacts to Cisco Jabber XML file
<html>
<head>
<title>OutlookContacts2CiscoJabberXML.hta</title>
<hta:application scroll="no" windowState="normal">
</head>
<script language="VBScript">
sub Window_onLoad()
Window.resizeTo 550, 850
crlf = chr(13) & chr(10)
@john-clark
john-clark / keycloak-install.md
Created November 5, 2022 15:08
keycloak on debian

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

cscript wincomputerinfo.vbs
#!/bin/bash
if [ ! $(whoami) = 'root' ]; then
echo "This script should be run as root." > /dev/stderr
exit 1
fi
#set vars
ip=`ifconfig | awk '/inet / {print $2}' | grep -v 127.0.0.1`
rname=`nslookup $ip | grep name | cut -d' ' -f 3`
subdomain=`echo $rname | cut -d. -f 2`
domain=`echo $rname | cut -d. -f 3`.`echo $rname | cut -d. -f 4`