<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Commands on Notities</title><link>https://19cc27e0.backup-website.pages.dev/tags/commands/</link><description>Recent content in Commands on Notities</description><generator>Hugo</generator><language>nl</language><lastBuildDate>Wed, 15 Jul 2026 23:50:02 +0200</lastBuildDate><atom:link href="https://19cc27e0.backup-website.pages.dev/tags/commands/index.xml" rel="self" type="application/rss+xml"/><item><title>Snelle git-opdrachten om een lokale repository in Visual Studio Code toe te voegen aan GitHub</title><link>https://19cc27e0.backup-website.pages.dev/blog/2025-quick-git-commands-to-add-a-local-repository-in-visual-studio-code-to-github/</link><pubDate>Fri, 03 Jan 2025 22:23:19 +0000</pubDate><guid>https://19cc27e0.backup-website.pages.dev/blog/2025-quick-git-commands-to-add-a-local-repository-in-visual-studio-code-to-github/</guid><description>&lt;p&gt;T﻿ype in de terminal van Visual Studio Code&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#﻿ git init&lt;br&gt;
#﻿ git add .&lt;br&gt;
#﻿ git commit -m &amp;ldquo;initial commit&amp;rdquo;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;M﻿aak een nieuwe repository aan op GitHub&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#﻿ git remote add origin &amp;lt;de nieuwe .git URL&amp;gt;&lt;br&gt;
Voorbeeld: #﻿ git remote add origin &lt;a href="https://github.com/martijnvandenboom/Java_tools.git"&gt;https://github.com/martijnvandenboom/Java_tools.git&lt;/a&gt;&lt;br&gt;
#﻿ git push -u origin main&lt;/p&gt;
&lt;/blockquote&gt;</description></item><item><title>SSH naar een externe machine met SSH-sleutels en commando uitvoeren in nieuw Python 3</title><link>https://19cc27e0.backup-website.pages.dev/blog/2024-ssh-in-remote-machine-with-ssh-keys-and-run-command-in-new-python-3/</link><pubDate>Wed, 03 Apr 2024 20:20:39 +0000</pubDate><guid>https://19cc27e0.backup-website.pages.dev/blog/2024-ssh-in-remote-machine-with-ssh-keys-and-run-command-in-new-python-3/</guid><description>&lt;p&gt;O﻿m een script te maken voor het uitvoeren van externe commando&amp;rsquo;s in een client-servernetwerk.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;import subprocess

def ssh_exec_command(hostname, username, command):
 ssh_cmd = [&amp;#39;ssh&amp;#39;, f&amp;#39;{username}@{hostname}&amp;#39;, command]
 ssh_process = subprocess.Popen(
 ssh_cmd,
 stdin=subprocess.PIPE,
 stdout=subprocess.PIPE,
 stderr=subprocess.PIPE,
 text=True
 )
 output, error = ssh_process.communicate()

 if error:
 print(&amp;#34;Error:&amp;#34;, error)
 else:
 print(&amp;#34;Output:&amp;#34;, output)

# Vervang deze door uw werkelijke inloggegevens en commando
hostname = &amp;#39;remote_host_address&amp;#39;
username = &amp;#39;your_username&amp;#39;
command = &amp;#39;ls -l&amp;#39;

ssh_exec_command(hostname, username, command)
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>