Skip to main content

Note some Laravel, NGINX, NodeJS deploy

Avoid/reduce log output on Laravel Console
https://stackoverflow.com/questions/49346700/laravel-disable-artisan-console-output-when-running-tests

Gcloud SSH issue
Jun 20 06:37:18 instance-3 sshd[12753]: Connection closed by 113.190.235.xxx port 7600 [preauth]
Jun 20 06:37:19 instance-3 sshguard[1393]: Blocking 113.190.235.188:4 for >630secs: 40 danger in 4 attacks over 184 seconds (all: 40d in 1 abuses over 184s).

sudo service sshguard restart
USER=root ; COMMAND=/usr/sbin/service sshguard restart
Jun 20 06:45:11 instance-3 sudo: pam_unix(sudo:session): session opened for user root by vandung53cc(uid=0)
Jun 20 06:45:11 instance-3 sshguard[1393]: Got exit signal, flushing blocked addresses and exiting...
Jun 20 06:45:11 instance-3 sudo: pam_unix(sudo:session): session closed for user root
Jun 20 06:45:11 instance-3 sshguard[12902]: Started with danger threshold=40 ; minimum block=420 seconds
Jun 20 06:45:15 instance-3 sshd[12909]: Connection closed by 113.190.235.188 port 8312 [preauth]

https://github.com/hashicorp/terraform/issues/16767
https://stackoverflow.com/questions/26813070/google-compute-engine-getting-blocked-after-accessing-ssh-a-few-times

...

Gcloud two tab SSH not sync server state ?

Some hard code/inline fix on code.
PHP getallheaders() not available on Nginx, PHP-FPM or fast-CGI ...
need add this function to ie. first index.php

http://ping.eu/port-chk/
https://stackoverflow.com/questions/36724452/firewall-rules-with-tags-not-working-properly

API doc vs Swagger

PHP7.0-fpm stop unexpectedly

[21-Jun-2018 07:24:22] NOTICE: fpm is running, pid 6476
[21-Jun-2018 07:24:22] NOTICE: ready to handle connections
[21-Jun-2018 07:24:22] NOTICE: systemd monitor interval set to 10000ms
[21-Jun-2018 07:32:03] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it

https://serverfault.com/questions/479443/php5-fpm-server-reached-pm-max-children


Comments

Popular posts from this blog

Rand mm 10

https://stackoverflow.com/questions/2447791/define-vs-const Oh const vs define, many time I got unexpected interview question. As this one, I do not know much or try to study this. My work flow, and I believe of many programmer is that search topic only when we have task or job to tackle. We ignore many 'basic', 'fundamental' documents, RTFM is boring. So I think it is a trade off between the two way of study language. And I think there are a bridge or balanced way to extract both advantage of two method. There are some huge issue with programmer like me that prevent we master some technique that take only little time if doing properly. For example, some Red Hat certificate program, lesson, course that I have learned during Collage gave our exceptional useful when it cover almost all topic while working with Linux. I remember it called something like RHEL (RedHat Enterprise Linux) Certificate... I think there are many tons of documents, guide n books about Linux bu

Martin Fowler - Software Architecture - Making Architecture matter

  https://martinfowler.com/architecture/ One can appreciate the point of this presentation when one's sense of code smell is trained, functional and utilized. Those controlling the budget as well as developer leads should understand the design stamina hypothesis, so that the appropriate focus and priority is given to internal quality - otherwise pay a high price soon. Andrew Farrell 8 months ago I love that he was able to give an important lesson on the “How?” of software architecture at the very end: delegate decisions to those with the time to focus on them. Very nice and straight-forward talk about the value of software architecture For me, architecture is the distribution of complexity in a system. And also, how subsystems communicate with each other. A battle between craftmanship and the economics and economics always win... https://hackernoon.com/applying-clean-architecture-on-web-application-with-modular-pattern-7b11f1b89011 1. Independent of Frameworks 2. Testable 3. Indepe