home.social

Search

26 results for “chmouel”

  1. I have released a small tool for Linux/Wayland to let you zoom the current screen and annotate it and have a few other features to make it easy when presenting. It's called shmooz and available on AUR and github github.com/chmouel/shmooz

    #linux #wayland #sway #hyprland #kde #gnome

  2. I have released a small tool for Linux/Wayland to let you zoom the current screen and annotate it and have a few other features to make it easy when presenting. It's called shmooz and available on AUR and github github.com/chmouel/shmooz

  3. I have released a small tool for Linux/Wayland to let you zoom the current screen and annotate it and have a few other features to make it easy when presenting. It's called shmooz and available on AUR and github github.com/chmouel/shmooz

    #linux #wayland #sway #hyprland #kde #gnome

  4. I have released a small tool for Linux/Wayland to let you zoom the current screen and annotate it and have a few other features to make it easy when presenting. It's called shmooz and available on AUR and github github.com/chmouel/shmooz

    #linux #wayland #sway #hyprland #kde #gnome

  5. I have released a small tool for Linux/Wayland to let you zoom the current screen and annotate it and have a few other features to make it easy when presenting. It's called shmooz and available on AUR and github github.com/chmouel/shmooz

    #linux #wayland #sway #hyprland #kde #gnome

  6. My most useful gptel function is this one:

    gitlab.com/chmouel/emacs-confi

    and to register:

    gitlab.com/chmouel/emacs-confi

    My workflow is:

    - selecting some code in one window
    - Popup a new LLM window and ask about it (or better use a yasnippet snip for that) like this:

    optimize code and fix bugs

    it will know to grab the highlighted code from the other window and act on it

    I have a bunch of other configuration for gptel, i probably should do a proper blog post about it.

  7. I've developed a Git branch switcher/viewer tool to make it easier when working with multiple branches, making it easier to
    switch between them and ensure they are pushed and synchronized.

    github.com/chmouel/git-branches

    (usually end up with or when it gets complicated)

  8. How to use kitty to "edit" the output of the last command in $EDITOR or copy it to the clipboard:

    map kitty_mod+a>e launch --type=overlay --stdin-source=@last_cmd_output zsh -ic 'nvim -R </dev/stdin'
    map kitty_mod+a>v launch --type=overlay --stdin-source=@last_cmd_output zsh -ic 'wl-copy/pbcopy </dev/stdin'

    (kitty_mod mean Control+Shift)

    this is for vim/neovim but use emacsclient -nw for emacs or whatever else rock your boat

  9. Choosing a LLM model in gptel directly without having to go via the transient menu.... This has been bugging me for a while, since i don't think i am a fan of transient menu. I have a listed a potential solution in this issue

    github.com/karthink/gptel/issu

  10. Running uv and pre-commit in a container (like on github actions), it looks simple but yet it took me many iterations to get there (i am sure someone may mentions a better way)

    python3 -mpip install -U uv
    uv sync
    export PATH="$PATH:$(pwd)/.venv/bin"
    uv add pre-commit ruff pylint
    .venv/bin/pre-commit run -a

  11. quick reminder to myself on how to run a uv project with via

    [Unit]
    Description=Python Bot

    [Service]
    ExecStart=direnv exec . uv run main.py
    WorkingDirectory=/home/user/project
    Restart=always

    [Install]
    WantedBy=default.target

  12. Because I always forget, here's how to easily decode a kubectl secret with jq (I think there's a built-in way to do this, but life's too short to figure it out).

    kubectl get secret secret -o json | jq -r '.data | to_entries[] | "\(.key): \(.value | @base64d)"'

  13. I like to switch from my terminal to magit or dired in my emacs

    I have a made a zsh function that works to launch a function in emacs and focus it:

    function _emacs_action() {
    emacsclient -u --eval "($1)"
    (( $+commands[osascript] )) && osascript -e "tell application \"Emacs\" to activate"
    (( $+commands[swaymsg] )) && swaymsg '[app_id="emacs"] focus'
    }

    and use it like this:

    alias magit="_emacs_action magit"
    alias dired="_emacs_action dired-jump"

  14. while trying ollama on my minipc with amdgpu on archlinux, i had this error:

    amdgpu is not supported (supported types:[gfx1010 gfx1012 gfx1030 gfx1100 gfx1101 gfx1102 gfx900 gfx906 gfx908 gfx90a gfx940 gfx941 gfx942])" gpu_type=gfx1103

    since according to github.com/ollama/ollama/issue it is working with a env ovveride, I simply had to:

    systemctl edit ollama

    and add:

    [Service]
    Environment=HSA_OVERRIDE_GFX_VERSION=11.0.2

  15. Getting kubebuilder Makefile to build and deploy using ko

    change IMG variable at the top to:

    IMG ?= ko://go.app.domain/cmd

    and add a target

    .PHONY: deploy-local
    deploy-local: manifests kustomize
    env KO_DOCKER_REPO=localhost:5000 KUBECONFIG=${HOME}/.kube/config.kind make deploy

    this deploy to a local registry and using a kubeconfig that is deployed for kind but customize thing as you wish there

  16. I have just sent a email to devel list (to request a new package inclusion on nongnu-elpa) and i have checked the last time i have sent an email to that list was 20 years ago in 2003 😅 :

    lists.gnu.org/archive/html/ema

  17. I was trying to use and on after a long time not launching them and could not figure out why the mode (vsnvim and ideavim) would not working since the key repeat mode was enabled (the intl chars menu showing on long press of a key).

    Solution came from a old vscode issue here:

    github.com/microsoft/vscode/is

    in short make sure to delete the key first and then do the specific override for each apps.

    no idea why and (ie: using ) just worked

  18. I enjoy using @atuin to sync my computers history but i am not sure why i don't quite get the interactive part (probably because of not having the full keybinding)

    but it's flexible enough to be able to use fzf with it directly:

    atuin search|fzf --with-nth=3..-2 +s

    maybe i'll extend it to make it insert via zle to my command line directly

  19. Asked for a poem about and I tought it was pretty nice

  20. ChatGPT und Co: Wir zeigen euch die wichtigsten Prompts für euren Job

    Künstliche Intelligenz ist greifbarer denn je. Sie ist dabei nicht nur nette Spielerei; Bild-KI und Chatbots bieten viel Potenzial und können Nutzer:innen ­tatsächlich auch bestimmte Aufgaben abnehmen. Dafür braucht es aber die richtigen Prompts.

    Mehr dazu in unserem Ratgeber: 👉 t3n.de/magazin/chatgpt-ki-spra #chatgpt #bard #KI #promptengineer #prompt