Skip to content

Instantly share code, notes, and snippets.

View ikeikeikeike's full-sized avatar
🈵
Working

ikedat / Tatsuo Ikeda ikeikeikeike

🈵
Working
  • 3C
  • Tokyo, Japan
  • 19:17 (UTC +09:00)
View GitHub Profile
@ikeikeikeike
ikeikeikeike / gist:1533155
Created December 29, 2011 09:18
python find like script. testing.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pyfind
======================================
github: https://github.com/ikeikeikeike/home/tree/develop/bin
run command::
$ pyfind /etc/mail "Default"
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pytree
=================================================================================
github: https://github.com/ikeikeikeike/home/tree/develop/bin
run command::
$ pytree /etc/mail
@ikeikeikeike
ikeikeikeike / gist:1575287
Created January 7, 2012 16:49
createtags-python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
simple simple*2 createtags-python
===================================
github: https://github.com/ikeikeikeike/home/tree/develop/bin
.. code-block:: bash
**Usage**
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pycolors
===================================
github: https://github.com/ikeikeikeike/home/tree/develop/bin
.. code-block:: bash
**Usage**
@ikeikeikeike
ikeikeikeike / gist:1912782
Created February 26, 2012 03:34
tmux new-window ssh
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
ssh_windows = {
"host1": "127.0.0.1",
"host2": "123.123.123.123",
"host3": "12.12.12.12",
}
@ikeikeikeike
ikeikeikeike / gist:2028340
Created March 13, 2012 11:46
django logging fluentd
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': "%(asctime)s %(levelname)s: %(message)s [in %(pathname)s:%(lineno)d]"
},
},
'handlers': {
'fluentinfo':{
@ikeikeikeike
ikeikeikeike / fluentd.conf
Created March 13, 2012 12:11
fluentd.conf
#<source>
# type tcp
# port 24224
#</source>
<match app.**>
type copy
<store>
type stdout
</store>
@ikeikeikeike
ikeikeikeike / gist:2028464
Created March 13, 2012 12:24
django + fluentd + mongodb package and modules.
$ pip install django fluent-logger
$ gem install fluent-plugin-mongo fluentd bson_ext
@ikeikeikeike
ikeikeikeike / gist:2030528
Created March 13, 2012 18:31
Fluentd + Django > views.py
# -*- coding: utf-8 -*-
"""
sent (fluent.conf) ::
#<source>
# type tcp
# port 24224
#</source>
@ikeikeikeike
ikeikeikeike / gist:2035953
Created March 14, 2012 11:43
ruby-vagrantboxes
$ git clone https://github.com/ryuzee/ruby-vagrantboxes
$ cd ruby-vagrantboxes
$ rake build
$ vagrant gem install pkg/vagrantboxes-0.0.2.gem