Huawai WhatsApp

Aktuell gibt es ein Problem Whats App auf Huawei Geräten upzudaten stand 08.Mai.2021 Dies geht Aktuell über einen umweg über den PC, da in Petal Search die aktuelle Version noch nicht online ist, geht dazu auf https://www.whatsapp.com/android/ ladet die aktuelle apk herunter und zieht diese auf euer smartphone viel spaß mit whats app und alles Weiterlesen…

WordPress Warning: Undefined array key “a:1:{s:3:”ssl”;b:1;}”

Warning: Undefined array key “a:1:{s:3:”ssl”;b:1;}” in /wp-includes/class-requests.php on line 214 Um den Fehler in WordPress für die Nutzer auszublenden fürgen Sie “error_reporting (0);” in die wp-config.php für den Adminbereich unter \wp-includes\class-requests.php Achtung WordPress + Plugins können bei diesem Anbieter nicht automatisiert aktualisiert werden! Die regelmäßige Aktualisierung wird aus Sicherheitsgründen empfohlen!

Generate SHA256 for Integrity Origin

To Keep the Integrity of External Files: script src=”https://code.jquery.com/jquery-1.12.3.min.js” integrity=”sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=” crossorigin=”anonymous” to generate the integrity part you can use the following linux bash script followed by the src file: #!/bin/bash url=$1 && file=”${url##*/}” && wget $url && extension=”${url##*.}” && echo -e “\n\n” if [ $extension = ‘js’ ] then echo -e “Generate JS HTML output\n” Weiterlesen…

Simple VPN with OpenVPN Server Script

Create OpenVPN Server and Client wget https://git.io/vpn -O openvpn-ubuntu-install.sh chmod +x openvpn-ubuntu-install.sh sudo ./openvpn-ubuntu-install.sh Copy the from the Script generated *.ovpn file to your Client Desktop Get The Client from: https://openvpn.net/download-open-vpn/ Import the *.ovpn file inside the Windows Client or use the terminal openvpn with the *.ovpn file as parameter. Internet by OpenVPN: Routing Configuration Weiterlesen…

hostname persistent – permanently without restart

Change hostname on Ubuntu without restart To change the hostname permanently without a restart enter the following command: hostnamectl set-hostname myhostname To verify: hostnamectl /etc/hostname contains name of the machine, as known to applications that run locally. /etc/hosts and DNS associate names with IP addresses. hostname may be mapped to whichever IP address the machine can access itself, but Weiterlesen…

Node JS Socket.IO

//—————- HTTPS Server —————————————- var fs = require(‘fs’); var https = require(‘https’); var express = require(‘express’); var app = express(); var options = { key: fs.readFileSync(‘/etc/letsencrypt/live/hg-system.com/privkey.pem’), cert: fs.readFileSync(‘/etc/letsencrypt/live/hg-system.com/fullchain.pem’) }; var server = https.createServer(options, app); var port = 3000; server.listen(port, function() { log(‘listening on *:’ + port); }); app.use(express.static(‘public’)); app.get(‘/’, (req, res) => { res.sendFile(‘index.html’); }); Weiterlesen…

NodeJS DB Connection

//—————- SQL Server —————————————- var mysql = require(‘mysql’); var db = mysql.createConnection({ host : ‘localhost’, user : ‘dbuser’, password : ‘dbpass’, database: ‘dbname’ }); db.connect(); db.query(‘SELECT 1 + 1 AS solution‘, function(err, rows, fields) { if (err) throw err; console.log(‘The solution is: ‘, rows[0].solution); }); process.on(‘exit’, function (){ db.end(); console.log(‘Goodbye!’); });

NodeJS HTTP/HTTPS – Server (with Let’s Encrypt SSL Cert)

Basic HTTP-Server var fs = require(‘fs’); var http = require(‘http’); var express = require(‘express’); var app = express(); var server = http.createServer(app); var port = 3000; server.listen(port, function() { log(‘listening on *:’ + port); }); app.use(express.static(‘public’)); app.get(‘/’, (req, res) => { res.sendFile(‘index.html’); }); Extend your Server to HTTPS with Free SSL Cert var fs = Weiterlesen…