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
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
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
Show hidden characters
{ | |
"presets": [ | |
"@babel/preset-env", | |
"@babel/preset-react" | |
], | |
"plugins": [ | |
"@babel/plugin-transform-runtime", | |
"@babel/plugin-proposal-object-rest-spread", | |
"@babel/plugin-proposal-class-properties", | |
["lodash", { "id": ["lodash", "recompose"] }], |
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
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.3 | |
sudo apt-get install php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-fpm php7.3-intl php7.3-simplexml | |
sudo a2dismod php7.4 |
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
supervisord -c path_supervisord_config_file // run supervisord | |
supervisorctl -c path_supervisord_config_file status all // check status of supervisord | |
supervisorctl -c path_supervisord_config_file restart all // restart supervisord |
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
Install: | |
pavucontrol | |
hdajackretask |
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
public function setUp() : void | |
{ | |
$this->afterApplicationCreated(function () { | |
$this->db = m::mock( | |
Connection::class . '[select,update,insert,delete]', | |
[m::mock(PDO::class)] | |
); | |
$manager = $this->app['db']; | |
$manager->setDefaultConnection('mock'); | |
$r = new \ReflectionClass($manager); |
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
$mock = Mockery::mock(Illuminate\Contracts\Auth\Access\Gate::class); | |
$mock->shouldReceive('authorize')->once()->andReturn(true); | |
$mock->shouldReceive('allows')->once()->andReturn(true); | |
$this->app[Gate::class] = $mock; |
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 -r 'phpinfo();' | grep -i "\(grpc\|protobuf\)" |
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
defaults | |
... | |
option forwardfor |
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
curl -OL https://golang.org/dl/go1.18.linux-amd64.tar.gz | |
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz | |
export PATH=$PATH:/usr/local/go/bin | |
go env -w GO111MODULE=off | |
go get github.com/mailhog/MailHog |
OlderNewer