Skip to content

Instantly share code, notes, and snippets.


Lê Chí Dũng - レチーユン lechidung

Block or report user

Report or block lechidung

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lechidung / gist:30b5d84a2fe2f1bf171acc201f0e3389
Created Nov 3, 2019
configure NGINX to reverse proxy connections from port 80 to other port
View gist:30b5d84a2fe2f1bf171acc201f0e3389
server {
listen 80;
server_name; # or server_name;
location / {
proxy_pass http://localhost:1337; # port > 1024
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
lechidung / Install Athenz
Last active Aug 25, 2019
Install Athenz
View Install Athenz
sudo bin/zms start
sudo bin/zms stop
bin/ /root/athenz-zms-1.8.11/var/zms_server/certs/zms_cert.pem
View sync visual studio code
"url": "",
"forks_url": "",
"commits_url": "",
"id": "408324817b197e9e6c3bc239e59fa880",
"node_id": "MDQ6R2lzdDQwODMyNDgxN2IxOTdlOWU2YzNiYzIzOWU1OWZhODgw",
"git_pull_url": "",
"git_push_url": "",
"html_url": "",
"files": {
View Start a consumer on Kafka
> bin/ --bootstrap-server localhost:9092 --topic test --from-beginning
Message 1
Message 2
View Send messages in Kafka
> bin/ --broker-list localhost:9092 --topic test
Message 1
Message 2
View Use topic of Kafka
# Create topic with named "test"
bin/ --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic
# See topic test
bin/ --list --bootstrap-server localhost:9092 test
View Install and start Kafka
# 1. Download Kafka and Install
tar -xzf kafka_2.12-2.2.0.tgz
cd kafka_2.12-2.2.0
# 2. Start Zookeeper server (in new terminal)
bin/ config/ &
View Use Pulsar standalone
# 1. Consume a message
sudo bin/pulsar-client consume my-topic -s "first-subscription"
# 2. Produce a message
sudo bin/pulsar-client produce my-topic --messages "hello-pulsar 2"
lechidung / Install and start Start Pulsar standalone
Created Jul 9, 2019
Install and start Start Pulsar standalone
View Install and start Start Pulsar standalone
# 1. Install Java
sudo yum install java-1.8.0-openjdk
# 2. Download Apache Pulsar package
# 3. Unzip Apache Pulsar package
tar xvfz apache-pulsar-2.4.0-bin.tar.gz
# 4. Execute Apache Pulsar
lechidung / Bring Your Own Integrations
Created Jun 25, 2019
Bring Your Own Integrations
View Bring Your Own Integrations
- name: slack
type: docker-image
tag: latest
- name: slack-deploy
type: slack
You can’t perform that action at this time.