2025-02-23 21:49:17 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Dark Themed Test Page</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background-color: #121212;
|
|
|
|
color: #e0e0e0;
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
margin: 0;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
color: #bb86fc;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: #bb86fc;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
max-width: 800px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
p, ul, ol {
|
|
|
|
line-height: 1.6;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
background-color: #454545;
|
|
|
|
color: #bb86fc;
|
|
|
|
padding: 2px 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
background-color: #333;
|
|
|
|
color: #e0e0e0;
|
|
|
|
padding: 10px;
|
|
|
|
border-radius: 5px;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h1>Test Page</h1>
|
|
|
|
<p>This is a simple example of a dark-themed HTML page. You can customize it further as needed.</p>
|
|
|
|
|
|
|
|
<h2>Sample Content</h2>
|
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
|
|
|
|
|
|
|
<ul>
|
2025-02-23 22:24:58 +02:00
|
|
|
<li>Music</li>
|
|
|
|
<li>Color</li>
|
|
|
|
<li>Forms</li>
|
2025-02-23 21:49:17 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Code Example</h3>
|
|
|
|
<pre><code>import subprocess
|
|
|
|
import os
|
|
|
|
|
|
|
|
# Create the bash script content
|
|
|
|
bash_script = """#!/bin/bash
|
|
|
|
echo "Hello World from Bash!"
|
|
|
|
"""
|
|
|
|
|
|
|
|
# Write the bash script to a file
|
|
|
|
with open("hello.sh", "w") as f:
|
|
|
|
f.write(bash_script)
|
|
|
|
|
|
|
|
# Make the bash script executable
|
|
|
|
os.chmod("hello.sh", 0o755)
|
|
|
|
|
|
|
|
# Execute the bash script from Python
|
|
|
|
try:
|
|
|
|
result = subprocess.run(["./hello.sh"], capture_output=True, text=True)
|
|
|
|
print("Bash script output:", result.stdout)
|
|
|
|
except subprocess.CalledProcessError as e:
|
|
|
|
print("Error executing bash script:", e)
|
|
|
|
</code></pre>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|