Skip to content

Instantly share code, notes, and snippets.

View carlosrogue's full-sized avatar

Carlos Rodriguez Guette carlosrogue

View GitHub Profile
@carlosrogue
carlosrogue / README.md
Last active July 9, 2024 17:51
Export RSS feed from Scala - www.noticias3d.com - with JSoup and Rome

RSS feed in Scala 3

I follow Noticias3d news since the early 2000s and I was always wanting to have a RSS feed, given there is no official support. Now finally in 2024 I got some inspiration from this old post https://foro.noticias3d.com/vbulletin/showthread.php?t=358685 and decided to just write my own using Scala 3. To execute this example you have to first install Scala CLI and you are good to go with Rss.sc:

scala-cli --watch Rss.sc

Then in a tab or from your smartphone using your machine IP (e.g. http://192.168.2.58:8080/feed):

@carlosrogue
carlosrogue / firmware.sh
Last active March 26, 2022 02:48
How to download missing the firmware files when running the update-initramfs command
#!/bin/bash
# Usage: ./firmware.sh "W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_dmcub.bin for module amdgpu"
# or, save all firmware errors in a file:
# cat missing-firmware.txt | xargs -I % ./firmware.sh %
download() {
firmware=$(echo $1 | awk '{ print $5}')
module=$(echo $firmware | awk -F/ '{ print $4 }')
bin=$(echo $firmware | awk -F/ '{ print $5 }')
#https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/amdgpu/arcturus_asd.bin
url=https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/$module/$bin
@carlosrogue
carlosrogue / gopls-eglot.el
Created November 22, 2021 10:03
Configuration of gopls using Eglot
;; ===============================================================
;; EGLOT
;; ===============================================================
(require 'project)
(defun project-find-go-module (dir)
(when-let ((root (locate-dominating-file dir "go.mod")))
(cons 'go-module root)))
(cl-defmethod project-root ((project (head go-module)))
@carlosrogue
carlosrogue / keybase.md
Created July 28, 2018 07:52
Keybase GitHub verification

Keybase proof

I hereby claim:

  • I am carlosrogue on github.
  • I am carlosrogue (https://keybase.io/carlosrogue) on keybase.
  • I have a public key ASAXj0PeKRlEll3SqIFKzu_qKgkB725_42cDXXz5dbz1-go

To claim this, I am signing this object: