Portfolio
input

Varnish Agent – Công cụ quản lý và Theo dõi Varnish

March 20, 2018Category : I-Think

Khi chúng ta sử dụng Varnish, vấn đề là làm sao để theo dõi được tình trạng hệ thống và có thể điều chỉnh được các tham số cấu hình VCL. Với Varnish Agent, mọi chuyện rất đơn giản. Varnish Agent là một tiến trình nhỏ kết nối với Varnish và các service liên quan để có thể trực..

Read more
01.

WinNMP – Config

February 27, 2018Category : Code/Web IT & Network

How to send emails using PHP WinNMP has 2 options for processing emails sent by PHP’s mail() function: mSmtp and mailToDisk (default). To change the option, edit confphp.ini and modify sendmail_path: For Development use mailToDisk (the default): sendmail_path = ‘”C:/WinNMP/bin/php” -n -f “C:/WinNMP/include/tools/mailtodisk.php”‘ Emails will be saved to logmail-XX.txt For Production use mSmtp: sendmail_path = ‘”C:/WinNMP/bin/msmtp/msmtp.exe” -C “C:/WinNMP/conf/msmtp.ini” -t’ You also need to edit confmsmtp.ini in order to configure SMTP server options   How..

Read more
02.

Code button contact

November 23, 2017Category : Code/Web

CSS .ppocta-ft-fix { display: inline-grid; position: fixed; bottom: 40%; right: 30px; min-width: 36px; text-align: center; z-index: 99999; } @media (max-width: 768px) { .ppocta-ft-fix { bottom; 5%; } } #messengerButton { display: inline-block; position: relative; width: 36px; height: 36px; line-height: 36px; border-radius: 100%; box-shadow: 0px 0px 10px -2px rgba(0,0,0,0.7); background: #1CB2ED url(http://kizashop.com/wp-content/themes/shopera-child/images/m-fb.png) center center no-repeat; margin-bottom:..

Read more
03.

[VPS] Cài đặt Memcached đầy đủ trên CentOS

September 28, 2016Category : Code/Web IT & Network

Memcached là một hệ thống cache hoạt động bằng cách lưu tạm thông tin những dữ liệu bạn hay sử dụng vào bộ nhớ RAM. Do tốc độ đọc ghi của bộ nhớ bao giờ cũng cao hơn so với lưu trữ file nên việc sử dụng memcached giúp cho hệ thống của bạn tăng tốc lên một cách..

Read more
05.

[VPS] Netdata – Công cụ theo dõi hệ thống Real-time

September 28, 2016Category : IT & Network

Bạn có thể sử dụng tool này trên server để theo dõi gần như toàn bộ tình trạng hệ thống: Total and Per Core CPU usage, interrupts, softirqs and frequency. Total Memory, RAM, Swap and Kernel usage. Disk I/O (per disk: bandwidth, operations, backlog, utilization, etc). Monitors Network interfaces including: bandwidth, packets, errors, drops, etc)…

Read more
06.

[VPS] Rclone – Backup toàn bộ VPS lên Google Drive – Script sao lưu backup vps

September 28, 2016Category : IT & Network

Rclone là một công cụ đồng bộ hóa dữ liệu tương tự Rsync nhưng lại được tập trung phát triển chức năng kết nối với các dịch vụ lưu trữ đám mây. Ưu điểm của việc sử dụng dịch vụ lưu trữ đám mây đó là tốc độ cao (do có server được đặt trên khắp thế..

Read more
07.

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
08.

Add videojs player html5 with javascript

November 18, 2015Category : Code/Web

index.php <div id=”video”><p> Restart or F5 browser to view this content.</p></div> <link href=”<?php echo get_template_directory_uri(); ?>/css/video-js.min.css” rel=”stylesheet”> <script src=”<?php echo get_template_directory_uri(); ?>/js/videojs.min.js”></script> <script src=”<?php echo get_template_directory_uri(); ?>/js/jquery.min.videojs.js”></script> <script type=’text/javascript’> var obj, source; obj = document.createElement(‘video’); $(obj).attr(‘id’, ‘example_video_test’); $(obj).attr(‘class’, ‘video-js vjs-default-skin’); $(obj).attr(‘controls’, ‘ ‘); $(obj).attr(‘poster’, ‘http://todaytv.club/movie_night_image.jpg’); $(obj).attr(‘preload’, ‘auto’); $(obj).attr(‘data-setup’, ‘{“inactivityTimeout”: 0}’); $(obj).attr(‘autoplay’, ‘true’); source = document.createElement(‘source’);..

Read more
09.

CSS slider – without JS

September 22, 2015Category : Code/Web

CSS slider – without JS – code 1: http://cssdeck.com/labs/css3-image-slider

css-slider1

(more…)

Read more
011.

Ajax Username Validation with PHP and MySQL

August 20, 2015Category : Code/Web

Tutorial for ajax username validation using jquery and php to check if the username is available in the mysql database. Requirements jQuery Library Database and table First create a database in mysql and create a table called members in it.

Read more
012.

YouTube Tutorial – The Player API

May 14, 2015Category : Code/Web

Dozens of video sharing sites may offer streaming video that plays back in higher quality than YouTube, but if you want eyeballs (and millions of them), then Google’s monstrously popular YouTube is the place to be. For a long time, all you could do with YouTube as a web publisher was embed its hosted videos..

Read more
013.

Hướng dẫn cài đặt Memcached đầy đủ trên CentOS 6

November 14, 2014Category : Code/Web

Memcached là một hệ thống cache hoạt động bằng cách lưu tạm thông tin những dữ liệu bạn hay sử dụng vào bộ nhớ RAM. Do tốc độ đọc ghi của bộ nhớ bao giờ cũng cao hơn so với lưu trữ file nên việc sử dụng memcached giúp cho hệ thống của bạn tăng tốc..

Read more
014.

Ajax Username Validation with PHP and MySQL

October 5, 2014Category : Code/Web

Database and table First create a database in mysql and create a table called members in it. CREATE DATABASE books; CREATE TABLE members (id INT(20) NOT NULL AUTO_INCREMENT, username VARCHAR(100)); Insert some dummy values. INSERT INTO members (username) VALUES(“anand.roshan”); …

Read more
015.

Kiểm Soát Truy Cập File Server Với File System Auditor (FSA)

June 30, 2014Category : IT & Network

Như chúng ta được biết trong môi trường doanh nghiệp việc chia sẽ file tài nguyên mạng giữa các nhân viên các bộ phận giúp cho thuận tiện trong công việc làm việc theo nhóm, cũng như bảo mật và backup dự phòng. Nhưng điều này cũng dẫn đến tình trạng có nhiều người có..

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