But on RHEL9 / ROCKY9 you need to use
scl enable devtoolset-12 bash
$python -m SimpleHTTPServer
#ch9_simplehttpserver.py
import SimpleHTTPServer
import SocketServer
import urllib
#HTTP Request Handler Class
class RequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
#POST Method
def do_POST(self):
content_length = int(self.headers["Content-Length"])
post_data = self.rfile.read(content_length).decode("utf-8")
print(post_data)
self.send_response(200)
self.send_header("Content-Type", "text/html")
self.end_headers()
webpage = "<html><head><h1>Success!</h1></head><body></body></html>"
self.wfile.write(webpage)
#GET Method
def do_GET(self):
if self.path == "/":
self.send_response(200)
self.send_header("Content-Type", "text/html")
self.end_headers()
webpage = "<html><head><h1>Hello World</h1></head><body></body></html>"
self.wfile.write(webpage)
#Start the Web Server on TCP 8080
web_server = SocketServer.TCPServer(("0.0.0.0", 8080), RequestHandler)
web_server.serve_forever()
Try this, it worked for me, in the following file:
vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php
Find this line and comment it:
$packages = json_decode($this->files->get($path), true);
Add two new lines after the above commented line:
$installed = json_decode($this->files->get($path), true);
$packages = $installed['packages'] ?? $installed;
firewall-cmd --zone=public --add-port=161/udp --permanent
firewall-cmd --zone=public --add-port=162/udp --permanent
firewall-cmd --reload
.ssh/config
Host *
ForwardX11 yes
# Give all permissions to all for the directories and
# Revoke the permission for others
find . -type d -exec chmod +rwx,o-rwx {} +
# Unset all premissionas for all files and
# Give read & write premission to the owners
find . -type f -exec chmod -rwx,u+rw {} +
install -g zabbix -o zabbix -d /var/run/zabbix -m 0700
nmcli con down id "System ens192" && nmcli con up id "System ens192"
git clone --mirror ssh://paroberts@10.18.96.5:29418/osaka_fw_dev
cd osaka_fw_dev
git push --mirror https://paroberts:$APIKEY@u3-gitlab-0.goodix.com/firmware/osaka_fw_dev.git
Then to update.
git fetch --all
git push --mirror https://paroberts:$APIKEY@u3-gitlab-0.goodix.com/firmware/osaka_fw_dev.git