Skip to content

Instantly share code, notes, and snippets.

@0nelight
0nelight / Grok Conversation Overview Overlay-0.2.user.js
Last active March 20, 2025 10:09
Adds a Conversation Overview Area to Grok-AI-WebUi for easy navigation (no doomscrooling anymore)
// ==UserScript==
// @name Grok Conversation Overview Overlay
// @namespace http://tampermonkey.net/
// @version 0.31
// @description Displays a hierarchical list of prompts, answers, and code blocks with scroll and copy functionality
// @author Grok
// @match https://grok.com/*
// @grant none
// ==/UserScript==
@0nelight
0nelight / clipboard_mailto_replace.ahk
Created July 30, 2023 15:54
This script removes occurence of "mailto" when Copy/Pasting text
;Autohotkeyscript to remove "mailto:" in front of Copy/Paste
;Download https://www.autohotkey.com/
;https://www.autohotkey.com/docs/v2/lib/A_Clipboard.htm
Persistent
OnClipboardChange ClipChanged
ClipChanged(clip_type) {
result := RegExReplace(A_Clipboard,"mailto\:(.*)","$1")
@0nelight
0nelight / pywinauto_winutil.py
Last active August 9, 2023 16:14
Basic Automation of Chris Titus Winutil
# -*- coding: utf-8 -*-
#Alpha-Version - no UAC handling, no Error-Handling, no checks
#pip uninstall -y pywinauto
#This is necessary beacuse of Bug with fetching a lot of elements in the current pywinauto-Release :
#pip install https://github.com/pywinauto/pywinauto/archive/atspi.zip
#Tested with winutil commit f83ffaf0a9acd343dc7470d03d640fceade7450b
import pywinauto
from pywinauto.application import Application
import subprocess
@0nelight
0nelight / bootstrap-target-machine.ps1
Created November 16, 2022 11:00 — forked from petemounce/bootstrap-target-machine.ps1
ansible 2.8.1 windows openssh environment variables
param(
[string] $username = "tweeter",
[string] $open_ssh_version = "v7.9.0.0p1-Beta"
)
$ErrorActionPreference = 'Stop'; # stop on all errors
$log_stamp = get-date -format 'yyyyMMdd-HHmmss'
Start-Transcript -Path "$(pwd)/bootstrap.$($log_stamp).log" -IncludeInvocationHeader
# Make the administrator user
$Count = Get-Random -min 24 -max 32