PHP Version : 8.0 Wordpress version : 5.7.2 Caddy version : v2.4.3
This one is outdated: please check the offical guide here
| # Store the start time | |
| $startTime = Get-Date | |
| # Create WScript.Shell object | |
| $wshell = New-Object -com "Wscript.Shell" | |
| # Function to format timespan in a human readable way | |
| function Format-TimeSpan { | |
| param ( | |
| [TimeSpan]$TimeSpan |
| { | |
| "$help": "https://aka.ms/terminal-documentation", | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "actions": | |
| [ | |
| { | |
| "command": | |
| { | |
| "action": "copy", | |
| "singleLine": false |
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" |