Skip to content

Instantly share code, notes, and snippets.

View ronmurphy's full-sized avatar

Ron Murphy ronmurphy

  • Planet E(a/r)th
View GitHub Profile
@ronmurphy
ronmurphy / code-assistant.js
Created September 19, 2025 19:58
test file for ai development
// Enhanced Code Assistant with JS Execution + Template Loading
// Preserves ALL original functionality + adds new features
class NebulaCodeAssistant {
constructor() {
this.windowId = null;
this.monacoEditor = null;
this.currentLanguage = 'javascript';
this.currentAIService = 'lmstudio'; // Default to LM Studio
this.webview = null;
this.savedProjects = [];
<html lang="en"><head><div style="display: none;"></div>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Code Editor</title>
<meta name="description" content="A powerful web-based code editor with syntax highlighting, minimap, and file management capabilities">
<!-- CodeMirror CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/monokai.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/material.min.css">
<html lang="en"><head><div style="display: none;"></div>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Code Editor</title>
<meta name="description" content="A powerful web-based code editor with syntax highlighting, minimap, and file management capabilities">
<!-- CodeMirror CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/monokai.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/material.min.css">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Music Player</title>
<meta name="description" content="A sleek, responsive web-based music player supporting various audio formats with visualization">
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.3/howler.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsmediatags/3.9.5/jsmediatags.min.js"></script>
<script type="module" src="https://unpkg.com/id3js@^2/lib/id3.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
test
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>D&D 5e Sheet Designer</title>
<meta name="description" content="Create and customize your own D&D 5e character sheet layout with draggable elements.">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
@ronmurphy
ronmurphy / disable-copilot. reg
Created February 17, 2024 15:24
Disables Windows Co-Pilot registration entry
Windows Registry Editor Version 5.00
; Disable Copilot button on taskbar
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowCopilotButton"=dword:00000000
; Disable Copilot service for current user
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsCopilot]
"TurnOffWindowsCopilot"=dword:00000001
@ronmurphy
ronmurphy / uBO-noFB_Twitter-ads.txt
Created April 11, 2022 13:10
uBO No FB, Twitter ads, some YT restrictions
! Facebook
! FB Sponsored posts - language-neutral solution / TEST version (dot selection) / Remove the `:style()` ending if no false positives found.
facebook.com##[role="feed"] span[id] a[href="#"]:not(:has-text(/(\s|\d|^$)/)):upward([role="feed"]>div):style(border: 8px dotted yellow !important)
! The 2 lines below are supplementary to the one above, but might be needed to make it work:
facebook.com##[role="feed"] span[id] a[href="#"] :matches-css(display: none):remove()
facebook.com##[role="feed"] span[id] a[href="#"] :matches-css(position: absolute):remove()
! The "Paid for by" type of sponsored post:
@ronmurphy
ronmurphy / rotate-screen.sh
Created March 13, 2020 15:13 — forked from rubo77/rotate-screen.sh
This script rotates the screen and touchscreen input, disables or enbles the touchpad, and dis- or enables the virtual keyboard on a Lenovo Yoga 13 or Yoga 2 Pro (source: http://askubuntu.com/q/405628/34298)
#!/bin/bash
# This script rotates the screen and touchscreen input 90 degrees each time it is called,
# also disables the touchpad, and enables the virtual keyboard accordingly
# by Ruben Barkow: https://gist.github.com/rubo77/daa262e0229f6e398766
#### configuration
# find your Touchscreen and Touchpad device with `xinput`
TouchscreenDevice='ELAN Touchscreen'
TouchpadDevice='SynPS/2 Synaptics TouchPad'
@ronmurphy
ronmurphy / dmg2usb.sh
Created November 25, 2019 19:04
turn apple dmg to usb bootable drives
echo 'img: ' $1
echo 'dest: ' $2
echo "Do you wish to write this Apple DMG disk image to USB? [Yes/No]"
select yn in "Yes" "No"; do
case $yn in
Yes ) echo 'y>'; sudo dmg2img -v -i $1 -o $2; break;;
No ) echo 'n>'; exit;;
esac
done