<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.alma.ch/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.alma.ch/feed.php">
        <title>Alma wiki</title>
        <description></description>
        <link>https://wiki.alma.ch/</link>
        <image rdf:resource="https://wiki.alma.ch/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-18T08:55:23+0200</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=aliases&amp;rev=1717622761&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=avid&amp;rev=1623495485&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=bash_history&amp;rev=1568807256&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=centos&amp;rev=1657123128&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=certbot&amp;rev=1670930797&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=characters_filenames&amp;rev=1592687680&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=clonezilla&amp;rev=1620297908&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=copy_dvd&amp;rev=1640526848&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=crontab&amp;rev=1572106077&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=disks&amp;rev=1716629943&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=dns_check&amp;rev=1772363657&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=exiftool&amp;rev=1769622927&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=fail2ban&amp;rev=1606993979&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=ffmpeg&amp;rev=1774432424&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=ffprobe&amp;rev=1686229859&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=firefox_extensions&amp;rev=1681132951&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=fonts_characters&amp;rev=1664291376&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=linux_hfs&amp;rev=1570185035&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=linux_keyboard&amp;rev=1685178432&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=mac-ntfs&amp;rev=1569604813&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=mac_boot_keys&amp;rev=1569944675&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=macos_defaults&amp;rev=1721479540&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=macos_install&amp;rev=1679656285&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=macos_misc&amp;rev=1711109951&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=mkv&amp;rev=1706350065&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=mmdblookup&amp;rev=1572185419&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=mp4_subtitle_tests&amp;rev=1569667969&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=mysql_mariadb&amp;rev=1581181671&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=ntp&amp;rev=1670954110&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=obs&amp;rev=1591363139&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=postfix_move_mails&amp;rev=1568751060&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=postgresql&amp;rev=1668505372&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=python&amp;rev=1596904855&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=start&amp;rev=1670951224&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=thunderbird&amp;rev=1683117985&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=utf8_nfd_nfc&amp;rev=1574778212&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=video_recorded_date&amp;rev=1613734551&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=win10&amp;rev=1730816685&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=windows_11&amp;rev=1772906174&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=youtube&amp;rev=1685571176&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.alma.ch/doku.php?id=zsh&amp;rev=1653001100&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.alma.ch/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Alma wiki</title>
        <link>https://wiki.alma.ch/</link>
        <url>https://wiki.alma.ch/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=aliases&amp;rev=1717622761&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-05T23:26:01+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>aliases</title>
        <link>https://wiki.alma.ch/doku.php?id=aliases&amp;rev=1717622761&amp;do=diff</link>
        <description>Aliases


alias disklist='lsblk -o NAME,HCTL,TYPE,SIZE,FSTYPE,LABEL,MOUNTPOINT,TRAN,VENDOR,PARTLABEL,RO'

alias ipa='ip -brief addr'
alias ipac='ip -brief -color addr'

alias dns-reload='named-checkconf -z &amp;&amp; rndc reload; sleep 2; grep named /var/log/daemon.log'

alias epoch2date='perl -e '\''$t=shift; printf &quot;%10s :%26s\n%10s :%26s\n%10s :%26s\n&quot;, &quot;epoch&quot;, $t, &quot;localtime&quot;, scalar(localtime $t), &quot;gmtime&quot;, scalar(gmtime $t);'\'''

alias iptlogview='perl -ne '\''if ( ($t,$m,$s,$d,$p,$sp,$dp)=/^(?:…</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=avid&amp;rev=1623495485&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-12T12:58:05+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>avid</title>
        <link>https://wiki.alma.ch/doku.php?id=avid&amp;rev=1623495485&amp;do=diff</link>
        <description>Avid: disable startup items

Show Avid LaunchAgents:


ls -1 /Library/LaunchAgents/com.avid*



/Library/LaunchAgents/com.avid.ApplicationManager.plist
/Library/LaunchAgents/com.avid.backgroundservicesmanager.plist
/Library/LaunchAgents/com.avid.dmfsupportsvc.plist
/Library/LaunchAgents/com.avid.interplay.dmfservice.plist
/Library/LaunchAgents/com.avid.interplay.editortranscode.plist
/Library/LaunchAgents/com.avid.transcodeserviceworker.plist</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=bash_history&amp;rev=1568807256&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-09-18T13:47:36+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>bash_history</title>
        <link>https://wiki.alma.ch/doku.php?id=bash_history&amp;rev=1568807256&amp;do=diff</link>
        <description>Bash history settings


export HISTTIMEFORMAT='%F %T '
export HISTSIZE=3000           # number of lines stored in memory
export HISTFILESIZE=10000      # max number of lines in ~/.bash_history file

## Try to fix history problems (seems OK in ~/.bashrc. Also here?)
## Based on http://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows#48113
export HISTCONTROL=ignoreboth

shopt -s histappend
shopt -s cmdhist      # multi-line commands in one line

# Save and r…</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=centos&amp;rev=1657123128&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-07-06T17:58:48+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>centos</title>
        <link>https://wiki.alma.ch/doku.php?id=centos&amp;rev=1657123128&amp;do=diff</link>
        <description>SSH X11 forwarding

Check ssh server config:


# sshd -T | grep x11
x11displayoffset 10
x11maxdisplays 1000
x11forwarding yes
x11uselocalhost yes


Adapt /etc/ssh/sshd_config if different from above.

If it still doesn't work, disable IPv6 by setting AddressFamiliy to &quot;inet&quot;:</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=certbot&amp;rev=1670930797&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-13T12:26:37+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>certbot</title>
        <link>https://wiki.alma.ch/doku.php?id=certbot&amp;rev=1670930797&amp;do=diff</link>
        <description>certbot

Install

install in Jessie

For Debian 8 (Jessie):


apt remove certbot
wget https://dl.eff.org/certbot-auto
mv certbot-auto /usr/local/bin/certbot-auto
chown -c root /usr/local/bin/certbot-auto
chmod -c 0755 /usr/local/bin/certbot-auto


Not sure if adding this is useful:</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=characters_filenames&amp;rev=1592687680&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-20T23:14:40+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>characters_filenames</title>
        <link>https://wiki.alma.ch/doku.php?id=characters_filenames&amp;rev=1592687680&amp;do=diff</link>
        <description>Characters in file names

Note : this page often uses &quot;Unix&quot; for non-Windows systems, because Mac OS and Linux are both Unix-based systems. And the Web standard also originated on Unix systems, so for example, it's path separator is the same &quot;/&quot;.

Path separators</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=clonezilla&amp;rev=1620297908&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-05-06T12:45:08+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>clonezilla</title>
        <link>https://wiki.alma.ch/doku.php?id=clonezilla&amp;rev=1620297908&amp;do=diff</link>
        <description>Make USB boot key

Format as vfat, copy image, make bootable:
disk=/dev/sdb; label=CZ_2021
sudo apt install gparted
sudo gparted $disk 
sudo fatlabel ${disk}1 $labelunzip Downloads/clonezilla-live-2.7.1-22-amd64.zip -d /media/$USER/$label/
cd /media/$USER/$label/utils/linux/
sudo bash makeboot.sh ${disk}1</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=copy_dvd&amp;rev=1640526848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-12-26T14:54:08+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>copy_dvd</title>
        <link>https://wiki.alma.ch/doku.php?id=copy_dvd&amp;rev=1640526848&amp;do=diff</link>
        <description>Copying / transcoding a DVD with ffmpeg

	*  First, copy the DVD to a hard drive

For unencrypted DVDs:

	*  Use VLC to check which are the correct files. In the example below, they are VTS_01_1.VOB to VTS_01_3.VOB. 

	*  Define a few variables
dvd_folder=Desktop/MetaMecano-VIDEO_TS
out=Desktop/MetaMecano-DVD.mkv</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=crontab&amp;rev=1572106077&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-26T18:07:57+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>crontab</title>
        <link>https://wiki.alma.ch/doku.php?id=crontab&amp;rev=1572106077&amp;do=diff</link>
        <description>crontab stuff

Create a crontab entry with random minute/hour. (replace /bin/true with the wanted command!)

Every day:
m=$(( RANDOM % 60 )); h=$(( RANDOM % 24 )); cmd=&quot;/bin/true&quot;
echo &quot;$m $h * * * root $cmd&quot; | tee -a /etc/crontab
Once per week:
m=$(( RANDOM % 60 )); h=$(( RANDOM % 24 )); d=$(( RANDOM % 7 )); cmd=&quot;/bin/true&quot;
echo &quot;$m $h * * $d root $cmd&quot; | tee -a /etc/crontab</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=disks&amp;rev=1716629943&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-05-25T11:39:03+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>disks</title>
        <link>https://wiki.alma.ch/doku.php?id=disks&amp;rev=1716629943&amp;do=diff</link>
        <description>Disks

Overwrite empty space with nulls

Write Write nulls to free space of all partitions on /dev/sda


#!/bin/bash
## fill empty space with nulls to really delete everything

sfdisk -d /dev/sda \
| awk '/^.dev.sd/ {print $1}' \
| while read d; do
    mkdir -p /mnt/x
    mount $d /mnt/x
    ls -l /mnt/x
    echo &quot;writing nulls to free space on $d ...&quot;
    time cat /dev/zero &gt; /mnt/x/zeroes
    sync
    rm /mnt/x/zeroes
    umount /mnt/x
  done
echo OK</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=dns_check&amp;rev=1772363657&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-03-01T12:14:17+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>dns_check</title>
        <link>https://wiki.alma.ch/doku.php?id=dns_check&amp;rev=1772363657&amp;do=diff</link>
        <description>DNS check

Check that all defined nameservers for a domain do reply to queries for that domain.

dom=example.com
rec=SOA

for serv in $(dig -t NS $dom +short); do
    echo $(dig @$serv -t $rec $dom +short) from $serv
done


or on one line:

dom=example.com; rec=SOA; for serv in $(dig -t NS $dom +short); do echo $(dig @$serv -t $rec $dom +short) from $serv; done</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=exiftool&amp;rev=1769622927&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-28T18:55:27+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>exiftool</title>
        <link>https://wiki.alma.ch/doku.php?id=exiftool&amp;rev=1769622927&amp;do=diff</link>
        <description>Exiftool

To see all available date/time fields in the file(s), use
exiftool -args -time:all *.jpg
Exif rename by date

Add the original Exif date to the beginning of the file name, and also move the file to a folder by year-month.

When using -testname</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=fail2ban&amp;rev=1606993979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-12-03T12:12:59+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>fail2ban</title>
        <link>https://wiki.alma.ch/doku.php?id=fail2ban&amp;rev=1606993979&amp;do=diff</link>
        <description>Fail2Ban

Test jail


[INCLUDES]
before = paths-common.conf
after  = paths-overrides.local

[DEFAULT]
test_logs = /var/log/test*.log



[INCLUDES]
before = common.conf

[Definition]
_daemon = test
failregex = ^%(__prefix_line)s.*fail2ban([ \d]*)?test IP: &lt;HOST&gt;.*$</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=ffmpeg&amp;rev=1774432424&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-03-25T10:53:44+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ffmpeg</title>
        <link>https://wiki.alma.ch/doku.php?id=ffmpeg&amp;rev=1774432424&amp;do=diff</link>
        <description>ffmpeg
in=... ; out=... # or eg. out=&quot;${in/%.mov/-small.mov}&quot;ffmpeg -i &quot;$in&quot;
webm to mp4

Example:


ffmpeg -i &quot;$in&quot; -tune film -crf 20 -preset slow -b:a 192k -movflags +faststart &quot;${in%%.webm}.mp4&quot;


h264


-c:v libx264 -pix_fmt yuv420p -tune film -crf 20 -g 50
-preset slow # (veryfast fast medium slow slower veryslow)</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=ffprobe&amp;rev=1686229859&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-08T15:10:59+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ffprobe</title>
        <link>https://wiki.alma.ch/doku.php?id=ffprobe&amp;rev=1686229859&amp;do=diff</link>
        <description>ffprobe

The normal text output of ffprobe goes to stderr, so you usually need to add 2&gt;&amp;1 to parse the output. The alternative is to use the complex ffprobe options to format the output which then goes to stdout.

Start with a look at this page: &lt;https://trac.ffmpeg.org/wiki/FFprobeTips&gt;

Show metadata tags</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=firefox_extensions&amp;rev=1681132951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-04-10T15:22:31+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>firefox_extensions</title>
        <link>https://wiki.alma.ch/doku.php?id=firefox_extensions&amp;rev=1681132951&amp;do=diff</link>
        <description>Copy text + URL

	*  Copy page title and url : Adds a context menu item to copy page title (or selected text) and url to clipboard. To use, right-click any page and select &quot;Copy Page Title and Url&quot; or &quot;Copy Selection and Url&quot;.

Or:

	*  Link Text and Location Copier : copies a link’s text and location, the page title and</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=fonts_characters&amp;rev=1664291376&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-09-27T17:09:36+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>fonts_characters</title>
        <link>https://wiki.alma.ch/doku.php?id=fonts_characters&amp;rev=1664291376&amp;do=diff</link>
        <description>Fonts and Unicode characters

List all characters in font

ttx
$ sudo apt install fonttools
$ ttx -t cmap -o - /usr/share/fonts/truetype/Arial/arial.ttf
Dumping &quot;/usr/share/fonts/truetype/Arial/arial.ttf&quot; to &quot;-&quot;...
Dumping 'cmap' table...
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;ttFont sfntVersion=&quot;\x00\x01\x00\x00&quot; ttLibVersion=&quot;4.5&quot;&gt;

  &lt;cmap&gt;
    &lt;tableVersion version=&quot;0&quot;/&gt;
    &lt;cmap_format_4 platformID=&quot;0&quot; platEncID=&quot;3&quot; language=&quot;0&quot;&gt;
      &lt;map code=&quot;0x20&quot; name=&quot;space&quot;/&gt;&lt;!-- SPACE --&gt;
      &lt;…</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=linux_hfs&amp;rev=1570185035&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-04T12:30:35+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux_hfs</title>
        <link>https://wiki.alma.ch/doku.php?id=linux_hfs&amp;rev=1570185035&amp;do=diff</link>
        <description>Linux HFS+ read/write

HFS+ disks are mounted automatically, but read-only by default. To remount them read-write:
mount | grep 'type hfsplus (ro' | while read disk line; do echo &quot;$disk $line&quot;; echo &quot;Remounting $disk read-write:&quot;; sudo mount -o remount,rw,force $disk &amp;&amp; echo OK; done</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=linux_keyboard&amp;rev=1685178432&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-05-27T11:07:12+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux_keyboard</title>
        <link>https://wiki.alma.ch/doku.php?id=linux_keyboard&amp;rev=1685178432&amp;do=diff</link>
        <description>Linux keyboard

Debug keyboard
sudo showkey
or 
xev
or show keypresses online, including from Windows or Mac? : &lt;https://www.keyboardtester.com/&gt;

See also How to detect global key presses</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=mac-ntfs&amp;rev=1569604813&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-09-27T19:20:13+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mac-ntfs</title>
        <link>https://wiki.alma.ch/doku.php?id=mac-ntfs&amp;rev=1569604813&amp;do=diff</link>
        <description>ntfs-3g on MacOS
csrutil disablebrew install ntfs-3gvolname=Toshiba_1tb
diskutil list | grep $volname  
1:               Windows_NTFS Toshiba_1tb             1.0 TB     disk2s1disk=$(diskutil list | grep $volname | awk '{print $NF}')sudo mkdir /Volumes/$volname</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=mac_boot_keys&amp;rev=1569944675&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-01T17:44:35+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mac_boot_keys</title>
        <link>https://wiki.alma.ch/doku.php?id=mac_boot_keys&amp;rev=1569944675&amp;do=diff</link>
        <description>MacOS boot keys

Note that with a Windows keyboard:

	*  
	*   
 Safe mode                     after startup tone and until login screen               Other boot disk (USB etc.)    after startup tone and until startup choice appears  Boot Recovery partition</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=macos_defaults&amp;rev=1721479540&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-20T14:45:40+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>macos_defaults</title>
        <link>https://wiki.alma.ch/doku.php?id=macos_defaults&amp;rev=1721479540&amp;do=diff</link>
        <description>MacOS defaults

Hostname


# show:
for n in ComputerName HostName LocalHostName; do echo &quot;$n = $(scutil --get $n)&quot;; done

# set new hostname:
host=newname; dom=example.lan
for n in ComputerName LocalHostName; do sudo scutil --set $n $host; done
sudo scutil --set HostName $host.$dom</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=macos_install&amp;rev=1679656285&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-03-24T12:11:25+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>macos_install</title>
        <link>https://wiki.alma.ch/doku.php?id=macos_install&amp;rev=1679656285&amp;do=diff</link>
        <description>MacOS Install downloads

Download

The installer must be downloaded from App Store, and you need an Apple ID with a payment method (Credit card). You can select &quot;None&quot; as payment method, but then you cannot download!

The App Store link for High Sierra is</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=macos_misc&amp;rev=1711109951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-22T13:19:11+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>macos_misc</title>
        <link>https://wiki.alma.ch/doku.php?id=macos_misc&amp;rev=1711109951&amp;do=diff</link>
        <description>MacOS misc

Network

Disable IPv6:
sudo networksetup -listallnetworkservices # get names to use below

sudo networksetup -setv6off Ethernet
sudo networksetup -setv6off Wi-Fi
#...
Show DNS:
scutil --dns | grep nameserver
Mac startup key combinations</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=mkv&amp;rev=1706350065&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-01-27T11:07:45+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mkv</title>
        <link>https://wiki.alma.ch/doku.php?id=mkv&amp;rev=1706350065&amp;do=diff</link>
        <description>mkv

info
mkvmerge --identify &quot;$mkv&quot;
Extract subtitles
mkvinfo --summary &quot;$f&quot; | head -10 \
| perl -nle 'if ( /^Track (\d+): subtitles, codec ID: ([A-Z_]+).*extract track ID: (\d+)(?:, language: (\S+))?/ ) {
    warn &quot;$_=$1: type=$2, xtrack=$3, lang=$4\n&quot;; print &quot;$2 $3 $4&quot; }' \
| while read type t lang; do d=$(dirname &quot;$f&quot;); b=$(basename &quot;$f&quot;); 
    echo &quot;#Run this:# mkvextract tracks \&quot;\$f\&quot; $t:'$d/$b-$lang-$t.$type'&quot;; done</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=mmdblookup&amp;rev=1572185419&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-27T15:10:19+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mmdblookup</title>
        <link>https://wiki.alma.ch/doku.php?id=mmdblookup&amp;rev=1572185419&amp;do=diff</link>
        <description>mmdblookup

Fix GeoIP's mmdblookup output to make it real json:

mmdblookup -f /var/lib/GeoIP/GeoLite2-City.mmdb -i $ip \
| perl -0777 -pe 's/\s+&lt;\w+&gt;$/, /gm; s/([\d&quot;])$/$1,/s; s/\s+/ /g; s/,\s*(})/$1/g; s/}\s*([\d&quot;])/}, $1/g;' \
| jq


The regexes are (this can certainly be simplified!) :</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=mp4_subtitle_tests&amp;rev=1569667969&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-09-28T12:52:49+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mp4_subtitle_tests</title>
        <link>https://wiki.alma.ch/doku.php?id=mp4_subtitle_tests&amp;rev=1569667969&amp;do=diff</link>
        <description>Subtitles in MP4

Tests:
MP4Box -add $video -add $audio -add $st:name=Deutsch:lang=de:hdlr=sbtl:group=2 -new Desktop/jazz-v2.m4v
  IsoMedia import - track ID 1 - Video (size 1920 x 1080)
  IsoMedia import - track ID 1 - Audio (SR 48000 - 2 channels)
  Timed Text (SRT) import - text track 1920 x 1080, font Serif (size 18)
  Setting up iTunes/iPod file...
  Saving Desktop/jazz-v2.m4v: 0.500 secs Interleaving</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=mysql_mariadb&amp;rev=1581181671&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-02-08T18:07:51+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysql_mariadb</title>
        <link>https://wiki.alma.ch/doku.php?id=mysql_mariadb&amp;rev=1581181671&amp;do=diff</link>
        <description>MySQL - MariaDB
apt install mariadb-server
Move/Copy database

On old server
olddb=tng

On new server
newdb=tng
echo &quot;CREATE DATABASE $newdb;&quot; | mysql -u root
echo &quot;SHOW DATABASES;&quot;         | mysql -u root
See Also

&lt;https://www.digitalocean.com/community/tutorials/how-to-install-mariadb-on-debian-9&gt;</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=ntp&amp;rev=1670954110&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-13T18:55:10+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ntp</title>
        <link>https://wiki.alma.ch/doku.php?id=ntp&amp;rev=1670954110&amp;do=diff</link>
        <description>NTP

Time sync. is now controlled by systemd.

Show current state
systemctl status systemd-timesyncd.service
timedatectl
timedatectl -a timesync-status
timedatectl -a show-timesync
cat /etc/systemd/timesyncd.conf
Set NTP servers
sudo mcedit /etc/systemd/timesyncd.conf</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=obs&amp;rev=1591363139&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-05T15:18:59+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>obs</title>
        <link>https://wiki.alma.ch/doku.php?id=obs&amp;rev=1591363139&amp;do=diff</link>
        <description>OBS Studio streaming

UDP streaming

On OBS source:

Select output to FFmpeg recording, and to URL.

To start streaming, click &quot;Start Recording&quot;.


[General]
Name=UDP-stream-to-dromedar

[Video]
BaseCX=1920
BaseCY=1080
OutputCX=1920
OutputCY=1080
FPSType=1
FPSCommon=25 PAL
FPSInt=25
ScaleType=bilinear

[Panels]
CookieId=20409558F0205F6F

[Output]
Mode=Advanced

[AdvOut]
TrackIndex=1
RecType=FFmpeg
RecTracks=1
FLVTrack=1
FFOutputToFile=false
FFURL=udp://192.168.81.37:6000?pkt_size=1316
FFFormat=m…</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=postfix_move_mails&amp;rev=1568751060&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-09-17T22:11:00+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postfix_move_mails</title>
        <link>https://wiki.alma.ch/doku.php?id=postfix_move_mails&amp;rev=1568751060&amp;do=diff</link>
        <description>Postfix: move mails to other machine

&lt;https://askubuntu.com/questions/728620/can-queued-messages-be-moved-between-postfix-servers/#answer-1155503&gt;
chown -R postfix:postdrop /mnt/old_var/spool/postfix/maildrop
chown -R postfix:postfix  /mnt/old_var/spool/postfix/defer*

mv /mnt/old_var/spool/postfix/maildrop/* /var/spool/postfix/maildrop/

cd /mnt/old_var/spool/postfix/

find defer -type f -printf &quot;%P\n&quot; \
| while read f; do
    for d in defer deferred; do
      mv -v $d/$f /var/spool/postfix/$d…</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=postgresql&amp;rev=1668505372&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-11-15T10:42:52+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postgresql</title>
        <link>https://wiki.alma.ch/doku.php?id=postgresql&amp;rev=1668505372&amp;do=diff</link>
        <description>Postgresql

List databases
psql -U postgres -tA -c 'SELECT datname FROM pg_database' | sort
Get statistics
db=... ; pghost=localhost
psql -U postgres -h $pghost -t -A -c &quot;SELECT datname, tup_inserted, tup_updated, tup_deleted FROM pg_stat_database WHERE datname='$db';&quot;</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=python&amp;rev=1596904855&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-08-08T18:40:55+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>python</title>
        <link>https://wiki.alma.ch/doku.php?id=python&amp;rev=1596904855&amp;do=diff</link>
        <description>Python 2.7 in Resolve 16 on Windows:

Py2&gt; print sys.path
[
 'C:\\WINDOWS\\SYSTEM32\\python27.zip', # doesn't exist
 'C:\\Python27\\DLLs',
 'C:\\Python27\\lib',
 'C:\\Python27\\lib\\plat-win', # doesn't exist
 'C:\\Python27\\lib\\lib-tk',
 'C:\\Program Files\\Blackmagic Design\\DaVinci Resolve',
 'C:\\Python27',
 'C:\\Python27\\lib\\site-packages'
]</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=start&amp;rev=1670951224&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-13T18:07:04+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>start</title>
        <link>https://wiki.alma.ch/doku.php?id=start&amp;rev=1670951224&amp;do=diff</link>
        <description>Start page


&lt;script type=&quot;text/javascript&quot;&gt; catlist_baseurl = &quot;https://wiki.alma.ch/&quot;; catlist_basescript = &quot;doku.php&quot;; catlist_useslash = 0; catlist_userewrite = 0; catlist_sepchar = &quot;_&quot;; catlist_deaccent = 1; &lt;/script&gt;&lt;ul class=&quot;catlist-nslist&quot; &gt;&lt;li class=&quot;catlist-page&quot;&gt;Aliases&lt;/li&gt;&lt;li class=&quot;catlist-page&quot;&gt;Avid: disable startup items&lt;/li&gt;&lt;li class=&quot;catlist-page&quot;&gt;Bash history settings&lt;/li&gt;&lt;li class=&quot;catlist-page&quot;&gt;SSH X11 forwarding&lt;/li&gt;&lt;li class=&quot;catlist-page&quot;&gt;certbot&lt;/li&gt;&lt;li class=&quot;catlist-pa…</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=thunderbird&amp;rev=1683117985&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-05-03T14:46:25+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>thunderbird</title>
        <link>https://wiki.alma.ch/doku.php?id=thunderbird&amp;rev=1683117985&amp;do=diff</link>
        <description>To cleanup !

Date Time format

Customize Date and Time formats in Thunderbird

Or this old info?

Date format trouble

	*  &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=1426907&gt;
*  &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=1509096&gt;
*  &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=1502659&gt;
*  &lt;https://askubuntu.com/questions/214099/how-to-change-thunderbirds-display-time-to-24h-format#comment1593436_217718&gt;
*  &lt;https://gitlab.com/jeff_harp/Thunderbird_60.4.0_date-time_mods&gt;
*  &lt;https://bugzi…</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=utf8_nfd_nfc&amp;rev=1574778212&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-26T15:23:32+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>utf8_nfd_nfc</title>
        <link>https://wiki.alma.ch/doku.php?id=utf8_nfd_nfc&amp;rev=1574778212&amp;do=diff</link>
        <description>UTF8 NFD vs NFC

Mac OS uses NFD encoded accents, but doesn't see file or directory names with NFD encoded accents over the network! So files with accents received from Macs and saved from Windows to a Windows share will not be visible from a Mac. The file names must be re-encoded in the NFC form.</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=video_recorded_date&amp;rev=1613734551&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-19T12:35:51+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>video_recorded_date</title>
        <link>https://wiki.alma.ch/doku.php?id=video_recorded_date&amp;rev=1613734551&amp;do=diff</link>
        <description>Using mediainfo to extract the &quot;Recorded_Date&quot; from a video file, and using it to set the timestamp of the file.
for f in *.mov; do t=$(mediainfo --Inform=&quot;General;%Recorded_Date%&quot; &quot;$f&quot;); echo &quot;$f $t&quot;; [ -z &quot;$t&quot; ] &amp;&amp; continue; t2=$(perl -e '$_=shift; s/[- :]//g; s/(\d\d)\.\d+$/.$1/; print' &quot;$t&quot;); touch -t &quot;$t2&quot; &quot;$f&quot; &amp;&amp; echo &quot;ok&quot;; done</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=win10&amp;rev=1730816685&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-11-05T15:24:45+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>win10</title>
        <link>https://wiki.alma.ch/doku.php?id=win10&amp;rev=1730816685&amp;do=diff</link>
        <description>Windows 10 settings

System info
systeminfo
cmd /k ver
Windows Product key
wmic path SoftwareLicensingService get OA3xOriginalProductKey
or use NirSoft's ProduKey

Get computer name

	*  hostname (hostname.exe) in both CMD and PS
*  %COMPUTERNAME% in CMD or $ENV:COMPUTERNAME</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=windows_11&amp;rev=1772906174&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-03-07T18:56:14+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows_11</title>
        <link>https://wiki.alma.ch/doku.php?id=windows_11&amp;rev=1772906174&amp;do=diff</link>
        <description>Install with local account

To install Windows 11 without a Microsoft account, the easiest is to use  Rufus to make a USB installer.

Alternatives that can be tried are, according to this page:

Hit Shift-F10 to reach a command prompt and then run the following command to create a local-only account:</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=youtube&amp;rev=1685571176&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-01T00:12:56+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>youtube</title>
        <link>https://wiki.alma.ch/doku.php?id=youtube&amp;rev=1685571176&amp;do=diff</link>
        <description>Channel &quot;mivk&quot; : &lt;https://www.youtube.com/@mivk2975/featured&gt;</description>
    </item>
    <item rdf:about="https://wiki.alma.ch/doku.php?id=zsh&amp;rev=1653001100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-05-20T00:58:20+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>zsh</title>
        <link>https://wiki.alma.ch/doku.php?id=zsh&amp;rev=1653001100&amp;do=diff</link>
        <description>Mostly copied from &lt;https://scriptingosx.com/2019/06/moving-to-zsh-part-3-shell-options/&gt;

Put into ~/.zshrc

	*  Prompt:
PROMPT='%(?.%F{green}√.%F{red}?%?)%f %K{81}%B%~ %#%b%K{default} '
	*  History:

(See also &lt;https://unix.stackexchange.com/a/111777/7286&gt;)
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
setopt EXTENDED_HISTORY
SAVEHIST=5000
HISTSIZE=2000
# share history across multiple zsh sessions
setopt SHARE_HISTORY
# append to history
setopt APPEND_HISTORY
# adds commands as they are typed, not a…</description>
    </item>
</rdf:RDF>
