[-] aard@kyu.de 5 points 7 months ago

In '99 my 8GB disk died, and shortage of stock gave me a 12GB disk as warranty replacement.

[-] aard@kyu.de 5 points 1 year ago

A recording of 4'33".

[-] aard@kyu.de 5 points 2 years ago

The whole reader series is just such an un-Sony thing, it's almost a miracle it survived as long as it did. You'd never expect Sony to have an easy to use device, without forcing DRM or custom software, utilizing open standards, while also being easily repairable by the user. Or if it existed you'd think it was a fluke, and will be "fixed" in the next iteration.

[-] aard@kyu.de 5 points 2 years ago* (last edited 2 years ago)

Instead of rofi I'd recommend using anyrun.

I made a quick plugin to also run stuff from path, and am currently working on a proper ssh plugin for that - extending them is a bit more involved than the simple rofi/wofi scripts, but there's a lot more things an anyrun plugin can do.

[-] aard@kyu.de 5 points 2 years ago

I've been using (or, in some cases, trying to use) that when it was brand new. Kernel side was relatively easy - but there was a lot of compiling custom versions of XFree86 trying to get acceleration working properly.

On the one hand a bit sad to see that kind of history I've experienced myself go - on the other hand, it's probably been a decade since I've last used something without KMS, and the ease of use of modern KMS drivers is way ahead of all the older stuff.

[-] aard@kyu.de 5 points 2 years ago

I assume you mean "lookup", as import doesn't really make much sense.

I'm currently using this with wofi, though I'll eventually rewrite it as anyrun plugin, which provides a bit more control:

#!/usr/bin/env python3
from argparse import ArgumentParser
import subprocess
import json
import os
 
ssh_config_file = "~/.ssh/config"
ssh_known_hosts_file = "~/.ssh/known_hosts"
 
# Returns a list of all hosts
def get_hosts():
 
    hosts = []
 
    with open(os.path.expanduser(ssh_config_file)) as f:
        content = f.readlines()
 
    for line in content:
        line = line.lstrip()
        # Ignore wildcards
        if line.startswith('Host ') and not '*' in line:
            for host in line.split()[1:]:
                hosts.append(host)
 
    # Removes duplicate entries
    hosts = sorted(set(hosts))
 
    return hosts
 
def get_known_hosts():
 
    hosts = []
 
    with open(os.path.expanduser(ssh_known_hosts_file)) as f:
        content = f.readlines()
 
    for line in content:
        line = line.lstrip()
        host_entry = line.partition(" ")[0]
        hosts.append(host_entry.partition(",")[0])
 
    # Removes duplicate entries
    hosts = sorted(set(hosts))
 
    return hosts
 
# Returns a newline seperated UFT-8 encoded string of all ssh hosts
def parse_hosts(hosts):
    return "\n".join(hosts).encode("UTF-8")
 
# Executes wofi with the given input string
def show_wofi(command, hosts):
 
    process = subprocess.Popen(command,shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE)
    ret = process.communicate(input=hosts)
    host, rest = ret
    return host
 
# Switches the focus to the given id
def ssh_to_host(host, terminal, ssh_command):
 
    if "]:" in host:
        host, port = host[1:].split("]:")
        command = "{terminal} \'{ssh_command} {host} -p {port}\'".format(terminal=terminal, ssh_command=ssh_command, host=host, port=port)
    else:
        command = "{terminal} \'{ssh_command} {host}\'".format(terminal=terminal, ssh_command=ssh_command, host=host)
 
    process = subprocess.Popen(command,shell=True)
 
# Entry point
if __name__ == "__main__":
 
    parser = ArgumentParser(description="Wofi based ssh launcher")
    parser.add_argument("terminal", help='Terminal command to use')
    parser.add_argument("--ssh-command", dest='ssh_command', default='ssh', help='ssh command to use (default=ssh)')
    parser.add_argument("--mode", dest='mode', default='known_hosts', help='where to read from (default=known_hosts)')
    parser.add_argument("--command", default='wofi -p \"SSH hosts: \" -d -i --hide-scroll', help='launcher command to use')
    args = parser.parse_args()
 
    if (args.mode == "config"):
        hosts = get_hosts()
    elif (args.mode == "known_hosts"):
        hosts = get_known_hosts()
 
    parsed_hosts = parse_hosts(hosts)
 
    selected = show_wofi(args.command, parsed_hosts)
 
    selected_host = selected.decode('utf-8').rstrip()
 
    if selected_host != "":
        ssh_to_host(selected_host, args.terminal, args.ssh_command)
[-] aard@kyu.de 5 points 2 years ago* (last edited 2 years ago)

Belkin does have a few usable things - but generally are fucking expensive. A while back they were pretty much the only option if you wanted a KVM switch which takes a PS/2 keyboard and has outgoing Sun type 5 connectors.

[-] aard@kyu.de 5 points 2 years ago

Is this the latest "sneaky" way to insist all phones need headphone jacks?

My current phone has an FM radio, and no headphone jack. It uses the headphones as antenna via the USB-C adapter.

Never used it, though - and rarely used radio in any phone which had that feature before that.

[-] aard@kyu.de 5 points 2 years ago

I think quite a few countries would see "kicking you out whilst battling cancer" as a human rights violation, and would only kick you out after your treatments.

I was searching for some precedent there - which brought up Bush eliminating cancer treatments for illegal immigrants in 2007. It's impressive that this war criminal can still disgust me even further.

[-] aard@kyu.de 5 points 2 years ago

The interesting bit here is if and how that'll allow non-whatsapp users to be added to whatsapp group chats. 1:1 communication already works outside of whatsapp (worst case via SMS), but they control those group chats.

[-] aard@kyu.de 5 points 2 years ago

I'm currently bringing her to that specific hobby as it's a bit further away than the area she's usually roaming around in, and she needs to cross one major road (connection to the highway) to get there - but I guess in a year or two she'll be able to do that by herself.

She sometimes gets brought to school in the morning as it's the same building her brother is in for daycare - but if she starts at a different time than him she can get there by herself, and of course she comes back by herself when it finishes. She's also not required to take the direct way home - or could even decide to go home with friends, as long as she calls us if she's coming unexpectedly late.

view more: ‹ prev next ›

aard

joined 2 years ago