<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[Snippets & Co]]></title><description><![CDATA[En apprentissage continue ...]]></description><link>https://harmakhis.net/</link><image><url>https://harmakhis.net/favicon.png</url><title>Snippets &amp; Co</title><link>https://harmakhis.net/</link></image><generator>Ghost 4.34</generator><lastBuildDate>Sun, 29 Mar 2026 13:55:46 GMT</lastBuildDate><atom:link href="https://harmakhis.net/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[[ Get's rid off YT ads ]]]></title><description><![CDATA[<p></p><p>It&apos;s quite simple , first thing first you need to install the ublock Origin extension for your browser.</p><p>Next , the only thing to do is to create a custom filter and &#xA0;add the following instruction in : </p><pre><code>! 2021-01-03 tout Bloquer les merdes de youtube
youtube.com##ytd-popup-container.ytd-app.style-scope</code></pre>]]></description><link>https://harmakhis.net/gets-rid-off-yt-adds/</link><guid isPermaLink="false">6580502731c08500018c83c6</guid><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Mon, 11 Apr 2022 11:24:32 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1536173257297-533e34457207?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDMyfHxhZHN8ZW58MHx8fHwxNjQ5Njc2MjA0&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1536173257297-533e34457207?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDMyfHxhZHN8ZW58MHx8fHwxNjQ5Njc2MjA0&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="[ Get&apos;s rid off YT ads ]"><p></p><p>It&apos;s quite simple , first thing first you need to install the ublock Origin extension for your browser.</p><p>Next , the only thing to do is to create a custom filter and &#xA0;add the following instruction in : </p><pre><code>! 2021-01-03 tout Bloquer les merdes de youtube
youtube.com##ytd-popup-container.ytd-app.style-scope &gt; .ytd-popup-container.style-scope
www.youtube.com##.opened
youtube.com##+js(set, ytInitialPlayerResponse.adPlacements, undefined)

</code></pre><p>Ur welcome</p>]]></content:encoded></item><item><title><![CDATA[[ List of Some Useful Linux Commands ]]]></title><description><![CDATA[<p></p><p>Hum hum , you need to list the 10 largest folders :</p><pre><code class="language-bash">du -sh */* | sort -rh | head -10
</code></pre><p>You need to be more precise and show subfolder to :</p><pre><code class="language-bash">du -Sh * | sort -rh | head -10
</code></pre><p>You need to find and list files :</p><pre><code class="language-bash">find -type f -exec du -Sh {} + | sort -rh | head -n 5</code></pre>]]></description><link>https://harmakhis.net/some-usefull-linux-commands/</link><guid isPermaLink="false">6580502731c08500018c83c5</guid><category><![CDATA[Lets-go]]></category><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Mon, 11 Apr 2022 07:26:52 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1570569570661-342f6f358ee8?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDM5fHx0aGlua3xlbnwwfHx8fDE2NDk2NjE5ODA&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1570569570661-342f6f358ee8?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDM5fHx0aGlua3xlbnwwfHx8fDE2NDk2NjE5ODA&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="[ List of Some Useful Linux Commands ]"><p></p><p>Hum hum , you need to list the 10 largest folders :</p><pre><code class="language-bash">du -sh */* | sort -rh | head -10
</code></pre><p>You need to be more precise and show subfolder to :</p><pre><code class="language-bash">du -Sh * | sort -rh | head -10
</code></pre><p>You need to find and list files :</p><pre><code class="language-bash">find -type f -exec du -Sh {} + | sort -rh | head -n 5
or 
find /Ur/folder/path -type f -exec du -Sh {} + | sort -rh | head -n 5
</code></pre><p>You need to clean up your docker environement :</p><pre><code class="language-bash">docker rmi -f $(docker images -a -q)

docker rm $(docker stop $(docker ps -a -q --filter ancestor=dashboard_dashboard_dc5 --format=&quot;{{.ID}}&quot;))
</code></pre>]]></content:encoded></item><item><title><![CDATA[[ GHOST Migration lock was never released or currently a migration is running ]]]></title><description><![CDATA[<p></p><p>Hein , comment, quoi ! Vous etiez en train de cr&#xE9;er votre beau docker Ghost et vous avez eu cet hideux message d&apos;erreur.</p><p>Pas de panique , voici la requete magique qui vous fera oublier cette m&#xE9;saventure </p><pre><code class="language-SQL">UPDATE migrations_lock set locked=0 where lock_key=&apos;</code></pre>]]></description><link>https://harmakhis.net/ghost-migration-lock-was-never-released-or-currently-a-migration-is-running/</link><guid isPermaLink="false">6580502731c08500018c83c3</guid><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Wed, 19 Jan 2022 09:59:09 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1542665093852-744c79500d45?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDN8fHN0dWNrfGVufDB8fHx8MTY0MjU4NjM3OA&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1542665093852-744c79500d45?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDN8fHN0dWNrfGVufDB8fHx8MTY0MjU4NjM3OA&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="[ GHOST Migration lock was never released or currently a migration is running ]"><p></p><p>Hein , comment, quoi ! Vous etiez en train de cr&#xE9;er votre beau docker Ghost et vous avez eu cet hideux message d&apos;erreur.</p><p>Pas de panique , voici la requete magique qui vous fera oublier cette m&#xE9;saventure </p><pre><code class="language-SQL">UPDATE migrations_lock set locked=0 where lock_key=&apos;km01&apos;;</code></pre><!--kg-card-begin: markdown--><p><a href="https://jessicadeen.com/ghost-migration-lock-was-never-released-or-currently-a-migration-is-running-fix/">La source</a></p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[[ Activer le log des requetes sur Mysql ]]]></title><description><![CDATA[<p></p><p>Besoin de visualiser l&apos;ensemble des requ&#xE8;tes qui sont effectu&#xE9;es sur votre serveur Mysql , rien de plus simple </p><pre><code>SET global general_log = 1;

SET global log_output = &apos;table&apos;;
</code></pre><p>Puis </p><pre><code>SELECT  *  FROM mysql.general_log;
</code></pre><p>Pour le d&#xE9;sactiver apr&#xE8;s avoir</p>]]></description><link>https://harmakhis.net/activer-les-logs-query-sur-mysql/</link><guid isPermaLink="false">6580502731c08500018c83c2</guid><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Tue, 18 Jan 2022 11:46:18 GMT</pubDate><content:encoded><![CDATA[<p></p><p>Besoin de visualiser l&apos;ensemble des requ&#xE8;tes qui sont effectu&#xE9;es sur votre serveur Mysql , rien de plus simple </p><pre><code>SET global general_log = 1;

SET global log_output = &apos;table&apos;;
</code></pre><p>Puis </p><pre><code>SELECT  *  FROM mysql.general_log;
</code></pre><p>Pour le d&#xE9;sactiver apr&#xE8;s avoir fini et supprimer les donn&#xE9;es stock&#xE9;es</p><pre><code>SET global general_log = 0;

TRUNCATE table mysql.general_log;
</code></pre><p>Et voila !</p>]]></content:encoded></item><item><title><![CDATA[[ Postgresql Export/Import ]]]></title><description><![CDATA[<p></p><p>Vous avez des BDDs h&#xE9;berg&#xE9;es chez votre fournisseur favoris ( Scaleway par ex ) et il vous faut faire un import. Pas de panique voici quelques commandes utiles: </p><p>Tout d&apos;abord , l&apos;installation des outils pour manipuler les donn&#xE9;es</p><!--kg-card-begin: markdown--><pre><code>Debian/Ubuntu

apt install postgresql-client-13</code></pre>]]></description><link>https://harmakhis.net/postgresql-export-import/</link><guid isPermaLink="false">6580502731c08500018c83c1</guid><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Mon, 17 Jan 2022 16:35:30 GMT</pubDate><content:encoded><![CDATA[<p></p><p>Vous avez des BDDs h&#xE9;berg&#xE9;es chez votre fournisseur favoris ( Scaleway par ex ) et il vous faut faire un import. Pas de panique voici quelques commandes utiles: </p><p>Tout d&apos;abord , l&apos;installation des outils pour manipuler les donn&#xE9;es</p><!--kg-card-begin: markdown--><pre><code>Debian/Ubuntu

apt install postgresql-client-13 libpq-dev

Redhat/Fedora

yum install postgresql-client-13 libpq-dev

</code></pre>
<!--kg-card-end: markdown--><p>Si vous voulez faire un export rien de plus simple </p><!--kg-card-begin: markdown--><pre><code>pg_dump --format=custom --no-acl -h XX.XX.XX.XX --port XXXX -d la_bdd -U superuser &gt; lenomdufichier.dump

--format=custom =&gt; version binaire
--no-acl =&gt; extraire la bdd sans les droits de l&apos;user actif
-h =&gt; adresse ip du serveur 
--port =&gt; port d&apos;acc&#xE8;s
-U =&gt; user_d&apos;export
</code></pre>
<!--kg-card-end: markdown--><p>et pour l&apos;import c&apos;est encore plus simple </p><!--kg-card-begin: markdown--><pre><code>pg_restore -Ox -h XX.XX.XX.XX --port XXXXX -d la_bdd -U le_superuser &lt; lefichier_a_importer.custom

-Ox =&gt; ne pas tenir compte du owner ( O ) et pas de privileges ( x ) 
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[[ Modifier un fichier Binaire ]]]></title><description><![CDATA[<p></p><p>Je me suis retrouv&#xE9; &#xE0; devoir modifier un fichier binaire . </p><p>Et la StackOverflow m&apos;a sauv&#xE9; la mise et voici quoi faire.</p><p>Installer l&apos;utilitaire bbe sur votre distribution ;</p><!--kg-card-begin: markdown--><pre><code>Ubuntu
apt install bbe

Fedora
yum install bbe
</code></pre>
<!--kg-card-end: markdown--><p>et viens la commande magique :</p><!--kg-card-begin: markdown--><pre><code>bbe -e &apos;s/</code></pre>]]></description><link>https://harmakhis.net/modifier-un-fichier-binaire/</link><guid isPermaLink="false">6580502731c08500018c83c0</guid><category><![CDATA[Lets-go]]></category><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Mon, 17 Jan 2022 12:18:24 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1569396116180-210c182bedb8?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDJ8fGJpbmFyeXxlbnwwfHx8fDE2NDI0MjE4NjI&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1569396116180-210c182bedb8?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDJ8fGJpbmFyeXxlbnwwfHx8fDE2NDI0MjE4NjI&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="[ Modifier un fichier Binaire ]"><p></p><p>Je me suis retrouv&#xE9; &#xE0; devoir modifier un fichier binaire . </p><p>Et la StackOverflow m&apos;a sauv&#xE9; la mise et voici quoi faire.</p><p>Installer l&apos;utilitaire bbe sur votre distribution ;</p><!--kg-card-begin: markdown--><pre><code>Ubuntu
apt install bbe

Fedora
yum install bbe
</code></pre>
<!--kg-card-end: markdown--><p>et viens la commande magique :</p><!--kg-card-begin: markdown--><pre><code>bbe -e &apos;s/nom_a_modifier/nouveau_nom_de_fichier/&apos; fichier_binaire &gt; le_nouveau_fichier_binaire
</code></pre>
<!--kg-card-end: markdown--><p>Ca peut toujours servir</p>]]></content:encoded></item><item><title><![CDATA[[ Vider les mails de /var/mail/* ]]]></title><description><![CDATA[<p></p><p>Et oui des mails d&apos;erreurs stock&#xE9;s en local pour le user www-data et jamais consult&#xE9; , bon ben on va les supprimer avec cette simple commande.</p><!--kg-card-begin: markdown--><pre><code> &gt; /var/mail/www-data
</code></pre>
<!--kg-card-end: markdown-->]]></description><link>https://harmakhis.net/vider-les-mails/</link><guid isPermaLink="false">6580502731c08500018c83bf</guid><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Tue, 11 Jan 2022 11:07:06 GMT</pubDate><content:encoded><![CDATA[<p></p><p>Et oui des mails d&apos;erreurs stock&#xE9;s en local pour le user www-data et jamais consult&#xE9; , bon ben on va les supprimer avec cette simple commande.</p><!--kg-card-begin: markdown--><pre><code> &gt; /var/mail/www-data
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[[ Gestionnaire d'empreinte sous Ubuntu ]]]></title><description><![CDATA[<p></p><p>Depuis un bout de temps, nous retrouvons des lecteurs d&apos;empreintes int&#xE9;gr&#xE9;s a nos ordinateurs portables.</p><p>Allez c&#xE9;dons &#xE0; la tentation et depuis notre distribution pr&#xE9;f&#xE9;r&#xE9;e, rajouter l&apos;ouverture de session via un gestionnaire d&apos;</p>]]></description><link>https://harmakhis.net/gestionnaire-dempreinte-sous-ubuntu/</link><guid isPermaLink="false">6580502731c08500018c83be</guid><category><![CDATA[Lets-go]]></category><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Mon, 10 Jan 2022 23:46:01 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1585079374502-415f8516dcc3?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDF8fGZpbmdlcnByaW50fGVufDB8fHx8MTY0MTg1ODU5Nw&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1585079374502-415f8516dcc3?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDF8fGZpbmdlcnByaW50fGVufDB8fHx8MTY0MTg1ODU5Nw&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="[ Gestionnaire d&apos;empreinte sous Ubuntu ]"><p></p><p>Depuis un bout de temps, nous retrouvons des lecteurs d&apos;empreintes int&#xE9;gr&#xE9;s a nos ordinateurs portables.</p><p>Allez c&#xE9;dons &#xE0; la tentation et depuis notre distribution pr&#xE9;f&#xE9;r&#xE9;e, rajouter l&apos;ouverture de session via un gestionnaire d&apos;empreintes.</p><p>tout d&apos;abord il nous faut installer la paquet suivant</p><!--kg-card-begin: markdown--><pre><code>
sudo apt install libpam-fprintd

</code></pre>
<!--kg-card-end: markdown--><p>Et depuis le gestionnaire des utilisateurs , vous verrez appara&#xEE;tre l&apos;option suivante :</p><figure class="kg-card kg-image-card"><img src="https://harmakhis.net/content/images/2022/01/gestionnaire.png" class="kg-image" alt="[ Gestionnaire d&apos;empreinte sous Ubuntu ]" loading="lazy" width="980" height="687" srcset="https://harmakhis.net/content/images/size/w600/2022/01/gestionnaire.png 600w, https://harmakhis.net/content/images/2022/01/gestionnaire.png 980w" sizes="(min-width: 720px) 720px"></figure><p>Et comme nous sommes des geeks , pourquoi ne pas l&apos;activer aussi pour le terminal hum ?!</p><!--kg-card-begin: markdown--><pre><code>
sudo pam-auth-update

</code></pre>
<!--kg-card-end: markdown--><p>Et de la il n&apos;y aura qu&apos;a cocher l&apos;option &quot;fingerprint authentification&quot;</p><figure class="kg-card kg-image-card"><img src="https://harmakhis.net/content/images/2022/04/FingerPrint.gif" class="kg-image" alt="[ Gestionnaire d&apos;empreinte sous Ubuntu ]" loading="lazy" width="813" height="528"></figure>]]></content:encoded></item><item><title><![CDATA[[ Redimensionner une partition sans redémarrer ]]]></title><description><![CDATA[<p>Et voila, votre outil de monitoring pr&#xE9;f&#xE9;r&#xE9; vous indique que vous utilisez d&#xE9;j&#xE0; 84% de l&apos;espace de stockage. Et bien sur ce serveur est utilis&#xE9; en prod et il ne peut pas &#xEA;tre arr&#xEA;t&#xE9; comme</p>]]></description><link>https://harmakhis.net/redimensionner-une-partition-sans-redemarrer/</link><guid isPermaLink="false">6580502731c08500018c83bd</guid><category><![CDATA[Lets-go]]></category><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Tue, 14 Dec 2021 08:34:59 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1619545493446-b378e885c6de?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDF8fGZ1bGx8ZW58MHx8fHwxNjM5NDcwNTU0&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1619545493446-b378e885c6de?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDF8fGZ1bGx8ZW58MHx8fHwxNjM5NDcwNTU0&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="[ Redimensionner une partition sans red&#xE9;marrer ]"><p>Et voila, votre outil de monitoring pr&#xE9;f&#xE9;r&#xE9; vous indique que vous utilisez d&#xE9;j&#xE0; 84% de l&apos;espace de stockage. Et bien sur ce serveur est utilis&#xE9; en prod et il ne peut pas &#xEA;tre arr&#xEA;t&#xE9; comme on veut ( sauf bien sur cataclysme extraordinaire)</p><p> <br>Partons du principe que vous utilisez comme moi Proxmox et que vou avez deja ajouter de l&apos;espace de stockage sur votre VM depuis l&apos;interface web.<br></p><p>Mon espace de stockage est r&#xE9;parti tel quel :</p><pre><code class="language-mixed">/dev/sda1 -&gt; La partition a augmenter de 200Go
/dev/sda2 -&gt; La partition Swap </code></pre><p><br>Nous allons d&#xE9;sactiver la partition swap</p><!--kg-card-begin: markdown--><pre><code>adminuser@654578.kimsufi.com:/home/deploy# swapoff -a</code></pre>
<!--kg-card-end: markdown--><p><br>Apr&#xE8;s avoir passer la commande &quot;blkid&quot; et identifier votre disque , vous pourrez commencer &#xE0; charger l&apos;outil de gestion de disque<br></p><!--kg-card-begin: markdown--><pre><code>adminuser@654578.kimsufi.com:/home/deploy# fdisk /dev/sda

Commande (m pour l&apos;aide) : d
Num&#xE9;ro de partition (1-3, 3 par d&#xE9;faut) :La partition 3 a &#xE9;t&#xE9; supprim&#xE9;e.

Commande (m pour l&apos;aide) : d
Num&#xE9;ro de partition (1,2, 2 par d&#xE9;faut) :La partition 2 a &#xE9;t&#xE9; supprim&#xE9;e.

Commande (m pour l&apos;aide) : d
Partition 1 s&#xE9;lectionn&#xE9;eLa partition 1 a &#xE9;t&#xE9; supprim&#xE9;e. </code></pre>
<!--kg-card-end: markdown--><p>On peut donc commencer a cr&#xE9;er des nouvelles partitions </p><!--kg-card-begin: markdown--><pre><code>Commande (m pour l&apos;aide) : n
Type de partition
p primaire (0 primaire, 0 &#xE9;tendue, 4 libre)
e &#xE9;tendue (conteneur pour partitions logiques)
S&#xE9;lectionnez (p par d&#xE9;faut) : p
Num&#xE9;ro de partition (1-4, 1 par d&#xE9;faut) :
Premier secteur (2048-692060159, 2048 par d&#xE9;faut) :
Dernier secteur, +secteurs ou +taille{K,M,G,T,P} (2048-692060159, 692060159 par d&#xE9;faut) : +200G
Une nouvelle partition 1 de type &#xAB; Linux &#xBB; et de taille 200 GiB a &#xE9;t&#xE9; cr&#xE9;&#xE9;e.

Commande (m pour l&apos;aide) : n
Type de partition
p primaire (1 primaire, 0 &#xE9;tendue, 3 libre)
e &#xE9;tendue (conteneur pour partitions logiques)
S&#xE9;lectionnez (p par d&#xE9;faut) : p
Num&#xE9;ro de partition (2-4, 2 par d&#xE9;faut) :
Premier secteur (419432448-692060159, 419432448 par d&#xE9;faut) :
Dernier secteur, +secteurs ou +taille{K,M,G,T,P} (419432448-692060159, 692060159 par d&#xE9;faut) : +5G
Une nouvelle partition 2 de type &#xAB; Linux &#xBB; et de taille 5 GiB a &#xE9;t&#xE9; cr&#xE9;&#xE9;e.</code></pre>
<!--kg-card-end: markdown--><p>On initialise la partition Swap </p><!--kg-card-begin: markdown--><pre><code>Commande (m pour l&apos;aide) : t
Num&#xE9;ro de partition (1-3, 3 par d&#xE9;faut) : 2
Code Hexa (taper L pour afficher tous les codes) :L
Code Hexa (taper L pour afficher tous les codes) :82
Type de partition &#xAB; Linux &#xBB; modifi&#xE9; en &#xAB; Linux swap / Solaris &#xBB;.
</code></pre>
<!--kg-card-end: markdown--><p>Puis on &#xE9;crit les modifications </p><!--kg-card-begin: markdown--><pre><code>Commande (m pour l&apos;aide) : w
La table de partitions a &#xE9;t&#xE9; alt&#xE9;r&#xE9;e.
Appel d&apos;ioctl() pour relire la table de partitions.
&#xC9;chec de relecture de la table de partitions.: P&#xE9;riph&#xE9;rique ou ressource occup&#xE9;</code></pre>
<!--kg-card-end: markdown--><p> Pour que les modifications soit prises sans red&#xE9;marrage </p><!--kg-card-begin: markdown--><pre><code>adminuser@654578.kimsufi.com:/home/deploy# partprobe
adminuser@654578.kimsufi.com:/home/deploy# resize2fs /dev/sda1
adminuser@654578.kimsufi.com:/home/deploy# mkswap /dev/sda2
Configure l&apos;espace d&apos;&#xE9;change (swap) en version 1, taille = 5242876 Kiopas d&apos;&#xE9;tiquette, UUID=ca942c05-4b36-4f28-abbc-4962720be52e</code></pre>
<!--kg-card-end: markdown--><p>Ah hum si il ne connait pas la commande partprobe , il faut install&#xE9; ceci</p><!--kg-card-begin: markdown--><pre><code>apt install parted
ou
yum install parted</code></pre>
<!--kg-card-end: markdown--><p>On r&#xE9;cup&#xE9;rer UUID de la partition Swap et nous la modifions dans fstab. Sans cela au prochain reboot la machine restera bloqu&#xE9; et il vous faudra chroot votre systeme pour modifier ce fichier </p><!--kg-card-begin: markdown--><pre><code>adminuser@654578.kimsufi.com:/home/deploy# vim /etc/fstab</code></pre>
<!--kg-card-end: markdown--><p>Et pour finir</p><!--kg-card-begin: markdown--><pre><code>adminuser@654578.kimsufi.com:/home/deploy# swapon -a</code></pre>
<!--kg-card-end: markdown--><p> &#xA0; </p>]]></content:encoded></item><item><title><![CDATA[[ Nextcloud Webdav ] BadRequest Expected Filesize Of]]></title><description><![CDATA[BadRequest - Webdav - Nextcloud - Docker]]></description><link>https://harmakhis.net/nextcloud-webdav/</link><guid isPermaLink="false">6580502731c08500018c83bc</guid><category><![CDATA[Lets-go]]></category><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Tue, 07 Dec 2021 15:08:49 GMT</pubDate><media:content url="https://harmakhis.net/content/images/2021/12/Capture-d-e-cran-2021-12-07-a--09.47.44-1.png" medium="image"/><content:encoded><![CDATA[<img src="https://harmakhis.net/content/images/2021/12/Capture-d-e-cran-2021-12-07-a--09.47.44-1.png" alt="[ Nextcloud Webdav ] BadRequest Expected Filesize Of"><p></p><p>Mais qu&apos;est ce que ce charabia signifie ???!</p><p>Le contexte, je cherchais &#xE0; d&#xE9;ployer via docker une instance Nextcloud et utiliser du webdav. Tout allait au mieux jusqu&apos;au moment ou j&apos;ai voulu utiliser CyberDuck et me connecter au webdav pour envoyer un fichier de 1,9Go.</p><p>Rien de sp&#xE9;cial en th&#xE9;orie, mais c&apos;est la que je remarque que l&apos;upload tourne en rond et &#xE9;choue.</p><p>Tout vient en fait d&apos;un param&#xE9;trage manquant dans mon proxy <a href="https://nginxproxymanager.com/">Nginx-Proxy-Manager</a> et voici la solution &#xE0; tous vos maux:</p><figure class="kg-card kg-image-card"><img src="https://harmakhis.net/content/images/2021/12/image.png" class="kg-image" alt="[ Nextcloud Webdav ] BadRequest Expected Filesize Of" loading="lazy" width="996" height="1066" srcset="https://harmakhis.net/content/images/size/w600/2021/12/image.png 600w, https://harmakhis.net/content/images/2021/12/image.png 996w" sizes="(min-width: 720px) 720px"></figure><p>La subtilit&#xE9; vient surtout des parametres suivants :</p><ul><li>proxy_headers_hash_max_size </li><li>proxy_headers_hash_bucket_size </li></ul><p></p>]]></content:encoded></item><item><title><![CDATA[Un Blog mais pour quoi faire..]]></title><description><![CDATA[<p></p><p>Cela fait un moment que je souhaitais partager des astuces et bons plans.</p><p>Je vais parler un peu de tout mais surtout d&apos;informatique.</p><p>Bon ben faut se lancer et on va commencer par ... </p>]]></description><link>https://harmakhis.net/un-blog-mais-pour-quoi-faire-2/</link><guid isPermaLink="false">6580502731c08500018c83bb</guid><category><![CDATA[Lets-go]]></category><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Tue, 30 Nov 2021 21:30:17 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1484069560501-87d72b0c3669?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDd8fHF1ZXN0aW9uJTIwbWFya3xlbnwwfHx8fDE2MzgzMDc1ODM&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1484069560501-87d72b0c3669?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDd8fHF1ZXN0aW9uJTIwbWFya3xlbnwwfHx8fDE2MzgzMDc1ODM&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="Un Blog mais pour quoi faire.."><p></p><p>Cela fait un moment que je souhaitais partager des astuces et bons plans.</p><p>Je vais parler un peu de tout mais surtout d&apos;informatique.</p><p>Bon ben faut se lancer et on va commencer par ... </p>]]></content:encoded></item><item><title><![CDATA[Un Blog mais pour quoi faire..]]></title><description><![CDATA[<p></p><p>Cela fait un moment que je souhaitais partager des astuces et bons plans.</p><p>Je vais parler un peu de tout mais surtout d&apos;informatique.</p><p>Bon ben faut se lancer et on va commencer par ... </p>]]></description><link>https://harmakhis.net/un-blog-mais-pour-quoi-faire/</link><guid isPermaLink="false">61a697054c802800016e4683</guid><category><![CDATA[Lets-go]]></category><dc:creator><![CDATA[Harmakhis]]></dc:creator><pubDate>Tue, 30 Nov 2021 21:30:17 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1484069560501-87d72b0c3669?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDd8fHF1ZXN0aW9uJTIwbWFya3xlbnwwfHx8fDE2MzgzMDc1ODM&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1484069560501-87d72b0c3669?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDd8fHF1ZXN0aW9uJTIwbWFya3xlbnwwfHx8fDE2MzgzMDc1ODM&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="Un Blog mais pour quoi faire.."><p></p><p>Cela fait un moment que je souhaitais partager des astuces et bons plans.</p><p>Je vais parler un peu de tout mais surtout d&apos;informatique.</p><p>Bon ben faut se lancer et on va commencer par ... </p>]]></content:encoded></item></channel></rss>