- Make new file in /usr/local/bin with name log add its content from the file with name log
- Add execution ability to it by: sudo chmod +x log
- Add the song file with name new_log.mp3 in /usr/local/bin
- Open terminal in for example laravel project(example-app): log /var/www/html/example-app/storage/logs/laravel.log
This file contains 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
function createUser(email, password) { | |
validateInput(email, password); | |
saveUser(email, password); | |
} | |
function isNotValid(email, password) { | |
return emailNotValid(email) || passwordNotValid(password); | |
} |
This file contains 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
// ==UserScript== | |
// @name Unlike Facebook Pages | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Unlike all Facebook pages | |
// @author Ahmed Helal Ahmed | |
// @match https://duckduckgo.com/?q=new+script+unlike+pages+facebook&ia=web | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=duckduckgo.com | |
// @grant none | |
// ==/UserScript== |
This file contains 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
https://startbootstrap.com | |
https://templatemo.com | |
https://www.free-css.com | |
https://nicepage.com/css-templates | |
https://templated.co | |
https://designseer.com/free-photoshop-psd-website-templates | |
https://colorlib.com | |
https://www.behance.net | |
https://github.com/toidicode/template | |
https://github.toidicode.com |
This file contains 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
namespace App\Http\Middleware; | |
use Illuminate\Support\Facades\Log; | |
class LogAfterRequest { | |
public function handle($request, \Closure $next) | |
{ | |
return $next($request); | |
} |
This file contains 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
https://www.linkedin.com/pulse/5-key-learnings-from-post-bootcamp-job-search-felix-feng/ | |
https://www.interviewcake.com/article/python/big-o-notation-time-and-space-complexity? | |
https://github.com/MaximAbramchuck/awesome-interview-questions | |
https://github.com/mgechev/javascript-algorithms | |
https://github.com/random-forests/tutorials | |
https://github.com/checkcheckzz/system-design-interview | |
https://github.com/LeonardAnghel/Principles | |
https://github.com/am0awad/computer-science | |
https://github.com/thedaviddias/Front-End-Checklist | |
https://github.com/learn-anything/learn-anything |
This file contains 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
codewars.com | |
hackerrank.com | |
topcoder.com | |
coderbyte.com | |
hackerearth.com | |
leetcode.com | |
codechef.com | |
edabit.com | |
codeforces.com |
This file contains 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
Simple contract or interface, call as you wish: | |
interface UnitOfWork | |
{ | |
public function begin(); | |
public function commit(); | |
public function rollback(); | |
} |
This file contains 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
ctrl + f2 | |
show navigation bar in phpstorem | |
ctrl + n | |
make new file | |
ctrl + comma | |
show recent files | |
ctrl + shift + t |
This file contains 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 | |
use App\Jobs\LogToFile; | |
use Illuminate\Support\Facades\Redis; | |
use Illuminate\Support\Facades\Route; | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- |