This file contains 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
#!/bin/sh | |
# | |
# 名称 | |
# groupbyApacheLog - Apacheログを指定項目でグルーピング | |
# | |
# 書式 | |
# groupbyApacheLog [-s] [-tz] target LogFile | |
# | |
# -s | |
# 静的ファイル(.js .css .html .jpg .gif .png)含める |
This file contains 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
<?php | |
class WunderList | |
{ | |
protected $client_id; | |
protected $client_secret; | |
protected $redirect_url; | |
protected $state; | |
protected $access_token; | |
protected $header = array(); |
This file contains 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
<?php | |
// ★ composerでmonologをインストールしている前提 | |
require_once('vendor/autoload.php'); | |
use Monolog\Logger; | |
use Monolog\Handler\StreamHandler; | |
use Monolog\Processor\WebProcessor; | |
use Monolog\Formatter\LineFormatter; | |
class myLogger |
This file contains 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
# -*- coding:utf-8 -*- | |
import os | |
# 文字コード自動判別 | |
def analyzeEncode(file, content=''): | |
lookup = ('shift_jis','euc-jp','utf-8','iso-2022-jp','ascii') | |
encode = [] | |
if os.path.exists(file): |
This file contains 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/bin/python3 | |
# -*- coding: utf-8 -*- | |
from mySQLUtil import MySQLUtil | |
dbx = MySQLUtil( | |
host='localhost', | |
user='root', | |
password='******', | |
db='test', |