- Go github, create new repo
- Copy ssh/https link
- Go to your project folder
4.
git clone <paste link here>
and all project will be downloaded to new folder with same name as project is - Or you can set name of this folder
git clone <paste link here> newfolder
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 declare(strict_types=1); | |
namespace Tests\Feature; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Contracts\Console\Kernel; | |
/** | |
* Some functionality for TestCases | |
* |
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 | |
/** | |
* Autoload PSR-4 and Wordpress compatible named classes, | |
* Require it in very begin of your functions.php or plugin | |
* | |
* @author Alexandr Shevchenko <ls.shov@gmail.com> | |
* @author Thomas J Belknap <tbelknap@holisticnetworking.net> | |
*/ | |
namespace App; //Change it | |
/** @var string : autoload root $rootDir */ |
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
#!/bin/bash | |
brew list -1 > brew.txt \ # list out all installed packages | |
&& brew list -1 | xargs brew rm --force \ # remove all installed packages | |
&& brew install $(cat brew.txt | tr '\n' ' ') \ # install all previously installed packages | |
&& rm brew.txt |
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
Usefull manual how to config with MS Code: https://medium.com/full-stack-development/laradock-xdebug-ms-code-no-problem-35a4338deb3f | |
Out-dated but partial helpfull phpstorm configs https://laradock.io/guides/#phpstorm-settings |
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 | |
/** | |
* Array to Text Table Generation Class | |
* | |
* @author Tony Landis <tony@tonylandis.com> | |
* @link http://www.tonylandis.com/ | |
* @copyright Copyright (C) 2006-2009 Tony Landis | |
* @license http://www.opensource.org/licenses/bsd-license.php | |
*/ | |
class ArrayToTextTable |
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
server { | |
listen 80; | |
server_name example.com; | |
# Redirect all traffic to SSL | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
server { |
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
git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all |
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-FPM | |
RUN apt-get update -yqq && \ | |
apt-get install -y build-essential libtool autoconf pkg-config libsodium-dev libzmq-dev && \ | |
echo '' | pecl install -o -f zmq-beta && rm -rf /tmp/pear && \ | |
echo "extension=zmq.so" > /usr/local/etc/php/conf.d/zmq.ini \ | |
##WORCKSPACE | |
RUN apt-get update -yqq && \ | |
apt-get install -y build-essential libtool autoconf pkg-config libsodium-dev libzmq-dev && \ | |
echo '' | pecl install -o -f zmq-beta && rm -rf /tmp/pear && \ |
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
#!/bin/bash | |
echo "Dirs" | |
du -hsx * | sort -rh | head -10 | |
echo "Files" | |
find . -type f -printf '%s %p\n'| sort -nr | head -10 |