As configured in my dotfiles.
start new:
tmux
start new with session name:
import datetime | |
import getpass | |
import os | |
import shutil | |
import time | |
from selenium import webdriver | |
from selenium.common.exceptions import NoSuchElementException | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary |
#include <stdio.h> | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
#include <set> | |
#include <list> | |
#include <map> | |
#include <thread> | |
#include <algorithm> | |
#include <stdio.h> |
# mysql主从复制,两台机器 | |
# 主: 192.168.10.107 UBUNTU | |
# 从: 192.168.10.105 UBUNTU | |
# 主配置 | |
>vim /etc/mysql/my.cnf | |
[mysqld] | |
log-bin=mysql-bin // 启用二进制日志 | |
server-id=107 // 服务器唯一ID,一般取IP最后一段 | |
bind-address=192.168.10.107 |
As configured in my dotfiles.
start new:
tmux
start new with session name:
-- This is a Hive program. Hive is an SQL-like language that compiles | |
-- into Hadoop Map/Reduce jobs. It's very popular among analysts at | |
-- Facebook, because it allows them to query enormous Hadoop data | |
-- stores using a language much like SQL. | |
-- Our logs are stored on the Hadoop Distributed File System, in the | |
-- directory /logs/randomhacks.net/access. They're ordinary Apache | |
-- logs in *.gz format. | |
-- | |
-- We want to pretend that these gzipped log files are a database table, |
var e = void 0, f = true, g = null, i = false; | |
function j() { | |
return function() { | |
} | |
} | |
function k(a) { | |
return function() { | |
return this[a] | |
} | |
} |
ADD JAR ${CODE}/hive/udf/md5.jar; | |
CREATE TEMPORARY FUNCTION mymd5 AS 'com.dataminelab.hive.udf.Md5'; | |
SELECT | |
DISTINCT mymd5(user_id) | |
FROM page_views | |
WHERE | |
substr(mymd5(user_id), -2) == '00'; |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
maxconn 1000 | |
daemon | |
user haproxy | |
group haproxy | |
defaults | |
log global |
" VIM配置文件 | |
" Author: Fanzeyi (fanzeyi1994[at]gmail.com) | |
" Last Modified Date: 2010-10-13 17:49 | |
" 设置语言及编码 | |
source $VIMRUNTIME/delmenu.vim | |
source $VIMRUNTIME/menu.vim | |
set enc=utf-8 | |
" set fencs=utf-8,ucs-bom,gbk,gb18030,shift-jis,gb2312,cp936 |