User:Fsomers

From Koha Wiki
Jump to navigation Jump to search

About me

Developer/support at Biblibre, France.

Member of the community since 2010.

I have been release maintainer of many versions. Currently 23.11.

Contact me on chat @fridobox or <fridolin dot somers at biblibre dot com>.

My script for RMaint

This script lists the commits grouped by bug. This allows for example to see late follow-ups.

For example on RMaint on 23.11.x :

  1. Go to branch 24.05.x
  2. Create a tag "HERE" on v24.05.00
  3. Wait for pushes on 24.05.x
  4. Run script
  5. Go to 23.11.x and backport bugs
  6. When finished go to 24.05.x and move tag : 'tag -f HERE HEAD'
#!/bin/bash

all_commits=$(git log --reverse --oneline --no-decorate HEAD...HERE)
all_bugs=$(git log --reverse --format=%s --no-decorate HEAD...HERE | awk -F ':' '{print $1}' | tr ' ' '@')
allready_bugs=''

for i in $(echo "$all_bugs")
do
    i="$(echo $i | tr '@' ' ')"
    if [[ $(echo "$i" | grep -i '^bug ') ]]
    then
        bugnum="$(echo $i | awk '{print $2}')"
        if [[ ! $(echo "$allready_bugs" | grep "$bugnum" ) ]]
        then
            echo "=== bz $bugnum ==="
            echo "$all_commits" | grep "$i"
            echo -n " > git cps "
            echo "$all_commits" | grep "$i" | awk '{print $1}' | paste -s -d ' '
            echo ""
        fi
        allready_bugs="$allready_bugs $bugnum"
    else
        echo "=== special ==="
        echo "$all_commits" | grep "$i"
        echo ""
    fi
done

My CSS for chat.koha-community.org

I use Firefox with Stylus plugin to change display (a lot).

/* More compact */
body .post .post__img .Avatar.Avatar-md,
body .post .post__img .icon svg {
    width: 24px;
    min-width: 24px;
    height: 24px;
}

body .post .post__img {
  width: 40px;
}

body .post,
body .post.same--root.same--user {
    padding-top: 0px;
    padding-left: 0px;
}

/* Force message font size */
body .post .post-message__text p {
    font-size: 16px;
}

/* Move message from nick */
body .post .post__body {
    padding-left: 2em;
}

/* Color each two lines */
body div[role="listitem"]:nth-child(odd) {
    background-color: #f4f4f4;
}

/* Linked messages */
body .post.same--root.same--user .post-message__text > p::before {
    content: "\\_ ";
    color: lightgrey;
}

/* User nick */
body .post .post__header .col__name,
body .post .post-preview__header .col__name {
  font-style: italic;
}

/* Hide typing line */
body .post-create__container .msg-typing {
    display: none;
}