Portfolio
simple

Manage and daemonize applications (run them as a service). (Nodejs)

December 18, 2017Category : Code/Web

Install PM2 Now we will install PM2, which is a process manager for Node.js applications. PM2 provides an easy way to manage and daemonize applications (run them as a service). We will use Node Packaged Modules (NPM), which is basically a package manager for Node modules that installs with Node.js, to install PM2 on our app server…

Read more
01.

Cài đặt và cấu hình Let’s Encrypt trong OpenLiteSpeed

October 9, 2017Category : Code/Web IT & Network

Cài đặt Certbot Cách dễ dàng để cài đặt chứng chỉ Let’s Encrypt trên VPS là sử dụng Certbot Client. Trên CentOS 7, Certbot có sẵn ở EPEL Repository. Bạn chỉ cần enable lên với câu lệnh sau: 1 rpm –ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Ubuntu bạn cần cấu hình Certbot PPA với câu lệnh sau: 1 2 3..

Read more
02.

Cách tìm IP thật của server đằng sau CloudFlare hay các dịch vụ CDN

October 9, 2017Category : Bug & Security Code/Web

Guide này nhằm giúp các System Admin nhận ra được rằng mình “misconfiguration” ở đâu khiến hệ thống bị lộ real IP khiến các kẻ tấn công DDoS dễ dàng tấn công hệ thống mà bỏ qua các lớp CDN bảo vệ. Đầu tiên ta cần phải biết danh sách IP của cloudflare (CloudFlare IP)..

Read more
03.

Direct sql quiries in magento

September 1, 2016Category : Code/Web

Database Connections In Magento By default, Magento will automatically connect to it’s database and provide two separate resources which you can use to access data: core_read and core_write. As you can probably guess, core_read is for reading from the database while core_write is for writing to the database. It is important to ensure that you..

Read more
04.

Magento bulk product import with images

August 30, 2016Category : Code/Web

I recently had to transfer the inventory of an old Shop Factory site into Magento 1.7. Magento offers a powerful facility to do this via CSV using its DataFlow profiles but this is not without its quirks and pitfalls so I thought I’d share my experiences. Importing product data First, you will need to know..

Read more
05.

Facebook Messenger Chatbot Setup in PHP

May 5, 2016Category : Code/Web

Here is a step by step guide to make your first chatbot. Widely anticipated, Facebook has announced their messenger platform enabling businesses to build their own chat bots — automated response tools within Messenger which will be able to handle increasingly complex customer queries. Official Facebook Getting started guide https://developers.facebook.com/docs/messenger-platform/quickstart for Messenger Platform https://developers.facebook.com/products/messenger/ only have examples for..

Read more
06.

[WP] W3 Total Cache settings with Cloudflare GUIDE

October 12, 2015Category : Code/Web

W3 Total cache is a WordPress Performance Optimization framework that is designed to improve user experience and page speed.  It is recommended by many web hosting providers, and used by countless major websites such as mashable.com as well as many others. W3TC  improves the user experience of your site by increasing web server performance by reducing..

Read more
07.

[MSSQL Server] Code xóa Logfile

September 17, 2015Category : Code/Web IT & Network

Declare @SQLQuerry nvarchar(255) Declare @dbname nvarchar(255) Declare @CrsrVar Cursor Set @CrsrVar = Cursor For SELECT name FROM sys.databases where name not in (‘tempdb’,’distribution’,’master’,’model’,’msdb’,’ReportServer’,’ReportServerTempDB’) Open @CrsrVar Fetch Next From @CrsrVar into @dbname While(@@FETCH_STATUS = 0) Begin — Truncate the log by changing the database recovery model to SIMPLE. SET @SQLQuerry = ‘USE [‘ +@dbname +’];ALTER DATABASE..

Read more
08.

[WP] Hướng dẫn sử dụng WooCommerce cơ bản

April 16, 2013Category : Code/Web

Tại sao mình lại chọn WooCommerce? WooCommerce là một plugin khá phổ biến để tạo trang bán hàng trong WordPress. Có nhiều themes dành riêng cho nó được WooThemes thiết kế, bao gồm miễn phí và trả phí. Có nhiều thành phần mở rộng (add-on) giúp tăng cao hiệu suất sử dụng. Đầy đủ các..

Read more
010.

Bypassing Antivirus with Msfencode

July 27, 2012Category : Bug & Security Virut/Trojan

What You Need A BackTrack Linux machine, real or virtual. I used BackTrack 5 R2, but other versions of BackTrack are probably OK too. WARNING We are using some harmless test files, but don’t infect people with any real viruses–that’s a crime! Purpose Antivirus protects machines from malware, but not all of it. There are..

Read more
011.

Xử lý các tính huống thực tế với WireShark

April 24, 2011Category : IT & Network

Anatomy of a Slow Download (cốt lõi của việc download chậm)   Tình huống: cả mạng download rất chậm   Tiến hành : đặt wireshark lắng nghe toàn bộ đầu ra của mạng   Phân thích : hình ảnh dưới đây cho thấy có rất nhiều kết nối TCP,HTTP điều này có nghĩa là có..

Read more
012.
© Oliver / All rights reserved.
To top