This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @t = 2; | |
SELECT | |
SUM(A.counter) AS counter | |
FROM | |
(SELECT | |
FROM_UNIXTIME(CEILING(UNIX_TIMESTAMP(access_date) / (@t * 60)) * (@t * 60)) AS access_date, | |
1 AS counter | |
FROM | |
tmp_user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# -*- coding:utf-8 -*- | |
from fabric.api import * | |
from fabric.decorators import runs_once | |
from datetime import datetime | |
env.hosts = ['ホスト名'] | |
env.user = 'ユーザー名' | |
env.key_filename = '鍵の場所' | |
env.project_name = 'プロジェクトネーム' |
NewerOlder