Skip to content

Instantly share code, notes, and snippets.

View theol-git's full-sized avatar

Theo theol-git

View GitHub Profile
// Command eval is a chromedp example demonstrating how to evaluate javascript
// and retrieve the result.
package main
import (
"context"
"log"
"time"
"github.com/chromedp/chromedp"
@theol-git
theol-git / export-chatgpt-to-markdown.js
Last active August 17, 2023 16:06
Userscript to add a button to export a Chatgpt conversation to markdown.
// ==UserScript==
// @name Export ChatGPT chat to MD
// @version 1.0
// @description Export chat to markdown format
// @author Theo Lettermann
// @match *://chat.openai.com/*
// @grant none
// @license MIT
// ==/UserScript==
@theol-git
theol-git / 99-usb-keyboard.rules
Last active October 27, 2023 12:31
Linux - associate keyboard layout to physical keyboard
ACTION=="bind", SUBSYSTEM=="usb", ATTRS{idVendor}=="YOUR_VENDOR_ID", ATTRS{idProduct}=="YOUR_PRODUCT_ID", ENV{DEVTYPE}=="usb_device", RUN+="/YOUR_HOME_DIRECTORY/.bin/usb-keyboard-in_udev.sh"
@theol-git
theol-git / lc-m.js
Last active March 5, 2024 18:15
lc-m
This file has been truncated, but you can view the full file.
/*!For license information please see monaco-71715ad93476591b508c_0.33.47.js.LICENSE.txt*/(()=>{var e,t,i={4409:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var h=[].concat(e[c]);n&&r[h[0]]||(void 0!==s&&(void 0===h[5]||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=s),i&&(h[2]?(h[1]="@media ".concat(h[2]," {").concat(h[1],"}"),h[2]=i):h[2]=i),o&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=o):h[4]="".concat(o)),t.push(h))}},t}},590:e=>{"use strict";e.exports=function(e,t){return