ssh-keygen -t rsa
ssh [email protected] mkdir -p .ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} !^public | |
RewriteRule ^(.*)$ public/$1 [L] | |
</IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SimpleMail { | |
public static function send($to, $subject, $message) | |
{ | |
if( is_array($to) ) $to = implode(', ', $to); | |
$from = 'Max Mustermann <[email protected]>'; | |
$noreply = '[email protected]'; | |
// To send HTML mail, the Content-type header must be set | |
$headers = "MIME-Version: 1.0" . PHP_EOL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls | |
IF [%1] == [] GOTO SETVAR | |
SET SSID=%1 | |
GOTO START | |
:SETVAR | |
SET /P SSID="Please enter SSID (in quotation mark): " | |
IF [%SSID%] == [] GOTO SETVAR | |
GOTO START |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title Checking active hosts | |
@echo off | |
color FC | |
:start | |
cls | |
echo Ping MYServer001... | |
ping -n 1 myserver001.yaacoubi.com | find "TTL=" >nul | |
if errorlevel 1 ( | |
echo HOST NOT REACHABLE | |
timeout 3 |