Skip to content

Instantly share code, notes, and snippets.

View eeriemyxi's full-sized avatar

myxi eeriemyxi

View GitHub Profile
// ==UserScript==
// @name Reddit Default to Following Feed
// @namespace myxi
// @version 2
// @description Default the Reddit home feed to "Following" instead of "For You"
// @author eeriemyxi (github)
// @license MIT
// @match *://www.reddit.com/*
// @downloadURL https://gist.github.com/eeriemyxi/210dd833bf1ca28b037de1d7d5639c37/raw/73c6e0fcf53a4132b3dd418e373140404de124de/script.user.js
// @updateURL https://gist.github.com/eeriemyxi/210dd833bf1ca28b037de1d7d5639c37/raw/73c6e0fcf53a4132b3dd418e373140404de124de/script.user.js
This file has been truncated, but you can view the full file.
// ==UserScript==
// @name AI Chat Log Exporter
// @namespace https://github.com/local/chat-log-exporter
// @version 2.5.3
// @description Export the full transcript of an AI chat — including history the page never loaded — as Markdown, JSON, or plain text, with an estimated context-window count. Supports Meta AI, DeepSeek, ChatGPT, and Gemini.
// @match https://meta.ai/*
// @match https://chat.deepseek.com/*
// @match https://chatgpt.com/*
// @match https://gemini.google.com/*
@eeriemyxi
eeriemyxi / windows-vm-on-arch-linux-and-ssh-from-host-system.md
Last active January 2, 2026 06:32
Windows 11 VM on Arch Linux and SSH'ing into it from Host Linux System

Windows 11 VM on Arch Linux and SSH'ing into it from Host Linux System

Important

This is mostly for personal notes. I skip anything that isn't personally difficult for me, which mainly includes some of the grunt steps.

This gist will document how I got a Windows 11 VM working on Arch Linux and later SSH'd into it from my host system.

The first step is to grab your Windows ISO of course. I chose Tiny11 by NT-DEV for this.

The second step is to grab virtio-win from a CDN like this one, but there are also mirrors in case that one is too slow for you. Anyway, I personally went with the stable release.

/* stylelint-disable declaration-colon-space-after, scss/dollar-variable-colon-space-after */
:root {
--background-0: #1d2021;
--background-1: #282828;
--background-2: #32302f;
--background-3: #3c3836;
--background-4: #504945;
--background-5: #665c54;
--foreground-0: #665c54;
--foreground-1: #bdae93;
@eeriemyxi
eeriemyxi / release-binaries.yml
Created October 22, 2024 18:17
Github Actions workfile to auto-generate release notes, releases, and upload binaries to the respective release.
on:
push:
tags:
- "v*"
name: Upload Binaries to Release
jobs:
build:
permissions: write-all
name: Upload Binaries to Release
runs-on: ubuntu-latest
# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
[changelog]
postprocessors = [
{ pattern = '\$REPO', replace = "{{REPO}}" }, # replace repository URL
]
# template for the changelog header
header = """
# Changelog\n

Here’s a physics unit conversion cheat sheet for common quantities. You can use this to convert between different units of measure often encountered in physics problems.


Length/Distance

  • 1 meter (m) = 100 centimeters (cm)
  • 1 meter (m) = 1000 millimeters (mm)
  • 1 kilometer (km) = 1000 meters (m)
  • 1 inch (in) = 2.54 centimeters (cm)
  • 1 foot (ft) = 12 inches (in) = 0.3048 meters (m)
@eeriemyxi
eeriemyxi / cs-prac.md
Last active September 18, 2024 13:37

Merge two sorted one-dimensional arrays into a single sorted array.

#include <iostream>
#include <vector>
using namespace std;

vector<int> mergeSortedArrays(const vector<int>& arr1, const vector<int>& arr2) {
    vector<int> result;
    int i = 0, j = 0;
    while (i < arr1.size() && j < arr2.size()) {
  1. Select all records:
    SELECT * FROM Employees;
    Output:
    ID | Name    | Age | Department | Salary
    ----------------------------------------
    1  | Alice   | 30  | HR         | 60000
    

2 | Bob | 25 | IT | 70000

@eeriemyxi
eeriemyxi / lismi-keyb-swap.py
Last active April 14, 2024 08:41
Swap keyboard layout per test: extension of Lismi (@ https://github.com/eeriemyxi/lismi) typing frontend.
import argparse
import subprocess
# https://stackoverflow.com/a/52025430/22818367
class ArgumentParserWithDefaults(argparse.ArgumentParser):
def add_argument( # type:ignore
self,
*args: object,
help: str | None = None, # noqa:A002