HNHacker News
TopNewBestAskShowJobs

alexdme

46 karma · joined April 3, 2012

submissionscomments
alexdme··on Git-Annex
I also used to use git-annex on my photos, ended up getting frustrated with how slow it was and wrote aegis[1] to solve my use case.

I wrote a bit about why in the readme (see archiving vs backup). In my opinion, syncing, snapshots, and backup tools like restic are great but fundamentally solve a different problem from what I want out of an archive tool like aegis, git-annex, or boar[2].

I want my backups to be automatic and transparent, for that restic is a great tool. But for my photos, my important documents and other immutable data, I want to manually accept or reject any change that happens to them, since I might not always notice when something changes. For example if I fat finger an rm, or a bug in a program overrides something and I don't notice.

[1]: https://git.sr.ht/~alexdavid/aegis

[2]: https://github.com/mekberg/boar

alexdme··on Taking the Language Server Protocol one step further
Thanks for the link! Yeah editorconfig is definitely a move in the right direction, but there are still the problem with LSP mentioned in the blog post which editorconfig does not address - Many language servers take in project-specific configuration for the language server itself and at the moment this is not standardized anywhere to declare it in a generic way.
alexdme··on Keyboard shortcuts for GNU Readline
In this file `~` is meta (option key on macs). Not sure why it's not escape like it is in emacs.
alexdme··on Keyboard shortcuts for GNU Readline
Ugh this destroyed my productivity too for a while. I even wrote an entire blog post about my woes and different experiments to get back to getting consistent shortcuts across terminal and GUI apps here: https://alexdav.id/2020/07/12/text-manipulation-and-modifier.... GTK key themes didn't end up working out for me, and I ended up with a custom QMK solution, but it's not great.

Note for people still using macos, you can enable many more readline shortcuts by creating a special file at ~/Library/KeyBindings/DefaultKeyBinding.dict. I made a repo that simplifies the process to just a single git clone when setting up a new machine: https://github.com/alexdavid/keybindings

alexdme··on Show HN: git-peek – git repo to local editor instantly
Good points. For the record I wasn't trying to say that github1s is "ruining free computing", I was trying to convey the opposite. More diversity is good.

If this had been published first, and github1s came along afterward to make it easier for users who don't set $EDITOR I'd be just as happy that it makes development more inclusive for all, not matter what the tools one prefers.

I'd love to see a mercurial version as well :)

alexdme··on Linux touchpad like a Mac update: Firefox gesture support live in nightly
Apple's touchpad works natively out of the box on Linux and has for many years. I use a magic touchpad 2 on Archlinux for my daily driver.
alexdme··on Show HN: git-peek – git repo to local editor instantly
I like that this doesn't assume what editor and git remote someone uses unlike github1s which is further pushing the development community toward centralizing on Github+VScode. Diversity is good.

You inspired me to write my own. Here is a 9-line shell script version of git-peak: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe...

It doesn't do any fancy tarball magic for Github links, but the shallow clone works fast enough for me - sub 3s on modestly sized repos (especially on non-github repos since github is fairly slow to clone/push/pull).

alexdme··on Chromium blacklists Nouveau
There is an easy fix for this: Set layers.acceleration.force-enabled: true in about:config.

I believe this is because Firefox assumes it's the responsibility of the compositor you are running to properly vsync, but if you're not running a compositor you can turn on this option.

alexdme··on Show HN: PairForce – Collaborative Cloud IDE and Terminal Powered by Docker
After logging in you should be able to spin up a session in less than a second by clicking "quickstart". After that, you can share the URL with anyone you want to have join the session and they can watch and collaborate in your session without needing to create an account.
alexdme··on Show HN: PairForce – Collaborative Cloud IDE and Terminal Powered by Docker
The containers are powered by docker, and all of our pre-built docker images come with git pre-installed. You have root on the machines so you can use a package manager to install any packages you feel are missing (the pre-built docker images are ubuntu so you could run `sudo apt-get install subversion` for instance).

Since we're not opinionated you should be able to pull/push from any git server.

alexdme··on Show HN: PairForce – Collaborative Cloud IDE and Terminal Powered by Docker
The IDE is powered by ACE editor, but you have a terminal that is 100% capable of running emacs / vim, but since the terminals are shared you can't have multiple cursors like you can in the editor.

But you can also enable vim mode from the editor settings if that's your jam.

alexdme··on Show HN: PairForce – Collaborative Cloud IDE and Terminal Powered by Docker
PairForce was initially created because I wanted to give test driven development interviews for remote candidates, but I quickly started using my prototype for mentoring junior engineers and pair programming. I was frustrated with existing tools because they were either slow (screenshare), restrictive (all users had to have accounts), or limited (no terminal).

I hope you find it as useful as I have. As a thank you for trying out Pairforce, get 6 months free with promocode “hackernews”.

alexdme··on Use Vim Inside a Unix Pipe Like Sed or AWK
And further shorten that to

echo '<h1>Change Me</h1>' | vimify 'norm citOK I Will'