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
Firstly, we have to check the disk usage by Docker using the following command: | |
docker system df | |
Docker does not by default remove the images even if they are not in use. To remove unused photos, we can use the below command: | |
docker image prune --all | |
In order to clean up unused containers and images, we can use the docker system prune. |
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
export NODE_OPTIONS=--max_old_space_size=4096 |
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
sudo apt update | |
sudo apt install python3-pip | |
sudo pip install s3cmd |
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
sudo apt-get install php7.4-bcmath php7.4-ctype php7.4-curl php7.4-dom php7.4-gd php7.4-hash php7.4-iconv php7.4-intl php7.4-mbstring php7.4-openssl php7.4-mysql php7.4-simplexml php7.4-soap php7.4-xsl php7.4-zip |
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
sudo chown -R $(id -u):$(id -g) |
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
sudo du -sh * | sort -hr |
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
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 |
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
defaults | |
... | |
option forwardfor |
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 -r 'phpinfo();' | grep -i "\(grpc\|protobuf\)" |
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
$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; |
NewerOlder