composer create-project laravel/laravel="5.5.*" tasksman
cd tasksman
php artisan preset react
#!/bin/bash | |
# @author Mansour Yaacoubi | |
# @filename update-rpi.sh | |
# @task Installs new updates and specific programs | |
################# CHECK WHETHER SCRIPT IS RUNNING AS ROOT ################# | |
# Run script as root (higher privileges) | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit 1 |
alias cls=clear | |
alias c=clear | |
alias x=exit | |
alias l='ls -lisah' | |
alias ld='du -h | sort -nr | head -n 10' # large directories |
composer create-project laravel/laravel="5.5.*" tasksman
cd tasksman
php artisan preset react
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} !^public | |
RewriteRule ^(.*)$ public/$1 [L] | |
</IfModule> |
<?php | |
class SimpleMail { | |
public static function send($to, $subject, $message) | |
{ | |
if( is_array($to) ) $to = implode(', ', $to); | |
$from = 'Max Mustermann <max@mustermann.com>'; | |
$noreply = 'noreply@mustermann.com'; | |
// To send HTML mail, the Content-type header must be set | |
$headers = "MIME-Version: 1.0" . PHP_EOL; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Thumbnail Tester</title> | |
</head> | |
<body> | |
<img src="https://mxtoolbox.com/Public/ThumbnailHandler.aspx?url=https://yaacoubi.com" /> | |
</body> | |
</html> |
@echo off | |
FOR /F "tokens=2,3" %%A IN ('ping %computername% -n 1 -4') DO IF "von"== "%%A" set "IP=%%~B" | |
echo %IP:~0,-1% |