sudo apt-get install apache2 php libapache2-mod-php
copy default virtualhost and rename to new virtualhost
#!/bin/bash | |
curl_check () | |
{ | |
echo "Checking for curl..." | |
if command -v curl > /dev/null; then | |
echo "Detected curl..." | |
else | |
echo "Installing curl..." | |
apt-get install -q -y curl |
typing the prefix name and pressing tab will create the code base.
{
// Place your snippets for typescriptreact here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
remove multiples branch with zsh replace UT2 :)
gb -D `gb | grep -E 'UT2*'`
normal
git brand -D `git branch | grep -E 'UT2*'`
code
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
ol,
ul {
list-style: none;
regex valid js update 2021
const validEmail(str) => !/(\.{2}|-{2}|_{2})/.test(str) && /^[a-z0-9][a-z0-9-_\.]+@([a-z]|[a-z0-9]?[a-z0-9-]+[a-z0-9])\.[a-z0-9]{2,10}(?:\.[a-z]{2,10})?$/.test(str);
validEmail('admin@gmail.com'); //true
validEmail('admin@my-large-domain.news'); //true
validEmail('admin@comercio.com.pe'); //true
validEmail('elonmusk@x.com'); // true (short domain)
validEmail('ud@se.cz'); // true (short domain)