Skip to content

Instantly share code, notes, and snippets.

View vdchuyen's full-sized avatar

Chuyen Vo vdchuyen

View GitHub Profile
@vdchuyen
vdchuyen / markdown-to-email
Created July 16, 2019 13:33 — forked from cleverdevil/markdown-to-email
markdown-to-email A simple script to send beautifully formatted emails that you write in Markdown. The email will have an HTML payload and a plain-text alternative, so you'll make everyone happy, including yourself.
#!/usr/bin/env python
'''
Send an multipart email with HTML and plain text alternatives. The message
should be constructed as a plain-text file of the following format:
From: Your Name <your@email.com>
To: Recipient One <recipient@to.com>
Subject: Your subject line
---
@vdchuyen
vdchuyen / nginx.conf
Created June 26, 2019 07:34 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@vdchuyen
vdchuyen / beer-good.md
Last active August 3, 2018 09:10
Beer is good for you health !

Yeah, you read it right !

This research may be backed by Marketting Department from some Beers company, they said it's good for you health !

Believe it or not, it does not matter, just drink up, 1 2 3 ganbei !

@vdchuyen
vdchuyen / technical-debt.md
Created July 27, 2018 09:51
Technical debt

There was an interesting thread on hacker news related to this term !

@vdchuyen
vdchuyen / sysadmin-day.md
Last active July 27, 2018 09:46
Happy sysadmin day !
@vdchuyen
vdchuyen / cloud-down.md
Last active July 20, 2018 06:32
Cloud was down

Cloud (fscking as a service) or some 'marketing terms' actually are just bunch of distributed softwares writing by bunch of software developers running on bunch of data centers containing bunch of servers operated by bunch of site reliable engineers.

Then it could be broken just like any other systems.

Then it happend with top cloud providers: Google and Amazon AWS

@vdchuyen
vdchuyen / eslint-security-12-7-2018.md
Last active July 13, 2018 07:28
ESLint security incident

Các security issues trên các npm packages từ lâu đã là một rủi ro lớn, và việc nhiều tổ chức, công ty tài chính như Paypal, Walmart chuyển sang sử dụng nodejs thì càng là một thách thức cho team Security.

eslint security incident 12-7-2018 report

npm report

@vdchuyen
vdchuyen / chinese-internet-report-2018.md
Created July 11, 2018 10:47
Chinese internet report 2018

Provide by abacusnews and SCMP:

Download here

@vdchuyen
vdchuyen / supervisord.service
Created July 11, 2018 09:57 — forked from mozillazg/supervisord.service
install and configure supervisord on centos 7.
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
ExecReload=/bin/supervisorctl reload
ExecStop=/bin/supervisorctl shutdown