Skip to content

Instantly share code, notes, and snippets.

@devthue
devthue / rabbitmq-note.md
Last active November 3, 2016 14:56
RabbitMQ Ghi chú
@devthue
devthue / redis-install.md
Last active August 10, 2016 06:52
How To Install Redis
@devthue
devthue / nano-in-docker.md
Created August 10, 2016 07:29
Running nano in docker container

Running nano in docker container

Run comand : export TERM=xterm

@devthue
devthue / git-ignore-local.md
Created August 12, 2016 04:18
Git ignore files only locally

Sources: http://stackoverflow.com/questions/1753070/git-ignore-files-only-locally

The .git/info/exclude file has the same format as any .gitignore file. Another option is to set core.excludesFile to the name of a file containing global patterns.

Note, if you already have unstaged changes you must run the following after editing your ignore-patterns:

git update-index --assume-unchanged [<file>...]

Note on $GIT_DIR: This is a notation used all over the git manual simply to indicate the path to the git repository. If the environment variable is set, then it will override the location of whichever repo you're in, which probably isn't what you want.

@devthue
devthue / study.md
Last active August 13, 2016 08:07
Tìm hiểu công nghệ
  • Port là gì?
  • http method (get post put delete)
  • http status code (404, 502,...)
  • socket la gi?
  • Ubuntu (command line cơ bản: tạo thư mục, xóa thư mục, chỉnh file, tạo file, cd là gì, chmod là gì, chown là gì, git trên ubuntu, apt-get là gì) LINUX căn bản. (14.04)
  • Git cơ bản (clone, pull, commit, push, fetch, add)
  • Docker là gì? Cách chạy 1 cotainer bằng docker, chạy ubuntu bằng docker: http://kipalog.com/posts/Toi-da-dung-Docker-nhu-the-nao
  • Nodejs
  • Express
  • Mongodb
@devthue
devthue / iTerm2-Shortcut-key.md
Last active December 18, 2016 11:19
Add in iTerm2 the following Profile Shortcut Keys
@devthue
devthue / docker-ubuntu.md
Created August 19, 2016 03:02
LEMP + RabbitMQ + Redis server (Ubuntu 14.04)

Pull Images

docker pull dinhbang/lemp

Create container from images dinhbang/lemp

@devthue
devthue / su-dung-docker.md
Created September 14, 2016 08:28
Sử dụng Docker
@devthue
devthue / create-category-phalcon.md
Last active September 18, 2016 07:40
Create category with Phalcon

Create Category Phalcon

Mysql

id(int, AI)

parent(int)

priority(int)

@devthue
devthue / Nginx-Config.md
Last active October 18, 2016 15:36
Config Nginx
  • Chỉnh sửa file /etc/hosts ngoài máy thật
127.0.0.1 bigseo.dev
  • Thêm 1 file nginx config mới /etc/nginx/conf.d với tên file bigseo.dev.conf nội dung:

Thay đổi: