Luis Mario Chaparro Jáquez

Pastebin

Things I don't want to ask the internet ever again and I will absolutely never remember.

RCurl problems in Fedora [^]

Somehow installing R in Fedora by following their own documentation doesn't install a dependency for an R package called RCurl which seems to be required for the install.packages command. Install libcurl-devel to avoid headaches.

dnf install libcurl-devel

Then install RCurl, and whatever you may need to install eventually.

install.packages('RCurl', repos='https://cloud.r-project.org')

Magical key sequence to unfreeze SSH [^]

Enter + ~ + .

See also this link.

Installing LuaLS [^]

Their official documentation is quite clear but I am dumb. If it's not packed for your distro (e.g. Fedora) you may want to install it from releases.

I normally use /opt as my destination directory. There is nothing special to it, use whatever you want.
  1. Download the latest release from their repo.
  2. Create the directory lua-language-server in the destination directory:
    mkdir /opt/lua-language-server
  3. Extract the archive into the new directory:
    tar --extract --file /path/to/luals.tar.gz -av -C /opt/lua-language-server
  4. Change the owner of the directory to your own user, for instance if your user is esewey:
    chown esewey:esewey -R /opt/lua-language-server
    This is because when you run the server it creates some log files. I suspect you could change its working directory instead...
  5. Make sure to add the path to your $PATH:
    export PATH="$PATH:/opt/lua-language-server/bin"

See this Stack Overflow answer.

Using git with a different SSH id [^]

Just specify the ID on your SSH command.

GIT_SSH_COMMAND='ssh -i ~/.ssh/your_preferred_id' git (your git command)

Enabling ocamlformat on a project [^]

I guess you can just read the docs, but here it is. After adding the .ocamlformat file in the root of your project this will magically work. In my case, the ocamllsp configuration from lsp-config just works. I suppose that ocamllsp will call ocamlformat automagically if it can see a way to do it through configuration.

Anyway, just create .ocamlformat and add a minimal configuration:

profile = default
version = 0.29.0

Then you can decide to do something more advanced if you prefer.