- Terraform có regional và các global services. ĐỐi với các regional service như EC2, chỉ được sử dụng trên region đó. Với các global service như IAM, có thể được sử dụng every where.
- S3 là lẫn lộn. S3 là regional service, nhưng namespace lại global. Nghĩa là tên S3 là duy nhất trên tất cả các region.
- Sử dụng terraform module là ngu ngốc, môt biến p được khai báo nhiều lần :|
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
java.lang.IllegalStateException: Expected to be healthy after starting. The following services are not running: {FAILED=[JerseyService [FAILED]]} | |
2018-08-15T02:02:17.263+07:00 ERROR [LookupDataAdapter] Couldn't start data adapter <spamhaus-drop/5b731ac0368c47491aa4157b/@2e1b5d1> | |
org.graylog.plugins.threatintel.tools.AdapterDisabledException: Spamhaus service is disabled, not starting (E)DROP adapter. To enable it please go to System / Configurations. | |
at org.graylog.plugins.threatintel.adapters.spamhaus.SpamhausEDROPDataAdapter.doStart(SpamhausEDROPDataAdapter.java:68) ~[?:?] | |
at org.graylog2.plugin.lookup.LookupDataAdapter.startUp(LookupDataAdapter.java:59) [graylog.jar:?] | |
at com.google.common.util.concurrent.AbstractIdleService$DelegateService$1.run(AbstractIdleService.java:62) [graylog.jar:?] | |
at com.google.common.util.concurrent.Callables$4.run(Callables.java:122) [graylog.jar:?] | |
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181] |
- Installation on Mac
cd packages/
curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.0.6.tgz
tar -zxvf mongodb-osx-x86_64-3.0.6.tgz
ls
sudo mv mongodb-osx-x86_64-3.0.6 /usr/local/mongodb
sudo mkdir -p /data/db
sudo chown thanh_nt /data/db
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
1. sử dụng curl: Curl https://xxx | |
2. openssl s_client -connect www.google.com:443 |
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
If the -e option is supplied, the return value is the value of the last command executed or failure if an error occurs with the temporary file of commands |
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
\dt | |
\l | |
\connect database_name | |
\select * from database_name |
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
1. requirement: setup squid proxy server using docker. | |
2. The problem: cannot configure cache_dir for squid. | |
3. More detail: | |
- I tried some docker image to setup squid: | |
https://hub.docker.com/r/babim/squid/ (babin/squid:auth) | |
https://hub.docker.com/r/scbunn/squid/ (scbunn/squid:3.5.17) | |
all of them work fine when I DON'T CONFIGURE CACHE_DIR for squid. | |
but when I configure CACHE_DIR, the squid process was killed immediately after starting. |
- Dự kiến đầu tháng 10 - 2015
- Ngõ 120 Trường Chinh, Hà Nội.
- Page: https://www.facebook.com/pyfml
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
import os | |
import time | |
import psutil | |
cpu_time = psutil.cpu_times(True) | |
cpu_count = len(cpu_time) | |
a = {"cpu":[]} | |
a['cpu']['count'] = cpu_count |