Author: David Raleche
Twitter : https://twitter.com/DavidRaleche
Newsletter : Subscribe here
Store : https://david.raleche.com/shop
Docker Helper
Magento Community edition username password
Magento default user
pa the password is ‘bitnami1‘
Docker helper command list
docker-compose up -d
docker-compose start
docker-compose stop
docker-sync start
docker-compose run deploy bash
docker-compose --verbose run deploy bash
docker-compose ps
setup:di:compile
docker exec -ti f28sad7asduasd bash
docker inspect fdwerwer
docker ps fdwerwer
docker ps -a
docker volume prune
Restart from scratch
docker-compose down -v
composer install
vendor\bin\ece-tools docker:build
docker-compose up -d
docker-compose run build cloud-build
docker-compose run deploy cloud-deploy
Clean Docker environment
Clean fully
docker-compose down -v
docker volume prune
docker container prune
docker image prune
docker-compose start
Creating module
Php bin/magento module:enable –all
php magento setup:upgrade
Creating page
php bin/magento module:enable –all
Php bin/magento setup:upgrade
php bin/magento module:status
php bin/magento module:enable
Php bin/magento module:disable Learning_HelloPage
Php bin/magento setup:di:compile
Magento Command
composer magento setup:di:compile
composer bin/magento cache:flush
composer install
composer update
composer clear cache
Build
Build an image from the Dockerfile in the
current directory and tag the image
docker build -t myimage:1.0 .
List all images that are locally stored with
the Docker Engine
docker image ls
Delete an image from the local image
docker image ls
Delete an image from the local image store
docker image rm alpine:3.4
Docker Management
app* Docker Application
assemble* Framework-aware builds (Docker Enterprise)
builder Manage builds
cluster Manage Docker clusters (Docker Enterprise)
config Manage Docker configs
context Manage contexts
engine Manage the docker Engine
image Manage images
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
registry* Manage Docker registries
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage swarm
system Manage Docker
template* Quickly scaffold services (Docker Enterprise)
trust Manage trust on Docker images
volume Manage volumes
DOCKER RUN
Run a container from the Alpine version 3.9
image, name the running container
“web” and expose port 5000 externally,
mapped to port 80 inside the container.
docker container run –name web -p
5000:80 alpine:3.9
Stop a running container through SIGTERM
docker container stop web
Stop a running container through SIGKILL
docker container kill web
List the networks
docker network ls
Run
List the running containers (add –all to
include stopped containers)
docker container ls
Delete all running and stopped containers
docker container rm -f $(docker ps -aq)
Print the last 100
lines of a container’s logs
docker container
logs –tail 100 web
docker container ls
Delete all running and stopped containers
docker container rm -f $(docker ps -aq)
Print the last 100
lines of a container’s logs
docker container
logs –tail 100 web
API Collection
Symfony
Laravel
Lumen
Raleche Framework
Fastest way to import data over time found to be csv format data
mysql> load data local infile 'Desktop/data.csv'
-> INTO TABLE cars
-> FIELDS TERMINATED BY ','
-> ENCLOSED BY '"'
-> LINES TERMINATED BY '\n'
-> IGNORE 1 ROWS;
Query OK, 232880 rows affected, 65535 warnings (27.87 sec)
Records: 232880 Deleted: 0 Skipped: 0 Warnings: 232880
remove lines below from .git/config[remote “origin”]
url = [email protected]:dxxxx/xxxxxxxx.git
fetch = +refs/heads/*:refs/remotes/origin/*
Type following commands
git remote add origin [email protected]:xxxxxx/xxx.git
git remote -v
PROBLEM
[ErrorException]
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
SOLUTION
composer self-update
composer update
This article is an open conversation regarding the public data information and the difficulty to get them.
What is EDDM ? Use Every Door Direct Mail® (EDDM®) services to promote your small business in your local community. If you’re having a sale, opening a new location, or offering coupons, EDDM can help you send postcards, menus, and flyers to the right customers. Use the EDDM Online Tool to map ZIP Code(s)™ and neighborhoods—even filter by age, income, or household size1 using U.S. Census data.

Context : USPS announced the split of the 72712 zip code here

My client is using mapbox boundaries to map the different zip code area and help customers to pick and choose the routes. After a sharp and quick exchange with the customer support, I was left on my own I quote
Oct 29, 2:10 PM PDT
Hi David – I’m not able to help with that, as that involves a third party data source. Best of luck to finding the data you need, and let me know if you have any Mapbox-specific questions!

Where to find the data ZCTA5 polygon information ?
1 free resource census.gov . After exchanging with the census customer support, I was told that the zip code tabulation data are updated every 10 years. Lucky for my customer only 1 more year to wait. However our biggest customer is complaining to get this issue resolved as soon as possible
Solution
Sniffing/hacking the geo data from usps web interface as follow
https://eddm.usps.com/eddm/customer/routeSearch.action

Overall Grade : 3/5
Easy to read : 5/5
Take away : Very Good for starter in software development or novice in this area. This overview matches some of my professional experience.
The book contains about 800 pages and it quite covering a lot of elements
Missing Part [Politics]: Political IT environment – struggle – In an IT department, it is likely that the most efficient and logical decision will not be taken into account. Nowadays ITs/developers are run by marketers and political ambitious individuals. A full chapter should be dedicated on surviving such environment. Hard work is not rewarded anymore but eloquent techie speech makes the difference.
IT people are at fault somehow as they are easily dominated and replaced by consultants fabulous promises and speeches
Other missing Part Align business and IT: As professor Jerry Luftman mentionned many times IT and Business should be aligned
PGadmin v4.14 released
Postgres PG admin has been released. Let’s see how it turns out @
