Skip to content

Instantly share code, notes, and snippets.

View vuthaihoc's full-sized avatar
🤒
ke ke ặc ặc

Stupid Dev vuthaihoc

🤒
ke ke ặc ặc
View GitHub Profile
@vuthaihoc
vuthaihoc / mamp_additional_php_versions.md
Created August 1, 2018 07:53
MAMP Additional PHP versions
@vuthaihoc
vuthaihoc / apps.yml
Last active July 27, 2018 18:34
Build ffmpeg 4 with fdk-aac x264 x265 xvid lame on centos 6
apps:
- script : /path/to/artisan
name : 'converter'
interpreter : /path/to/php
cwd : /path/to/code
exec_mode: fork
args : args1 args2
autorestart : true
restart_delay : 30000
out_file : /path/to/log/converter.out.log
@vuthaihoc
vuthaihoc / exiftool_centos.md
Created July 19, 2018 18:44
Chú ý khi cài exiftool lên server centos

Exiftool phụ thuộc vào perl, do đó phải có perl 5 trở lên trên hệ thống

Cần cài thêm 2 module cho perl

sudo yum install perl-Archive-Zip

để đọc được thông tin các file docx,pptx

sudo yum install perl-Digest-MD5
# coding=UTF-8
import nltk
from nltk.corpus import brown
# This is a fast and simple noun phrase extractor (based on NLTK)
# Feel free to use it, just keep a link back to this post
# http://thetokenizer.com/2013/05/09/efficient-way-to-extract-the-main-topics-of-a-sentence/
# Create by Shlomi Babluki
# May, 2013
http://www.vnexpress.net
http://www.tuoitre.com.vn
http://vietnamnet.vn/
http://www.dantri.com.vn
http://www.vietnamplus.vn/
http://www.baodatviet.vn/
http://www.vtc.vn/
http://www.linkhay.com
http://vn.news.yahoo.com/
http://tuanvietnam.net/
@vuthaihoc
vuthaihoc / benchmark+go+nginx.md
Created June 1, 2018 10:23 — forked from hgfischer/benchmark+go+nginx.md
Benchmarking Nginx with Go

Benchmarking Nginx with Go

There are a lot of ways to serve a Go HTTP application. The best choices depend on each use case. Currently nginx looks to be the standard web server for every new project even though there are other great web servers as well. However, how much is the overhead of serving a Go application behind an nginx server? Do we need some nginx features (vhosts, load balancing, cache, etc) or can you serve directly from Go? If you need nginx, what is the fastest connection mechanism? This are the kind of questions I'm intended to answer here. The purpose of this benchmark is not to tell that Go is faster or slower than nginx. That would be stupid.

So, these are the different settings we are going to compare:

  • Go HTTP standalone (as the control group)
  • Nginx proxy to Go HTTP
  • Nginx fastcgi to Go TCP FastCGI
  • Nginx fastcgi to Go Unix Socket FastCGI

Source

Compound (Composite) Indexes - MariaDB Knowledge Base

A mini-lesson in "compound indexes" ("composite indexes")

This document starts out trivial and perhaps boring, but builds up to more interesting information, perhaps things you did not realize about how MariaDB and MySQL indexing works.

This also explains [EXPLAIN][1] (to some extent).

@vuthaihoc
vuthaihoc / 10-tips-git-next-level.md
Last active April 12, 2018 17:46
10 Tips to Push Your Git Skills to the Next Level

Recently we published a couple of tutorials to get you familiar with Git basics and using Git in a team environment. The commands that we discussed were about enough to help a developer survive in the Git world. In this post, we will try to explore how to manage your time effectively and make full use of the features that Git provides.

Note: Some commands in this article include part of the command in square brackets (e.g. git add -p [file_name]). In those examples, you would insert the necessary number, identifier, etc. without the square brackets.

@vuthaihoc
vuthaihoc / post.md
Created April 11, 2018 19:03 — forked from ikwattro/post.md
Discover Graph Databases with Neo4j & PHP

Discover Graph Databases with Neo4j and PHP

Graph databases are now one of the core technologies of companies dealing with highly connected data.

Business graphs, social graphs, knowledge graphs, interest graphs and media graphs are frequently in the (technology) news. And for a reason. The graph model represents a very flexible way of handling relationships in your data. And graph databases provide fast and efficient storage, retrieval and querying for it.

Neo4j, the most popular graph database, has proven that ability to deal with massive amount of high connected data in many use-cases.

Last Modified: 4 April 2018

Facebook Business Tools Terms

The Facebook Business Tools are a subset of Facebook Products that we provide to help website owners and publishers, developers, advertisers, business partners (and their customers) and others integrate, use and exchange information with Facebook. The Facebook Business Tools include APIs and SDKs, the Facebook pixel, social plugins such as the Like and Share buttons, Facebook Login and Account Kit, as well as other platform integrations, plugins, code, specifications, documentation, technology and services. By clicking "Accept" or using any of the Facebook Business Tools, you agree to the following:

  1. Sharing personal data with Facebook
  2. Y