<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://mossyoak.linuxwall.info/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://mossyoak.linuxwall.info/feed.php">
        <title>Linuxwall en:ressources:astuces</title>
        <description></description>
        <link>https://mossyoak.linuxwall.info/</link>
        <image rdf:resource="https://mossyoak.linuxwall.info/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-13T22:17:35+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:archlinux_luks_install&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:cpu_process_usage&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:ffmpeg&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:gnupg_pgp&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:golang&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:jmeter&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:kibana4_nginx&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:ldapsearch&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:lenovo_trackpoint_speed&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:lscolor&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:lxde_debian_autostart&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:macos&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:mutt-kz_gpgme&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:mutt_alias_vcard&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:mutt_macosx&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:netinstall_usb&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:policy_routing&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:process_sniffing&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:rabbitmq&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:sieve&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:soundstretch&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:tcpdump&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:tmux&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:udev_hdmi&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:vim&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:xargs&amp;rev=1713363598&amp;do=diff"/>
                <rdf:li rdf:resource="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:yum_versionlock&amp;rev=1713363598&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://mossyoak.linuxwall.info/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Linuxwall</title>
        <link>https://mossyoak.linuxwall.info/</link>
        <url>https://mossyoak.linuxwall.info/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:archlinux_luks_install&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:archlinux_luks_install</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:archlinux_luks_install&amp;rev=1713363598&amp;do=diff</link>
        <description>Originally from &lt;https://gist.github.com/mattiaslundberg/8620837&gt;. Copied here for my own archive.

Configure the wifi:


wifi-menu


Create partitions with fdisk

Setup the encryption of the system


cryptsetup luksFormat --type luks2 /dev/sdaX


Open the partition and make an ext4 file system


cryptsetup open /dev/sdaX cryptroot

mkfs.ext4 /dev/mapper/cryptroot</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:cpu_process_usage&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:cpu_process_usage</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:cpu_process_usage&amp;rev=1713363598&amp;do=diff</link>
        <description>Calculate the CPU usage of a single process in Linux

The script below calculates the CPU usage of a single process. It does so by parsing the stat file in /proc/&lt;pid&gt; and dividing it with the total cpu usage from /proc/stat.


#!/usr/bin/env bash

# calculate the cpu usage of a single process
# jvehent oct.2013

[ -z $1 ] &amp;&amp; echo &quot;usage: $0 &lt;pid&gt;&quot;

sfile=/proc/$1/stat
if [ ! -r $sfile ]; then echo &quot;pid $1 not found in /proc&quot; ; exit 1; fi

proctime=$(cat $sfile|awk '{print $14}')
totaltime=$(gre…</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:ffmpeg&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:ffmpeg</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:ffmpeg&amp;rev=1713363598&amp;do=diff</link>
        <description>FFMPEG Video Encoding

- Convert Sony's HD MTS format into MP4

see: &lt;http://flash.flowplayer.org/forum/7/12671&gt;
This works on Ubuntu 12.10 with ffmpeg 0.8.3-6ubuntu2


$ ffmpeg -y -i input.MTS -threads 6 -ar 44100 -ab 96k -acoder aac -ac 2 -vcodec libx264 -level 41 -crf 20 -bufsize 20000k -maxrate 25000k -g 250 -r 20 -s 1280x544 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8   -subq 7 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -rc_eq 'blurCplx^(1-qC…</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:gnupg_pgp&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:gnupg_pgp</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:gnupg_pgp&amp;rev=1713363598&amp;do=diff</link>
        <description>GnuPG PGP tips &amp; tricks

- Basics

- export public key


gpg --export -a 'email@example.net'


- export secret key


gpg --export-secret-key -a 'email@example.net'


- import secret key


gpg --allow-secret-key-import --import private.key


- Get details on key, signature, anything</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:golang&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:golang</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:golang&amp;rev=1713363598&amp;do=diff</link>
        <description>Golang tips

Building for multiple platforms

Check out the source, and from the src directory, run the following loop:


$ for os in linux darwin windows; do for arch in 386 amd64; do echo ===== building $os/$arch =====; sleep 3; GOARCH=$arch GOOS=$os ./make.bash --no-clean 2&gt;&amp;1 ; done ;done</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:jmeter&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:jmeter</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:jmeter&amp;rev=1713363598&amp;do=diff</link>
        <description>Client/Server Jmeter

The trick to use client/server mode with jmeter is that the client and the server need to be able to establish connections to each other.

From the doc:
“JMeter/RMI requires a connection from the client to the server. This will use the port you chose, default 1099. JMeter/RMI also requires a reverse connection in order to return sample results from the server to the client. This will use a high-numbered port. If there are any firewalls or other network filters between JMete…</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:kibana4_nginx&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:kibana4_nginx</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:kibana4_nginx&amp;rev=1713363598&amp;do=diff</link>
        <description>Protect Kibana 4 with Nginx

Kibana 4 is a great dashboard application, but it comes with zero security. If you want to share a dashboard while preventing other people from modifying your data, you need to filter the traffic directed to it.

This is hard to do, because kibana uses javascript in the browser that sends queries to elasticsearch (proxied via the /elasticsearch/ endpoint of the kibana4 app). Therefore, in order to protect it, we need fine grained query filters in nginx.</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:ldapsearch&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:ldapsearch</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:ldapsearch&amp;rev=1713363598&amp;do=diff</link>
        <description>LdapSearch examples

The following examples are taking from various ldapsearch queries on Small Business Server 2003.

Get a user from Active Directory


ldapsearch -x -LLL -D 'CN=Administrator,CN=Users,DC=Domain,DC=local' -W -H ldap://ad.example.com:389 -b 'OU=SBSUsers,OU=Users,OU=MyBusiness,DC=Domain,DC=local' -s sub '(sAMAccountName=jean-kevin)'</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:lenovo_trackpoint_speed&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:lenovo_trackpoint_speed</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:lenovo_trackpoint_speed&amp;rev=1713363598&amp;do=diff</link>
        <description>Adjust the speed of the trackpoint on a Lenovo Carbon X1

1. find the trackpoint device


$ find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/input\/input[0-9]*\/name$//'
/sys/devices/platform/i8042/serio1/serio2


2. set an appropriate value</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:lscolor&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:lscolor</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:lscolor&amp;rev=1713363598&amp;do=diff</link>
        <description>Change default LS colors on Debian


By default, the LS version of Debian uses a regular blue color for the directories. And, as many others, I'm completely unable to read this on a black background.
So, to change this, do the following for each user, or globally in</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:lxde_debian_autostart&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:lxde_debian_autostart</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:lxde_debian_autostart&amp;rev=1713363598&amp;do=diff</link>
        <description>Autostart applications at login with LXDE and Debian



This is pretty straighforward, if you know were to put the files.
LXDE uses freedesktop.org Autostart spec which states that :

&lt;note&gt;The Autostart Directories are $XDG_CONFIG_DIRS/autostart [...]&lt;/note&gt;

Good, then what's mine ?</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:macos&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:macos</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:macos&amp;rev=1713363598&amp;do=diff</link>
        <description>MacOS tips

Networking

Get IP address


$ sudo ipconfig getifaddr en1


Change IP address


$ sudo ipconfig set en1 INFORM 172.21.15.249 255.255.255.248


Change default gateway


$ sudo route delete default
$ sudo route add default 172.21.15.254


Users</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:mutt-kz_gpgme&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:mutt-kz_gpgme</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:mutt-kz_gpgme&amp;rev=1713363598&amp;do=diff</link>
        <description>Building Mutt-KZ with GPGME support

- Get the source from github


git clone git@github.com:karelzak/mutt-kz.git


- Dependencies


$ sudo yum install slang-devel openssl-devel cyrus-sasl-devel tokyocabinet-devel


- Compile

Configure, you'll need to resolve a bunch of dependencies</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:mutt_alias_vcard&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:mutt_alias_vcard</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:mutt_alias_vcard&amp;rev=1713363598&amp;do=diff</link>
        <description>Convert VCARDs into Mutt's alias format

The script below reads a vcard file and grabs the FN and EMAIL fields to display them into the alias format.

It's a very simple script that will not deal with wrongly formatted VCARD files. I have used it to convert roundcube's contacts export into an alias file.</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:mutt_macosx&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:mutt_macosx</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:mutt_macosx&amp;rev=1713363598&amp;do=diff</link>
        <description>Installing and configuring Mutt on MacOSX

Mutt 1.5.20 on Mac OS X snow leopard.

1. Get mutt and patch it


$ wget ftp://ftp.mutt.org/mutt/devel/mutt-1.5.20.tar.gz

$ tar -xzvf mutt-1.5.20.tar.gz

$ cd mutt-1.5.20


Download and apply sidebar patch</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:netinstall_usb&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:netinstall_usb</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:netinstall_usb&amp;rev=1713363598&amp;do=diff</link>
        <description>Debian NetInstall from USB stick

- Format the stick


# fdisk /dev/sdb
d -&gt; delete all partition
n -&gt; create a new primary
t -&gt; type '6' for vfat 16
a -&gt; toggle bootable flag
w -&gt; write and exit



# mkfs.vfat -F 16 /dev/sdb1


- Install the syslinux MBR</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:policy_routing&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:policy_routing</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:policy_routing&amp;rev=1713363598&amp;do=diff</link>
        <description>Linux Policy Routing

Create a custom routing table


echo 200 custom &gt;&gt; /etc/iproute2/rt_tables


Route a source IP using the custom table


ip rule add from 172.21.4.156 lookup custom


Add a rule to the table that change the default gateway to a VPN</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:process_sniffing&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:process_sniffing</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:process_sniffing&amp;rev=1713363598&amp;do=diff</link>
        <description>Sniff the data passing through a Linux Process

Another way to identify what is received by your application is to use strace and lsof. This is particularly useful if you can't TCPdump for some reason. Here's an example of how to do it on the Ossec Analysisd process.</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:rabbitmq&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:rabbitmq</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:rabbitmq&amp;rev=1713363598&amp;do=diff</link>
        <description>Rabbitmq tips

Deleting queues

The command line can be used to list existing queues:


# rabbitmqctl list_queues


And the API can be used to delete them:


curl -i -u guest:guest -H &quot;content-type:application/json&quot; -XDELETE http://localhost:15672/api/queues/%2F/mig.keepalive</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:sieve&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:sieve</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:sieve&amp;rev=1713363598&amp;do=diff</link>
        <description>Filter your emails with sieve


# apt-get install sieve-connect


Connexion to Sieve


$ sieve-connect -s localhost -p 4190 -u julien -m plain
connecting to localhost                                   
Please enter your password:                               

&gt; ls                                                      
filters_julien.sieve  &lt;- active script                    

&gt; get filters_julien.sieve Filtre_Sieve_Julien                            
require                                     …</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:soundstretch&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:soundstretch</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:soundstretch&amp;rev=1713363598&amp;do=diff</link>
        <description>Sorting music by BPM count

Sorting music by BPM count can be useful to build a collection of a specific tempo. Linux has a few tools that can count the beat per minute of a song, and while their accuracy is far from 100%, they can help built a playlist that can then be filtered manually.</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:tcpdump&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:tcpdump</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:tcpdump&amp;rev=1713363598&amp;do=diff</link>
        <description>TCPDUMP tips and tricks

Multiple tcpdump processes in tmux

Useful on KVM hypervisors with dozens of vnet interfaces.


#!/bin/bash

# create a master tmux session
tmux new-session -s 'tcpdump'

# create each tcpdump process in a new tmux window
for interface in \
$(ip a|grep -v &quot;^ &quot;|awk '{print $2}'|cut -d ':' -f 1|egrep -v &quot;lo|br&quot;)
do
  tmux new-window -t &quot;tcpdump:$interface&quot; \
  -n &quot;vnet$interface&quot; &quot;tcpdump -s 17000 -G 1800 \
  -w &quot;$(hostname)-$interface-%Y%m%d-%H%M%S.pcap&quot; \
  -Svni $interf…</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:tmux&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:tmux</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:tmux&amp;rev=1713363598&amp;do=diff</link>
        <description>Tmux configuration file


#remap command to ctrl+a
set -g prefix C-a

# reduce command delay
set -s escape-time 1

# first window is number 1, not zero
set -g base-index 1
set -g pane-base-index 1

# reload conf with command+r
bind r source-file ~/.tmux.conf \; display &quot;Reloaded!&quot;

# remap window split commands
bind | split-window -h
bind - split-window -v

# remap pane movements
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# disable the mouse
setw -g …</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:udev_hdmi&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:udev_hdmi</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:udev_hdmi&amp;rev=1713363598&amp;do=diff</link>
        <description>Toggle an external HDMI display using udev

Use udevadm monitor to detect udev events when connecting or disconnecting the display:


$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

&lt;connecting the display&gt;
KERNEL[549920.709264] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
UDEV  [549920.712808] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)

&lt;disconnecting the display&gt;
KE…</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:vim&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:vim</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:vim&amp;rev=1713363598&amp;do=diff</link>
        <description>Replace [:something] with ['something']


:%s/\[:\(\w\+\)\]/['\1']/g</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:xargs&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:xargs</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:xargs&amp;rev=1713363598&amp;do=diff</link>
        <description>Some fun with XARGS

Run a task on 16 processors


$ ls *.txt |xargs -P 16 -n 1 bzip2 -9


takes all .txt file and bzip them separatly</description>
    </item>
    <item rdf:about="https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:yum_versionlock&amp;rev=1713363598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T10:19:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:ressources:astuces:yum_versionlock</title>
        <link>https://mossyoak.linuxwall.info/doku.php?id=en:ressources:astuces:yum_versionlock&amp;rev=1713363598&amp;do=diff</link>
        <description>Pin YUM packages with versionlock

So you want to use yum-cron to autoupdate your system but skip some packages? versionlock is the way to go. 

- Install versionlock


$ sudo yum install yum-plugin-versionlock


- Pin a package


$ sudo yum versionlock add puppet</description>
    </item>
</rdf:RDF>
