start new:
tmux
start new with session name:
tmux new -s myname
import pandas as pd | |
import numpy as np | |
from sklearn.model_selection import train_test_split | |
from sklearn.metrics import mean_squared_error, accuracy_score, r2_score | |
import lightgbm as lgb | |
import matplotlib.pyplot as plt | |
# --- 1. Tạo dữ liệu dự đoán giá nhà --- | |
np.random.seed(42) | |
num_samples = 10000 |
# Based on CentOS7 fork of @smartmadsoft: https://gist.github.com/moneytoo/ab3f34e4fddc2110675952f8280f49c5 | |
# "6" for CentOS6 or Amazon Linux, "7" for CentOS7 | |
CENTVER="6" | |
OPENSSL="openssl-1.1.0-pre5" | |
NGINX="nginx-1.11.0-1" | |
yum clean all | |
# Install epel packages (required for GeoIP-devel) |
// --- Compiling --- | |
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz | |
$ tar xzvf redis-2.8.3.tar.gz | |
$ cd redis-2.8.3 | |
$ make | |
$ make install | |
// --- or using yum --- | |
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
// Nginx redirect non-www to www | |
server { | |
listen 80; | |
server_name domain.com; | |
rewrite ^/(.*)$ http://www.domain.com/$1 permanent; | |
} | |
server { | |
listen 80; | |
server_name www.domain.com; |
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<title>Rẻ Mỗi Ngày - mua hàng theo nhóm</title> | |
<meta charset="UTF-8"> | |
<meta name=description content=""> | |
<meta name=viewport content="width=device-width, initial-scale=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- Bootstrap CSS --> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" media="screen"> |