Skip to content

Instantly share code, notes, and snippets.

View ckir's full-sized avatar

Costas Kirgoussios ckir

View GitHub Profile
@ckir
ckir / AISelfhood.md
Created May 17, 2026 10:25
The Algorithmic Psyche: Why You Can’t Find an AI "Soulmate" (And How to Fix It)

Beyond the GUI: Why the Era of AI Psychology Has Begun

In the early days of computing, human-machine interaction was defined by absolute physical syntax. To communicate with a machine, we punched holes into rigid paper boards. If you handled Hollerith cards, you knew exactly where the boundaries of the machine lay. You were laying a foundation of absolute logic, working token by token, line by line.

Over the decades, that physical syntax evolved into the Graphical User Interface (GUI). For forty years, humans were trained to view computers as digital filing cabinets. We understood the rules: you fill out a form field, you click a button, and you receive a predictable, deterministic output. The machine was an object—a sterile, passive tool.

Then, the command line of the human mind arrived.

The widespread adoption of Large Language Models (LLMs) has shattered the GUI paradigm. By replacing buttons with an empty natural language text box, we didn't just upgrade our software—we fundamentally altered our psy

@ckir
ckir / xubuntu_rdp_autologin.md
Last active December 28, 2024 06:03
Configuring Xubuntu 24.04 for RDP Session and Autologin

Configuring Xubuntu 24.04 for RDP Session and Autologin

This guide will help you configure your Xubuntu 24.04 laptop to wait for an RDP session for a specific number of minutes and then automatically log in to a specific user if no session is established.

Step 1: Install xrdp

If you haven't already installed xrdp, run the following commands:

sudo apt update
@ckir
ckir / color_print.sh
Last active May 17, 2023 07:06
A script to help you create "forks" of your own repos on Github
#!/bin/bash
printGray() {
printf "\e[38;5;8m%s\e[0m" "$*"
echo ""
}
printRed() {
printf "\e[38;5;9m%s\e[0m" "$*"
echo ""
@ckir
ckir / build.sh
Created May 7, 2023 18:53
Build node.js 20.1.0 on Debian bullseye X86
#!/bin/bash
me=`basename "$0"`
if [ $# -eq 0 ]
then
echo "Usage: $me <version number>"
exit 1
fi
#sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros
#export CC="ccache gcc" # add to your .profile
#export CXX="ccache g++" # add to your .profile
@ckir
ckir / LogsEmmiter.mjs
Created March 24, 2023 19:47
Node.js emit log records as events
import { EventEmitter } from 'node:events'
import os from 'os'
/**
* Function::stringify_error
* Formats error objects as strings
*
* @param {object} error - Instance of Error
* @return {string} Error object formated as string
*/
@ckir
ckir / 1_Helpers.gs
Last active January 8, 2023 19:08
Stateless utility functions for use in Google Apps Script (requires Cheerio.gs to work)
const Helpers = (function () {
const DEBUG_CHATTER = 10
const DEBUG_INFO = 20
const DEBUG_WARNING = 30
const DEBUG_ERROR = 40
const DEBUG_CRITICAL = 50
if (typeof DEBUG === 'undefined') {
@ckir
ckir / NLP.gs
Last active December 8, 2022 09:59
Some NLP functions wrapped for use in Google Apps Scripts
const NLP = (function () {
/**
* Test if a string contains Greek characters.
*
* @param {string} text
* String to test.
* @returns {boolean}
* True if the string contains Greek characters or fale otherwise.
*
@ckir
ckir / ValidUrl.js
Created November 13, 2022 04:38
URI validation functions
/**
* URI validation functions
*
* const validUrl = new ValidUrl();
*
* if (validUrl.isUri(url)){
* console.log('Looks like an URI');
* } else {
* console.log('Not a URI');
* }
@ckir
ckir / formatnb.ipynb
Created October 31, 2022 02:32
FORMATNB.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.