Posts

Showing posts from March, 2023

Uncaught TypeError: (0 , a.createRoot) is not a function at Module.Io (edit-post.min.js?ver=d098b8ee5bdffa238c03:7:123565) at HTMLDocument. (post-new.php:1928:25)

 Uncaught TypeError: (0 , a.createRoot) is not a function     at Module.Io (edit-post.min.js?ver=d098b8ee5bdffa238c03:7:123565)     at HTMLDocument.<anonymous> (post-new.php:1928:25) change theme other than Divi

I have read that running an external battery with the internal removed helps keep my HERO 11 cooler but the Hero 11 tells me to plug it in a 5v/2a power source.

  I have read that running an external battery with the internal removed helps keep my HERO 11 cooler but the Hero 11 tells me to plug it in a 5v/2a power source. The problem is your power supply and it's a common issue. Most power supplies actually will output the required 5V 2.4A power that the GoPro needs, however they don't report their output properly due to built in current protection, overcharge protection etc. So when the GoPro does a power requirement check, your power supply underreports what it's capable of actually outputting. go pro with 2.4 or higher ampere

Zenmap on Ubuntu 22.04 due to dependency issues

  I had the same problem and using the deb packages as listed on many "howtos" simply doesn't work. Python 2.x has been completely phased out and the last thing you want is a bunch of outdated packages on your system. Luckily someone has forked nmap and updated Zenmap to Python 3. You can install from this source fairly easily: 1. Install prerequisites $ sudo apt install build-essential checkinstall zlib1g-dev libssl-dev libcurl4-openssl-dev 2. Get the source code from github $ cd ~/Downloads $ wget https://github.com/nmap/nmap/archive/refs/heads/master. zip -O nmap. zip $ unzip nmap. zip $ cd nmap-master 3. Fix Zenmap config file There is an error in the current Zenmap config file and if not fixed Zenmap will not be able to find your nmap binary. $ nano zenmap/share/zenmap/config/zenmap.conf Navigate to line 60 and fix the [paths] section. Change this: [paths] nmap_command_path = ../nmap ndiff_command_path = ../ndiff/ndiff To this: [paths] nmap_command_path = nmap n

zimbra whitelist ip

 iptables -I INPUT -p tcp -s  111.93.21.234 --dport 7071 -j ACCEPT iptables -A OUTPUT -p tcp -d 111.93.21.234 --sport 7071 -j ACCEPT

setup python variable linux

 PYTHONPATH environment variable cd /usr/lib/python3.10 then export PYTHONPATH=${PWD} export PYTHONHOME='/path/to/pythondir' export PYTHONHOME=${PWD} export PYTHONPATH='/usr/bin/python3.7' export PYTHONHOME='/etc/python3.7'

cyberpanel error

  ModuleNotFoundError: No module named ‘encodings’ resolved after installing multiple python root@server:/etc# cd python python2.7/  python3/    python3.10/ python3.11/ python3.7/  python3.8/ fatal error: Python.h: No such file or directory sudo apt- get install python3 .5 -dev cd /usr/local/bin sudo apt-get install libmysqlclient-dev  pip install mysql-python sudo pip3 install Cython  pip install --ignore-installed -r /usr/local/CyberCP/requirments.txt Troubleshooting 503 Error After Install If you get a 503 error after installing CyberPanel, you can do one of the following things. 1. Check LSCPD Status. systemctl status lscpd If LSCPD is not running, start LSCPD using: systemctl start lscpd 2. Manually set up virtualevn source /usr/local/CyberCP/bin/activate pip install --ignore-installed -r /usr/local/CyberCP/requirments.txt deactivate virtualenv --system-site-packages /usr/local/CyberCP systemctl restart lscpd 3.   Install Logs If you are still having issues after these steps, yo

This usually is caused by a system where /tmp is mounted noexec. Please remount without noexec and run the upgrade again

  sudo mount -o remount,exec /tmp

Is it possible to create new user profile by using command line for Chrome

 /usr/bin/google-chrome-stable --profile-directory="my other profile2" %U /usr/bin/google-chrome-stable --profile-directory="my other profile3" %U /usr/bin/google-chrome-stable --profile-directory="my other profile4" %U /usr/bin/google-chrome-stable --profile-directory="my other profile5" %U /usr/bin/google-chrome-stable --profile-directory="my other profile6" %U /usr/bin/google-chrome-stable --profile-directory="my other profile7" %U /usr/bin/google-chrome-stable --profile-directory="my other profile8" %U /usr/bin/google-chrome-stable --profile-directory="my other profile9" %U /usr/bin/google-chrome-stable --profile-directory="my other profile10" %U /usr/bin/google-chrome-stable --profile-directory="my other profile11" %U /usr/bin/google-chrome-stable --profile-directory="my other profile12" %U /usr/bin/google-chrome-stable --profile-directory="my other profile13" %U

MariaDB / MySQL Tweaks As Default & Option

Image
The default MySQL config file (/etc/my.cnf) is bare-bones. There are really no options in it. This lead to my innodb-powered sites to suffer near 100% CPU usage on a high load site. I came up with a fix for it that served as good tweaks for both myisam and innodb. Here’s what I came up with:   [mysqld_multi] mysqld = /usr/bin/mysqld_safe [mysqld] user= mysql pid-file= /var/lib/mysql/mysql.pid socket= /var/lib/mysql/mysql.sock port= 3306 datadir= /var/lib/mysql open_files_limit=50000 max_allowed_packet=268435456 innodb_buffer_pool_size=1G innodb_log_file_size=256M innodb_flush_method=O_DIRECT innodb_io_capacity=1000 innodb_old_blocks_time=1000 innodb_open_files=5000 key_buffer_size=16M read_buffer_size=256K read_rnd_buffer_size=256K query_cache_size=256M query_cache_limit=5M join_buffer_size=4M sort_buffer_size=4M max_heap_table_size=64M tmp_table_size=64M table_open_cache=4500 table_definition_cache=4000 thread_cache_size=50 [mysqld1] user= mysql pid-file= /var/lib/mysql1/mysql.pid soc

Let's Encrypt automated free SSL certificate directadmin

 ETA Functionality for the new Free Certificate Authority: https://letsencrypt.org/ directadmin.conf option: letsencrypt=0 where 0 is the internal default. To enable this feature, use: letsencrypt=1 followed by the "ACTION REQUIRED" below to add the .well-known Alias to the httpd-alias.conf file. Users can then access it from: User Level -> SSL Certificates where a 3rd certification creation radio box will be created: "Free & automatic certificate from Let's Encrypt" in addition to the other 2 'self-signed' and 'create request' options. There is an internal variable, set by default to: letsencrypt_renewal_days=85 you shouldn't need to adjust this. The certificates are only valid for 90 days, so DA starts trying to renew 85 days in. It's triggered at the end of a full tally, every night. Looks at any domain.com.cert.creation_time files, and sees if it's old enough. You can alternatively use: letsencrypt=2 to use: /home/user/doma

[Solved] Laravel composer install could not find driver

  sudo apt install php-mysql

Redirect wildcard subdomains to subdirectory, without changing URL in address bar

  I've read a lot of questions and answers about this on here but none that seem to solve my specific problem. I want to redirect any subdomain to the subdirectory to match. So: x.domain.com would go to domain.com/x, and y.domain.com would go to domain.com/y - But I want to do this without the URL in the address bar changing. This can be achieved in  .htaccess  without  mod_proxy  provided your server is configured to allow wildcard subdomains. (I achieved that in JustHost by creating a subomain manually named  * ). Add this to your  .htaccess  file: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.website\.com$ RewriteCond %{HTTP_HOST} ^(\w+)\.website\.com$ RewriteCond %{REQUEST_URI}:%1 !^/([^/]+)/([^:]*):\1 RewriteRule ^(.*)$ /%1/$1 [QSA]

secure phpmyadmin nginx

Image
 [root@localhost conf.d]# pwd /etc/nginx/conf.d [root@localhost conf.d]# ls phpmyadmin.inc  phppgadmin.inc  status.conf  vesta.conf  webmail.inc [root@localhost conf.d]# cat phpmyadmin.inc  location /phpmyadmin {     alias /usr/share/phpMyAdmin; allow 192.0.2.142;     allow 192.168.1.0/24;     deny all;     location ~ /(libraries|setup) {         return 404;     }     location ~ ^/phpmyadmin/(.*\.php)$ {         alias /usr/share/phpMyAdmin/$1;         fastcgi_pass 127.0.0.1:9000;         fastcgi_index index.php;         include fastcgi_params;         fastcgi_param SCRIPT_FILENAME $request_filename;     }     location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {         alias /usr/share/phpMyAdmin/$1;     } } Nginx Connect to the server with ISPmanager via SSH. Open the phpMyAdmin configuration file   /etc/nginx/vhosts-includes/phpmyadmin.conf . Add the following strings to the  location /phpmyadmin  section allow <permitted IP address or subnet>; deny all;