# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")
# Delete unused images
docker system prune --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
alias html="cd /var/www/html" | |
alias phpunit="./vendor/bin/phpunit" | |
alias tinker="$HOME/.config/composer/vendor/bin/psysh" | |
alias psysh="$HOME/.config/composer/vendor/bin/psysh" | |
alias szsh=". ~/.zshrc" | |
alias activate=activate_python_virtualenv | |
alias py3=python3 | |
#". /var/www/html/python/env1/bin/activate" | |
alias sshorder="ssh anik@96.57.0.134" | |
alias pbcopy='xclip -selection clipboard' |
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
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
# Cloned & Updated from: https://gist.github.com/1kastner/e083f9e813c0464e6a2ec8910553e632 | |
import json | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
allow = False |
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 | |
# File: app\Http\Middleware\CORS.php | |
# Create file with below code in above location. And at the end of the file there are other instructions also. | |
# Please check. | |
namespace App\Http\Middleware; | |
use Closure; | |
class CORS { |
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
FROM php:7.4-fpm | |
RUN apt-get update | |
RUN apt-get install -y librdkafka-dev | |
RUN pecl install channel://pecl.php.net/rdkafka-beta | |
RUN 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
FROM sirajul/php74-fpm:latest | |
RUN pecl install xdebug | |
#RUN docker-php-ext-enable xdebug | |
RUN mkdir -p /home/xdebug | |
COPY ./docker/php/xdebug-debug.ini /home/xdebug/xdebug-debug.ini | |
COPY ./docker/php/xdebug-default.ini /home/xdebug/xdebug-default.ini | |
COPY ./docker/php/xdebug-off.ini /home/xdebug/xdebug-off.ini | |
COPY ./docker/php/xdebug-profile.ini /home/xdebug/xdebug-profile.ini |
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
FROM php:7.4-fpm | |
RUN apt-get update | |
RUN apt-get install -y libpq-dev libpng-dev curl nano unzip zip git jq supervisor | |
RUN docker-php-ext-install pdo_pgsql | |
RUN pecl install -o -f redis |
- Create a file on
/etc/systemd/system/docker.service.d/startup_options.conf
# /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376
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 | |
require './app/App.php'; | |
require './src/Source.php'; | |
require './Current.php'; | |
echo (new Current())->sayHello('anik'); |
NewerOlder