cd /usr/local/Cellar/nginx/1.15.11/html/
cd /usr/local/etc/nginx
Install SSL Namecheap for NGINX server
In case of Comodo certificates
My best practice configure logrotate.conf for Staging ENV: It will keep logs around 7 days
/home/deploy/apps/app_name/shared/log/*.log {
daily
rotate 7
missingok
compress
delaycompress
Trong việc phát triển phần mềm, muốn optimization đơn giản là làm được việc này: Find the way to do less!
Ruby thì chậm có tiếng rồi, thủ phạm chính đó là garbage collector của ruby.
Chúng ta có thể optimization ruby bằng cách tạo ít rác rưởi khi chúng ta code ruby.
String trong ruby thì mutable (thay đổi), sinh ra nhiều object rác.
Ví dụ: string = ""; string << "test"
nó đã tạo 2 object string là ""
, và "test"
. (rác)
.. sublime: wordWrap false | |
Keyboard Shortcuts - OSX | |
================================== | |
.. warning:: | |
This topic is a draft and may contain wrong information. | |
Editing | |
------- |
Bài toán đặt ra.
Phía dịch vụ B cần gửi đến A một (hoặc nhiều) files thông qua sftp. Folder chứa các file này đã được xác định.
Cụ thể là Adyen (B) muốn send đến server (P) một số file, được chứa trong một folder có tên là "IN". Tại server này có set up 1 account của người chủ (will) có thể access và download file về.
sudo adduser --no-create-home adyen_guest_user
I. OJBECTS - METHOD CALL.
if ticket.respond_to?(request)
puts ticket.send(request) || ticket.request
else
puts "no method request for ticket"
end