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
#192.168.0.10 | |
#/etc/td-agent/td-agent.conf | |
<source> | |
type tail | |
format apache | |
path /var/log/httpd/access_log | |
pos_file /var/log/td-agent/httpd-access.log.pos | |
tag td.testdb.accesslog | |
</source> | |
<match td.*.*> |
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
#192.168.0.11 | |
#/etc/td-agent/td-agent.conf | |
<source> | |
type forward | |
port 24224 | |
</source> | |
<match td.*.*> | |
type file | |
path /var/log/fluent/myaccess | |
flush_interval 30s |
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
Option Compare Database | |
Option Explicit | |
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) | |
Sub getSampleData() | |
Dim cnn As ADODB.Connection | |
Dim rs As ADODB.Recordset | |
Dim xmlhttp As Object | |
Dim restAPI As String | |
Dim i, k As Long |
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 | |
# Make following data | |
# time,a,b,c | |
# 2015-03-01 00:00:00,1,2,3 | |
import datetime | |
num1 = 100 | |
num2 = 1 |
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
import os | |
from html.parser import HTMLParser | |
import pprint | |
from datetime import datetime as dt | |
base_path = '../html/blog.iron-hot.com' | |
base_dir = 'p' | |
save_dir = 'change_md' | |
main_title = ' – 覚えたことを復唱してみる。だって、忘れっぽいんですもの。' |
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
import os | |
import pprint | |
from datetime import datetime, timedelta | |
import pytz | |
# https://pypi.python.org/pypi/feedgenerator | |
import feedgenerator | |
rss_max = 10 | |
base_url = 'http://kamekokamekame.net/' | |
root_path = 'source/' |
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
cd /Users/username/toggl | |
. env/bin/activate | |
python3 notification_toggl_task.py |
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
"""Togglの作業をslackに書き込む.""" | |
import requests | |
import json | |
# Slack hooks | |
SLACK_HOOKS_URL = '[slack hook url]' | |
TOGGL_API_TOKEN = '[toggle token]' | |
file_name = './toggl_history.txt' | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>mytoggl</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>sh</string> | |
<string>ワークディレクトリパス/toggl.sh</string> |
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
import unittest | |
class SampleMethod(): | |
def method_1(self): | |
print('method_1') | |
return 'method_1' | |
def method_2(self): |
OlderNewer