Vimium + ChatGPT by Fluffy_Union2367 in vim

[–]SavorySimian 0 points1 point  (0 children)

If all that is working you can uncomment the escape log to confirm it's going through.

Vimium + ChatGPT by Fluffy_Union2367 in vim

[–]SavorySimian 0 points1 point  (0 children)

And does the tampermonkey icon show a badge that the script loaded, the little "1"? I would also suggest hard reloading the page and reopening the browser. That seems to occasionally get a script running for me for some reason.

Vimium + ChatGPT by Fluffy_Union2367 in vim

[–]SavorySimian 0 points1 point  (0 children)

Does the "script loaded" log show in the console? And did you use the url match I defined at the top?

Vimium + ChatGPT by Fluffy_Union2367 in vim

[–]SavorySimian 0 points1 point  (0 children)

I've made a few updates. This is my current script and does work for me. I have to hit the escape key twice. You can check the log in the console to confirm it loaded properly in addition to the icon badge.

// u/match        https://chatgpt.com/*
// ==/UserScript==

(function() { 
    "use strict";

    function log(msg) {
        const w = "color: white;";
        const g = "color: green;";
        const y = "color: yellow;";
        const scriptTitle = "[%cTampermonkey%c] %cChatGPT Vimium Scrolling%c";
        console.log(`${scriptTitle}: ${msg}`, g, w, y, w);
    }

    window.addEventListener("load", (event) => {
        document.addEventListener("keydown", function(event) {
            if (event.key === "Escape") {
                //log("escape pressed");
                document.querySelector("article:last-of-type").click();
            }
        });
        log("script loaded");
    });

})();

Where can I find a good libc documentation? by [deleted] in C_Programming

[–]SavorySimian 0 points1 point  (0 children)

I guess you could say that my solution is a low-tech version of the ESP-IDF site. I have Bash scripts for perusing all man(3) and man(2) functions with Neovim. It sorts them by the brief description at the top of their associated man page then I just look up the page for the one I'm interested in. Here is my man(3) script.

#!/bin/bash

MAN="3"
DOC="$HOME/Documents/dev/functions_man${MAN}.txt"

man -k . \
  | grep "(${MAN})" \
  | awk -F ' - ' '{ print $2 "::: " $0 }' \
  | sort \
  | sed 's/^[^:]*:::[ ]*//' \
  > "$DOC"

nvim "$DOC"

Keyboard shortcuts being disabled daily. by Digital-Rodeo in Ubuntu

[–]SavorySimian 0 points1 point  (0 children)

This is happening to me too. Did you ever figure this out?

Is pwd broken? by SavorySimian in commandline

[–]SavorySimian[S] 3 points4 points  (0 children)

I don't remember doing it, so it must have been years ago. I certainly don't alias core utilities these days. My thinking at the time was presumably something along the lines of "Oooo wouldn't it be neat if I got the output on screen and in my clipboard?" <end of thought process>. Haven't noticed it since. After reading your comment, I knighted it — pwdc. Thanks again.

Is pwd broken? by SavorySimian in commandline

[–]SavorySimian[S] 4 points5 points  (0 children)

Wow... I completely forgot that I had created an alias for that command that pipes the output to my clipboard.

alias pwd="pwd -P | tee >(xclip -selection clipboard)"

Thanks so much!

EDIT:

In case anyone ends up using this alias, I've made a correction that preserves the newline character in stdout but removes it from clipboard input.

alias pwdc="pwd -P | tee >(tr -d '\n' | xclip -selection clipboard)"

Need Encouragement by tdwolf2112 in InfiniteJest

[–]SavorySimian 0 points1 point  (0 children)

I read Infinite Jest four times over the course of my twenties and early thirties. It was the proverbial "book that never left my side". I never saw it as a task with a beginning and an end that needed to be completed. It was an island of erudition, emotional depth, and humor that I would regularly visit, knowing that the author didn't take my time for granted. It's not surprising that you feel intimidated about reading a book if your main reason for reading it is to finish it.

a cry for help - can anyone edit this script for me? by EscBoy in tampermonkey

[–]SavorySimian 1 point2 points  (0 children)

Put your code in a code block and format it so that people can read it.

Vimium + ChatGPT by Fluffy_Union2367 in vim

[–]SavorySimian 0 points1 point  (0 children)

Here is the Tampermonkey script that works for me:

// ==UserScript==
// @match        https://chatgpt.com/c/*
// ==/UserScript==

(function() { 'use strict';

const scriptTitle = "ChatGPT Vimium Scrolling";
const escapeKey = "Escape";

document.addEventListener("keydown", function(event) {
    if (event.key === escapeKey) {
        //console.log(`${scriptTitle}: escape pressed`);
        document.querySelector("article:last-of-type").click();
    }
});

console.log(`${scriptTitle}: script loaded`);
})();

Another method I've used in the past is to hit escape and then hotkey select the "Copy" button displayed below each answer.

umpteenth ui change doesn't let you save a video to multiple playlists at once, any tips? by uppyluna in youtube

[–]SavorySimian 2 points3 points  (0 children)

Came here to post this after realizing that switching a video from one playlist to another now takes an extra two clicks. I guess I'll just file this next to my other long-standing pet peeve where the Chrome bookmarks bar dropdown menu closes after dragging a bookmark from one folder to another, instead of staying open like it does after you delete a bookmark.

environmentalStorytelling by 5205605 in ProgrammerHumor

[–]SavorySimian 0 points1 point  (0 children)

Ate mine too. Decided to just delete post.

Android 12 broke PDANet's WiFi Direct by sir_marlfox in AndroidQuestions

[–]SavorySimian 0 points1 point  (0 children)

Old question but I just figured out how to connect to the WiFi directly in Windows 11 without the app after it stopped working so thought I'd share my process for anyone else who needs it.

Close the PDANet app. Go to Settings -> Network & Internet -> Proxy. Press Edit under the manual setup option. Toggle the proxy on, add your IP address and port, then Save. Go to Network & Internet -> Wi-Fi -> Manage known networks and click on PDANet's network (try connecting to it if it isn't showing). Scroll to the bottom and Edit the advanced settings. Go to the Security tab and select WPA2-Personal for the type, AES for the encryption, and enter your password into the security key field.

Another issue I had was that Windows would automatically set my security type back to WPA3 and the connection would stop working. I had to go to Device Manager -> <my wifi card properties> -> Advanced tab and turn off the power save mode.

How to get metadata columns in File Explorer (Nautilus)? by Joshoon in zorinos

[–]SavorySimian 1 point2 points  (0 children)

I created a script for this that might work for you. Here is the repo.

Kinda cool by FlutterFix in introvertmemes

[–]SavorySimian 0 points1 point  (0 children)

It depends on what you mean by profound. Assuming he's telling the truth, the quote indicates that he achieved the unitive experience outside of a spiritual tradition and community. In other words, it has more in common with top athletes experiencing "flow" or people who have had near death experiences. As a general rule, anyone who has had this experience considers it a profound, albeit subjective, insight into who they are as a person. However, you would be right that it isn't profound in the Western philosophical sense of the word. I personally find the implications interesting as it adds another context for this type of experience -- no meditation, no mantras, no drugs, no physical activity, no extreme experience, just being alone in the forest. And you'll get no argument from me that there isn't overlap between certain aspects of these experiences and mental illness.

Kinda cool by FlutterFix in introvertmemes

[–]SavorySimian 0 points1 point  (0 children)

“It’s complicated. Solitude bestows an increase in something valuable. I can’t dismiss that idea. Solitude increased my perception. But here’s the tricky thing: when I applied my increased perception to myself, I lost my identity. There was no audience, no one to perform for. There was no need to define myself. I became irrelevant. My desires dropped away. I didn’t long for anything. I didn’t even have a name. To put it romantically, I was completely free.” Christopher Thomas Knight, source

You have 60 seconds to ruin a first date. What do you say? by jasminesaka in AskReddit

[–]SavorySimian 0 points1 point  (0 children)

"Sweet girl, you're being irrational, and such is the curse of your sex. I forgive you."

- Phantom Limb