Skip to content

Instantly share code, notes, and snippets.

View vutranvn's full-sized avatar

Vu Tran vutranvn

View GitHub Profile
@vutranvn
vutranvn / nginx.conf
Created October 27, 2014 04:54
Config Nginx on OS X (Still error)
worker_processes 1;
error_log /usr/local/etc/nginx/logs/error.log debug;
events {
worker_connections 1024;
}
http {
include mime.types;
@vutranvn
vutranvn / php-fpm
Created October 27, 2014 04:57
Config php-fpm on OS X (Still error)
location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
@vutranvn
vutranvn / phpmyadmin.conf
Created December 8, 2014 04:21
Config phpmyadmin
#
# PHPMyAdmin
#
server {
listen 2407;
server_name 128.199.252.210;
access_log /var/www/logs/phpmyadmin.access.log main;
@vutranvn
vutranvn / testOptGrpSelect.php
Last active August 29, 2015 14:21
Test Option Group Select
!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Demo nyro Modal</title>
<link rel="stylesheet" href="css/nyroModal.css" type="text/css" media="screen">
<script src="//code.jquery.com/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/jquery.nyroModal.js"></script>
<script type="text/javascript" src="js/jquery.nyroModal-ie6.js"></script>
@vutranvn
vutranvn / cmd_setup_lemp_centos
Created August 3, 2015 12:12
Command to setup LEMP on CentOS 6.5
aloha
@vutranvn
vutranvn / Fedora_command_useful
Created September 5, 2015 11:10
All command line are useful on Fedora
*** Install Chrome
- Enable Google YUM repository: create /etc/yum.repos.d/google-chrome.repo
cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome - \$basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDpOf3KzV3snvzyver+qK0iZ6IUWkhRKDoAU3+avtQVf42QBOHIxJ/ZVly1Q967Fbf4DVKvCLYTWs/NJEpKz0eS4VwxImAaMP6TQzw3je/eLrIiTbMr07ikW6lH2fUWJt03R5jL4babk9gqFTZHUXkDklelSsuTvcGzNGrWxfi5Sla3iuQTSEEFJrwwsiE/uUKWuBmMJ61P+WMllwa55VVQE1bfjku/t01w3VqSIyM8Opgti+qJ5Z0MsOEAyCD7QNH4+5ddCFG1ZMDSYzcyNB9cIcpCn900Xbcx3caeW6wdbwW60c1OwQLhywB14VA0erOW9mOOdj3q8wRvM/2xWksQOxT+JSwIc16M6W2dK+uagkvNTKfB9kURVJd3if085dzvYUkAIgV9CxlRVclGzi/FjnOg0TEQiV1dhWjXs4YE2hUF5JMXrHjneHwfEYteQTfBVXfo3bGMf6dSkRl9zoTYjxgB+4J2Q3UoRFgq77OW5VUN053IMP0KFyW1iIMsIyu8IDBs9qkzzEA38Wz1svltyiGB6A3LYC/P1CmeoMDbm3QkILvp0rh5EmgkP1hC79A32D7hZcAnZmQTAvv+jHc0KGGXR+lIvGtTbiXCEvboNyIaGIFfAQEstCFiRg1gmgefPXoOf5eApzamypfGGPn5xwXnX61yTEG1YsT43HxeJw== phongvu.811@gmail.com
@vutranvn
vutranvn / Add more resolution display Ubuntu
Created November 25, 2016 03:10
Add more resolution display Ubuntu
Add more resolution display
- Find out the name of your video device
sudo xrandr -q
Dell 2016H
cvt 1600 900 60
sudo xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
sudo xrandr --addmode VGA1 1600x900_60.00
Dell S2340L
@vutranvn
vutranvn / Url learn Photoshop
Last active February 28, 2017 08:11
Learn photoshop
* Kênh tiếng việt:
- Tự học Photoshop: www.youtube.com/tuhocphotoshop
- Thùy Uyên www.youtube.com/thuyuyeninfo_design
- Nguyễn Hoàng Phúc www.youtube.com/user/HPphotoshop
- Dương Trung Hiếu www.youtube.com/user/duongtrunghieu2009
- https://www.youtube.com/playlist?list=PLqGBGijj9U34y6FbeVtlRXowHCTMj3mRx
- https://hocps.wordpress.com/ch%C6%B0%C6%A1ng-trinh-h%E1%BB%8Dc/
* Kênh nước ngoài
@vutranvn
vutranvn / Android Curriculum Basic.md
Last active March 28, 2017 05:04
Self study android

Table Content

  1. Introdution and Settings
  2. Android Studio
    • Understanding the concept behind LogCat
    • Android Studio with LogCat Demo
    • More on Android Studio LogCat
  3. Startup
    • Run first app
    • XML
    • Properties and methods