Albert

Posts categorized in ‘linux’ (10)

How to list all projects in Github

Related notes How to list all projects in Gitlab, How to list all projects in BitBucket Install the github-cli with: pacaur -S github-cli Auth with: gh auth login Once configured, the magic line to list all the repos by LRU is: gh repo list -L 3000 --json nameWithOwner --jq .[].nameWithOwner

How to list all projects in BitBucket

Related notes How to list all projects in Gitlab, How to list all projects in Github Install the bbcli with: pacaur -S bbcli Auth with: bb auth login At the writing of this, the tool doesn’t seem to support oauth and bitbucket seems to be enforcing it recently. So I am abandoning this. I think I will move out of bitbucket anyway.

How to list all projects in Gitlab

Related notes How to list all projects in Github, How to list all projects in BitBucket I have tested the glab tool and apparently there should be a way to list all projects but I couldn’t do it. Maybe the arch linux package is still not updated and there is no aur package, so… I searched for an alternative and luckily there is always a python tool/module to help us out… so I installed python-gitlab-cli.

How to use tsrc to manage multiple git repositories and remotes

Related notes How to list all projects in Gitlab, How to list all projects in Github Install the package pip install --user tsrc Create the manifest repository Create a new repository named manifest Create a file manifest.yml with the following content: repos: - dest: org branch: master remotes: - name: origin url: git@github.com:<user>/<repo>.git - name: https url: https://<user>:<token>@github.com/<organization>/<repo>.git - name: nas url: ssh://<user>@<server>:<port>/<path>/<repo>.git This will create the setup for a repository that always stays in sync across all the remotes.

How to recover a GRUB bootloader on a filesystem with LUKS and LVM

Recently an upgrade on my notebook went bad and broke something. I wasn’t sure what went wrong but since I had just one system at that time, I had to figure out how to fix it with the help of my phone. Basically what I did is install EtchDroid to be able to download an iso and flash it to a …

How to manually boot/recover a system with LUKS and LVM

I have been using LVM on top of LUKS for more than 2 years without problems. However since I haven’t had the chance to troubleshoot these technologies in the past I was quite concerned of what would happen when I would have problems. Today my main computer didn’t boot up and I had to fix it manually. This post shows the steps I performed to recover my system. I use Arch Linux and I prepared a repository with my custom install method based on archinstaller.

How to publish a GPG key via DNS

Publishing keys is quite common. One nice way to do so is by using the Public Key Association (PKA) DNS record. Basically this is a record that points to a file that can be downloaded over the internet. This method is an alternative (not exclusive) to using keyservers. One of the problems of keyservers (in my opinion), is the problem of deleting old keys. I pretty much like the idea of PGP keyserver which verifies periodically by sending an email if the address is still in use and therefore maintain that uid of the key.

Resizing lvm on luks

How to manually boot/recover a system with LUKS and LVM I have been using LVM on top of LUKS for more than 2 years without problems. However since I haven’t had the chance to troubleshoot these technologies in the past I was quite concerned of what would happen when I would have problems. Today my main computer didn’t boot up and I had to fix it manually. This post shows the steps I performed to recover my system.