- Update OS
sudo apt-get update && sudo apt-get upgrade
#!/bin/sh | |
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]> | |
# | |
# SPDX-License-Identifier: MIT | |
arch=$(dpkg --print-architecture) | |
echo "Detected architecture: $arch" | |
case "$arch" in |
@keyframes cc { | |
0% { | |
color: #fff; | |
} | |
10% { | |
color: #c92a2a; | |
} | |
20% { |
DirectorySlash Off | |
Options +FollowSymlinks -Indexes -MultiViews | |
AddDefaultCharset utf-8 | |
DirectoryIndex /public/index.php | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f |
<?php | |
// Does string contain letters? | |
function _s_has_letters( $string ) { | |
return preg_match( '/[a-zA-Z]/', $string ); | |
} | |
// Does string contain numbers? | |
function _s_has_numbers( $string ) { | |
return preg_match( '/\d/', $string ); |