PHP Version : 8.0 Wordpress version : 5.7.2 Caddy version : v2.4.3
This one is outdated: please check the offical guide here
PHP Version : 8.0 Wordpress version : 5.7.2 Caddy version : v2.4.3
This one is outdated: please check the offical guide here
#!/bin/bash | |
sudo snap remove snap-store -y | |
sudo snap remove gtk-common-themes -y | |
sudo snap remove gnome-3-34-1804 -y | |
sudo snap remove core18 -y | |
sudo apt purge snapd -y | |
echo "Snap and Snapd are removed!" | |
sudo apt-mark hold snap snapd | |
echo "Snap/Snapd are now blocked from Ubuntu!" | |
sudo apt purge yelp -y |
#The PyMongo distribution contains tools for interacting with MongoDB database from Python | |
import pymongo | |
import urllib.parse | |
#def adduser(update, context): | |
# db(update) | |
def db(data): | |
user = "username" | |
pwd = urllib.parse.quote("password") | |
DATABASE_NAME = '' #Your Database Name here. |
set -gx GPG_TTY (tty) |
git config --global user.signingkey ED267DF4249ACCC3 | |
git config --global gpg.program (which gpg) | |
git config --global commit.gpgsign true |
gpg --list-secret-keys --keyid-format LONG |
gpg --full-gen-key |
#!/bin/bash | |
siteDir="/var/www/$1" | |
echo 'Creating directory at /var/www/ for '$1'' | |
mkdir -p $siteDir | |
echo 'Directory created '$siteDir' ' | |
echo "changing ownership of directory" | |
chown www-data:www-data $siteDir -Rv | |
echo "creating an index.html file" |
Find unwanted empty lines, can be used with find and replace to remove unwanted empty lines | |
^(?:[\t ]*(?:\r?\n|\r))+ |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# Xx_69pussy_slayer420_xX | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |