I hereby claim:
- I am lequi on github.
- I am lequi (https://keybase.io/lequi) on keybase.
- I have a public key ASClK5U82g-42JHp_iT_wGIBN6y3JUFuKgI3TEps_S2fjwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# config to don't allow the browser to render the page inside an frame or iframe | |
# and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking | |
# if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri | |
# https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options | |
add_header X-Frame-Options SAMEORIGIN; | |
# when serving user-supplied content, include a X-Content-Type-Options: nosniff header along with the Content-Type: header, | |
# to disable content-type sniffing on some browsers. | |
# https://www.owasp.org/index.php/List_of_useful_HTTP_headers | |
# currently suppoorted in IE > 8 http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx |
Generate the kubeconfig file for your cluster using the Kubeconfig File
button in the Cluster view of your cluster.
Save the generated file as $HOME/.kube/config
and run kubectl get nodes
to verify it works.
I posted several talks about compiling PHP from source, but everyone was trying to convince me that a package manager like Homebrew was a more convenient way to install.
The purpose of Homebrew is simple: a package manager for macOS that will allow you to set up and install common packages easily and allows you to update frequently using simple commands.
I used a clean installation of macOS Sierra to ensure all steps could be recorded and tested. In most cases you already have done work on your Mac, so chances are you can skip a few steps in this tutorial.
I’ve made this according to the installation instructions given on GetGrav.
{ | |
"ref_id": "8888", | |
"title": "Váy chống nắng chống tia UV cao cấp Nhật Bản ", | |
"price": "295000", | |
"body_html": "<p><strong>Mã sản phẩm</strong> : UVJ</p>\n\n<p><strong>Màu</strong> : xanh lá cây , xanh biển, hồng, xanh ngọc</p>\n\n<p><strong>Chất liệu</strong> : siêu mềm mịn, siêu thoáng mát, siêu mỏng nhẹ, hút ẩm, kháng khuẩn</p>\n\n<p>+ Được sản xuất theo dây chuyền và công nghệ dệt vải tiên tiến của Nhật Bản</p>\n\n<p>+ Thành phần chính được dệt từ sợi polyester giúp bảo vệ làn da khỏi tác hại của tia tử ngoại đến 98%</p>\n\n<p><strong>Công dụng</strong> :</p>\n\n<p>+ Luôn tạo cảm giác mát mẻ khô ráo ngay cả trong những ngày nắng nóng hay khi hoạt động thể thao ngoài trời</p>\n\n<p>+ Giúp da không bị bắt nắng , không bị rám, sạm đen và luôn khô r |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Using MongoDB in golang with mgo |
function is_mobilephone_number(phoneNumber) { | |
phoneNumber = phoneNumber.replace(/\D/g, '').replace(/^(\+|)84/g, '0'); | |
return /^(01[2689]|09|08[12345689]|07[06789]|03[23456789]|05[2689])[0-9]{7,8}$/g.test(phoneNumber); | |
} |