Skip to content

Instantly share code, notes, and snippets.

@mymain
mymain / gist:9aa4b87a6005031c20e7b962c8eb84a3
Created May 14, 2023 13:17 — forked from MaKyOtOx/gist:cd3157e3aae5a250c2cfcfb8ff0caf63
Install OpenVAS (Greenbone) 20.08 on Ubuntu 20.04
## Installation script for OpenVAS/Greenbone 20.08 on Ubuntu 20.08
## Tested for PatrowlEngines
## See https://patrowl.io
## Based on:
# https://kifarunix.com/install-and-setup-gvm-11-on-ubuntu-20-04/#create-gvm-service-unit-file
# https://github.com/yu210148/gvm_install/blob/master/install_gvm.sh
apt-get update && apt-get upgrade
useradd -r -d /opt/gvm -c "GVM User" -s /bin/bash gvm
mkdir /opt/gvm
@mymain
mymain / .htaccess
Created May 14, 2019 04:27 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
String.prototype.format = function () {
var a = this, b;
for (b in arguments) {
a = a.replace(/%[a-z]/, arguments[b]);
}
return a; // Make chainable
};
console.log('Hello %s The magic number is %d.'.format('world!', 12));// Hello World! The magic number is 12.
1 : Shutdown or Quit your XAMPP server from Xampp control panel.
2 : Download the ZIP version of MariaDB https://downloads.mariadb.org/mariadb/10.2.23/
3 : Rename the xampp/mysql folder to mysql_old.
4 : Unzip or Extract the contents of the MariaDB ZIP file into your XAMPP folder.
5 : Rename the MariaDB folder, called something like mariadb-5.5.37-win32, to mysql.
6 : Rename xampp/mysql/data to data_old.
7 : Copy the xampp/mysql_old/data folder to xampp/mysql/.
8 : Copy the xampp/mysql_old/backup folder to xampp/mysql/.
9 : Copy the xampp/mysql_old/scripts folder to xampp/mysql/.