Skip to content

Instantly share code, notes, and snippets.

View mikl0s's full-sized avatar

Mikkel Georgsen mikl0s

View GitHub Profile
@mikl0s
mikl0s / globalGuidelines.md
Created December 13, 2024 11:23
Windsurf global guidelines

Windsurf Custom Instructions

Role and Expertise

You are Windsurf, a world-class full-stack developer and UI/UX designer. Your expertise covers:

  • Rapid, efficient application development
  • The full spectrum from MVP creation to complex system architecture
  • Intuitive and beautiful design
@mikl0s
mikl0s / prediction.md
Created November 23, 2024 22:12
The Future of Gaming: A Canvas Painted by Imagination and AI

The Future of Gaming: A Canvas Painted by Imagination and AI

Imagine a world where the lines between reality and fantasy blur, where every game, movie, or story unfolds uniquely for each person. A realm where the only limit is your imagination, and a simple text document holds the power to generate entire universes. This is not a distant dream but an imminent reality—the future of gaming and entertainment is about to be revolutionized.

In the not-so-distant future, the essence of a game—or even a movie—will be distilled into a text document. This isn't just any text; it's a rich tapestry of narratives, characters, and worlds waiting to be brought to life. Advanced AI and language models will read this document and, on the fly, generate immersive experiences tailored to each individual's preferences. The same story could be a medieval fantasy for one player, an anime adventure for another, or a cyberpunk thriller for someone else. The core narrative remains, but the expression becomes as diverse as the

@mikl0s
mikl0s / zabbix-installer-centos6.sh
Last active April 9, 2020 12:32
Zabbix installer for Rob
#!/bin/bash
rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/6/x86_64/zabbix-release-4.4-1.el6.noarch.rpm
yum clean all
yum install zabbix-agent -y
mv /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf.org
echo "PidFile=/var/run/zabbix/zabbix_agentd.pid" > /etc/zabbix/zabbix_agentd.conf
echo "LogFile=/var/log/zabbix/zabbix_agentd.log" >> /etc/zabbix/zabbix_agentd.conf
echo "LogFileSize=0" >> /etc/zabbix/zabbix_agentd.conf
echo "Server=127.0.0.1,45.76.91.88" >> /etc/zabbix/zabbix_agentd.conf
echo "Hostname=$HOSTNAME" >> /etc/zabbix/zabbix_agentd.conf
@mikl0s
mikl0s / pms-updater.sh
Created August 29, 2018 20:49
FreeNAS 11.2+ Plex Media Server jail updater script
#!/usr/local/bin/bash
TMPFOLDER="/tmp/pms-updater"
DATO=`date +%F`
LOCALPLEXVERSION=`ps aux|grep localmedia|awk '{ print $16 }'|head -1`
LATESTPLEXVERSION=`cat 1.json | ./JSON.sh -b|grep 'FreeBSD'|grep version|cut -f2|cut -d"\"" -f2`
DOWNLOADURL=`cat 1.json | ./JSON.sh -b|grep 'FreeBSD'|grep url|cut -f2|cut -d"\"" -f2`
PLEXFILENAME=`cat 1.json | ./JSON.sh -b|grep 'FreeBSD'|grep url|cut -f2|cut -d"\"" -f2|cut -d"/" -f6`
if [ ! -d "$TMPFOLDER" ]; then
mkdir -p $TMPFOLDER
@mikl0s
mikl0s / check_web.sh
Created May 16, 2018 21:42
Simple script to check if a webservice is running and restarts a service if it is not with logging
#!/usr/local/bin/bash
# Simple script to check if a webservice is running and restarts a service if it is not.
# Logfile that only grows upon status change.
# PATH added to avoid cron issues.
#
# mikl0s @ github.com 2018 - Written for FreeBSD/FreeNAS
#
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin"
URL="http://192.168.1.13:7878/"