Skip to content

Instantly share code, notes, and snippets.

🥑
FR E SH A VOCA DO

Mansour Yaacoubi mansouryaacoubi

🥑
FR E SH A VOCA DO
Block or report user

Report or block mansouryaacoubi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mansouryaacoubi
mansouryaacoubi / grammarcheck.sh
Last active Nov 19, 2019
Duden Grammar-Check using unofficial Mentor-API (Grammatik, Rechtschreibung)
View grammarcheck.sh
#!/bin/sh
curl 'https://mentor.duden.de/api/grammarcheck?_format=json' -H 'content-type: application/json' --data-binary '{"text":"Bitte geben Sie die nächste zu zuweisende sendung ein."}' --compressed
@mansouryaacoubi
mansouryaacoubi / README.md
Last active Feb 4, 2019
Laravel 5.5 + React + Bootstrap 4
View README.md
composer create-project laravel/laravel="5.5.*" tasksman
cd tasksman
php artisan preset react
@mansouryaacoubi
mansouryaacoubi / README.md
Created Jan 30, 2019
Login into server via ssh without server
View README.md

First create private-public key pairs

ssh-keygen -t rsa

Then create .ssh directory on remote computer

ssh user@remote.com mkdir -p .ssh
@mansouryaacoubi
mansouryaacoubi / .htaccess
Created Jan 24, 2019
.htaccess file for Laravel Projects
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
@mansouryaacoubi
mansouryaacoubi / README.md
Last active Jan 9, 2019
Change ID3 Info and Rename Files (MP3)
View README.md

Usage

Just copy your project folder into your music-directory and execute the following:

Once:

composer install

Everytime you want to rename mp3s:

@mansouryaacoubi
mansouryaacoubi / SimpleMail.php
Last active Jan 8, 2019
Send Mails in PHP using the settings in the INI file
View SimpleMail.php
<?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;
@mansouryaacoubi
mansouryaacoubi / thumbnail.html
Last active Jan 2, 2019
Get Thumbnail for Website
View thumbnail.html
<!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>
@mansouryaacoubi
mansouryaacoubi / retrieveWiFiPass.bat
Created Dec 6, 2018
Retrieve saved WiFi Password from PC
View retrieveWiFiPass.bat
@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
@mansouryaacoubi
mansouryaacoubi / getIP.bat
Created Dec 6, 2018
Batch to retrieve IP Address
View getIP.bat
@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%
You can’t perform that action at this time.