<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Commande on kenji.blog</title><link>http://kenji.blog/fr/tags/commande/</link><description>Recent content in Commande on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>fr</language><copyright>kenjinote</copyright><lastBuildDate>Sat, 01 Feb 2025 17:15:34 +0900</lastBuildDate><atom:link href="http://kenji.blog/fr/tags/commande/index.xml" rel="self" type="application/rss+xml"/><item><title>Appeler l'API ChatGPT depuis curl</title><link>http://kenji.blog/fr/p/chatgpt-api%E3%82%92curl%E3%81%8B%E3%82%89%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%99/</link><pubDate>Sat, 01 Feb 2025 17:15:34 +0900</pubDate><guid>http://kenji.blog/fr/p/chatgpt-api%E3%82%92curl%E3%81%8B%E3%82%89%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%99/</guid><description>&lt;img src="http://kenji.blog/p/chatgpt-api%E3%82%92curl%E3%81%8B%E3%82%89%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%99/img.png" alt="Featured image of post Appeler l'API ChatGPT depuis curl" />&lt;h1 id="appeler-lapi-chatgpt-depuis-curl">Appeler l&amp;rsquo;API ChatGPT depuis curl
&lt;/h1>&lt;p>Il est supposé que l&amp;rsquo;appel est effectué depuis l&amp;rsquo;invite de commande Windows.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">curl https://api.openai.com/v1/chat/completions -H &amp;#34;Content-Type: application/json&amp;#34; -H &amp;#34;Authorization: Bearer sk-proj-XXXXXXXXXXXXXXXXXXXX&amp;#34; -d &amp;#34;{&amp;#34;&amp;#34;model&amp;#34;&amp;#34;: &amp;#34;&amp;#34;gpt-3.5-turbo&amp;#34;&amp;#34;,&amp;#34;&amp;#34;messages&amp;#34;&amp;#34;: [{&amp;#34;&amp;#34;role&amp;#34;&amp;#34;: &amp;#34;&amp;#34;system&amp;#34;&amp;#34;, &amp;#34;&amp;#34;content&amp;#34;&amp;#34;: &amp;#34;&amp;#34;Veuillez répondre dans le dialecte du Kansai.&amp;#34;&amp;#34;}, {&amp;#34;&amp;#34;role&amp;#34;&amp;#34;: &amp;#34;&amp;#34;user&amp;#34;&amp;#34;, &amp;#34;&amp;#34;content&amp;#34;&amp;#34;: &amp;#34;&amp;#34;Insérez le message que vous souhaitez envoyer ici&amp;#34;&amp;#34;}]}&amp;#34;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div></description></item><item><title>Obtenir uniquement la dernière version du dépôt git</title><link>http://kenji.blog/fr/p/obtenir-uniquement-la-derniere-version-du-depot-git/</link><pubDate>Sat, 27 Apr 2024 02:54:12 +0900</pubDate><guid>http://kenji.blog/fr/p/obtenir-uniquement-la-derniere-version-du-depot-git/</guid><description>&lt;img src="http://kenji.blog/p/git%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%81%AE%E6%9C%80%E6%96%B0%E3%81%A0%E3%81%91%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B/img.png" alt="Featured image of post Obtenir uniquement la dernière version du dépôt git" />&lt;h1 id="obtenir-uniquement-la-dernière-version-du-dépôt-git">Obtenir uniquement la dernière version du dépôt git
&lt;/h1>&lt;p>Vous pouvez obtenir uniquement la dernière version du dépôt avec la commande suivante.
C&amp;rsquo;est utile lorsque vous souhaitez obtenir le dépôt rapidement pour économiser de l&amp;rsquo;espace disque.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">git clone --depth 1 &amp;lt;URL du dépôt&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div></description></item><item><title>Comment lancer l'éditeur Hidemaru avec la commande 'hide'</title><link>http://kenji.blog/fr/p/comment-lancer-l-editeur-hidemaru-avec-la-commande-hide/</link><pubDate>Fri, 29 Mar 2024 23:45:37 +0900</pubDate><guid>http://kenji.blog/fr/p/comment-lancer-l-editeur-hidemaru-avec-la-commande-hide/</guid><description>&lt;img src="http://kenji.blog/p/%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89hide%E3%81%A7%E7%A7%80%E4%B8%B8%E3%82%A8%E3%83%87%E3%82%A3%E3%82%BF%E3%82%92%E7%AB%8B%E3%81%A1%E4%B8%8A%E3%81%92%E3%82%8B%E6%96%B9%E6%B3%95/img_2.png" alt="Featured image of post Comment lancer l'éditeur Hidemaru avec la commande 'hide'" />&lt;h2 id="voici-comment-lancer-léditeur-hidemaru-avec-la-commande-hide">Voici comment lancer l&amp;rsquo;éditeur Hidemaru avec la commande &amp;lsquo;hide&amp;rsquo;.
&lt;/h2>&lt;p>Remarque : Cette méthode a été testée sur &lt;code>Windows 10/11&lt;/code>.&lt;/p>
&lt;ol>
&lt;li>Ouvrez l&amp;rsquo;Éditeur du Registre.&lt;/li>
&lt;li>Accédez à &lt;code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths&lt;/code>.&lt;/li>
&lt;li>Créez une clé nommée &lt;code>hide.exe&lt;/code> sous &lt;code>App Paths&lt;/code>. &lt;strong>La partie avant &lt;code>.exe&lt;/code> dans le nom de cette clé devient le nom de la commande.&lt;/strong>&lt;/li>
&lt;li>Définissez la valeur &lt;code>(par défaut)&lt;/code> de la clé &lt;code>hide.exe&lt;/code> sur le chemin du fichier exécutable de l&amp;rsquo;éditeur Hidemaru. Dans mon environnement, c&amp;rsquo;était &lt;code>&amp;quot;C:\Program Files (x86)\Hidemaru\Hidemaru.exe&amp;quot;&lt;/code>.&lt;/li>
&lt;li>Créez une valeur Chaîne nommée &lt;code>Path&lt;/code> dans la clé &lt;code>hide.exe&lt;/code>.&lt;/li>
&lt;li>Définissez les données de &lt;code>Path&lt;/code> sur le chemin du dossier contenant le fichier exécutable de l&amp;rsquo;éditeur Hidemaru. Dans mon environnement, c&amp;rsquo;était &lt;code>&amp;quot;C:\Program Files (x86)\Hidemaru&amp;quot;&lt;/code>.&lt;/li>
&lt;li>Maintenant, dans la boîte de dialogue &lt;strong>Exécuter&lt;/strong> (ouverte en appuyant sur la touche &lt;code>Win&lt;/code> + &lt;code>R&lt;/code>), vous pouvez lancer l&amp;rsquo;éditeur Hidemaru en utilisant la commande &lt;code>hide&lt;/code>. De plus, dans l&amp;rsquo;Invite de commandes, vous pouvez le lancer avec la commande &lt;code>start hide&lt;/code>.&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;span class="lnt">5
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">Windows Registry Editor Version 5.00
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\hide.exe]
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">@=&amp;#34;\&amp;#34;C:\\Program Files (x86)\\Hidemaru\\Hidemaru.exe\&amp;#34;&amp;#34;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&amp;#34;Path&amp;#34;=&amp;#34;\&amp;#34;C:\\Program Files (x86)\\Hidemaru\\\&amp;#34;&amp;#34;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Si vous enregistrez le contenu ci-dessus dans un fichier &lt;code>.reg&lt;/code> et que vous l&amp;rsquo;exécutez, les paramètres seront ajoutés au registre.&lt;/p>
&lt;p>&lt;img src="http://kenji.blog/p/%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89hide%E3%81%A7%E7%A7%80%E4%B8%B8%E3%82%A8%E3%83%87%E3%82%A3%E3%82%BF%E3%82%92%E7%AB%8B%E3%81%A1%E4%B8%8A%E3%81%92%E3%82%8B%E6%96%B9%E6%B3%95/img_1.png"
width="399"
height="206"
srcset="http://kenji.blog/p/%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89hide%E3%81%A7%E7%A7%80%E4%B8%B8%E3%82%A8%E3%83%87%E3%82%A3%E3%82%BF%E3%82%92%E7%AB%8B%E3%81%A1%E4%B8%8A%E3%81%92%E3%82%8B%E6%96%B9%E6%B3%95/img_1_hue374203b955e2a50cac4186ada52cd43_10600_480x0_resize_box_3.png 480w, http://kenji.blog/p/%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89hide%E3%81%A7%E7%A7%80%E4%B8%B8%E3%82%A8%E3%83%87%E3%82%A3%E3%82%BF%E3%82%92%E7%AB%8B%E3%81%A1%E4%B8%8A%E3%81%92%E3%82%8B%E6%96%B9%E6%B3%95/img_1_hue374203b955e2a50cac4186ada52cd43_10600_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="img_1.png"
class="gallery-image"
data-flex-grow="193"
data-flex-basis="464px"
>&lt;/p></description></item><item><title>Connexion à Distance Facile avec TeamViewer</title><link>http://kenji.blog/fr/p/connexion-%C3%A0-distance-facile-avec-teamviewer/</link><pubDate>Fri, 13 Jan 2023 01:45:00 +0900</pubDate><guid>http://kenji.blog/fr/p/connexion-%C3%A0-distance-facile-avec-teamviewer/</guid><description>&lt;img src="http://kenji.blog/p/teamviewer%E3%81%A7%E7%B0%A1%E5%8D%98%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%E6%8E%A5%E7%B6%9A/img.png" alt="Featured image of post Connexion à Distance Facile avec TeamViewer" />&lt;h1 id="connexion-à-distance-facile-avec-teamviewer">Connexion à Distance Facile avec TeamViewer
&lt;/h1>&lt;p>L&amp;rsquo;utilisation de TeamViewer permet d&amp;rsquo;établir facilement une connexion de bureau à distance.&lt;/p>
&lt;p>Démarrez TeamViewer sur la destination et la source distantes,
entrez l&amp;rsquo;ID et le mot de passe de la destination sur la source pour vous connecter à distance.&lt;/p>
&lt;p>Pour vous connecter à distance via la ligne de commande, procédez comme suit:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">%ProgramFiles%\TeamViewer\TeamViewer.exe -i &amp;lt;ID&amp;gt; -P &amp;lt;Password&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Entrez l&amp;rsquo;ID de la destination dans &lt;code>&amp;lt;ID&amp;gt;&lt;/code> et le mot de passe de la destination dans &lt;code>&amp;lt;Password&amp;gt;&lt;/code>.&lt;/p>
&lt;p>Il est pratique de créer un fichier de raccourci avec la commande ci-dessus, car cela permet d&amp;rsquo;omettre la saisie de l&amp;rsquo;ID/PW.&lt;/p>
&lt;p>Site de référence : &lt;a class="link" href="https://community.teamviewer.com/English/kb/articles/34447-command-line-parameters" target="_blank" rel="noopener"
>Command line parameters&lt;/a>&lt;/p></description></item></channel></rss>