Skip to content

Instantly share code, notes, and snippets.

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]
  • 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 :|
  1. 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
1. sử dụng curl: Curl https://xxx
2. openssl s_client -connect www.google.com:443
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
\dt
\l
\connect database_name
\select * from database_name
@swdream
swdream / squid-cache_dir.txt
Last active July 19, 2017 08:51
Problem when configuring cache_dir for squid proxy
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.
@swdream
swdream / nginx.md
Last active September 11, 2018 07:58

bật file html khác

    location / {
       rewrite ^(.*)$ /503.html last;
    }

    location = /503.html {
                root /usr/share/nginx/html;
    }
@swdream
swdream / pyfml201510.rst
Last active September 20, 2015 15:15 — forked from hvnsweeting/pyfml2016.rst
Thông báo tuyển sinh lớp PyFML3 (PyFML201510)

Tuyển sinh khoá học lập trình bằng ngôn ngữ Python (PyFML03 - 2015) =========

Thời gian & Địa điểm -------

import os
import time
import psutil
cpu_time = psutil.cpu_times(True)
cpu_count = len(cpu_time)
a = {"cpu":[]}
a['cpu']['count'] = cpu_count