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/env python | |
# -*- coding:utf-8 -*- | |
import urllib2 | |
from pyquery import PyQuery as pq | |
def get_matome_info(url): | |
res = urllib2.urlopen(url) | |
html = res.read().decode('utf-8') |
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/env python | |
# -*- coding:utf-8 -*- | |
import urllib2 | |
from pyquery import PyQuery as pq | |
MATOME_PORTALS = { | |
u'blomaga': u'http://ch.nicovideo.jp/portal/blomaga/matomemedia', | |
u'livedoor': u'http://blog.livedoor.com/category/243/', |
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/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
from datetime import datetime | |
import argparse | |
import pynico |
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
PLAY [all] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [192.168.33.50] | |
TASK: [基本的なパッケージをインストール] ****************************************************** | |
changed: [192.168.33.50] => (item=build-essential,libsqlite3-dev,libreadline6-dev,libgdbm-dev,zlib1g-dev,libbz2-dev,sqlite3,tk-dev,zip,git) | |
TASK: [apacheのインストール] ********************************************************* | |
changed: [192.168.33.50] |
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
PLAY [all] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [192.168.33.50] | |
TASK: [基本的なパッケージをインストール] ****************************************************** | |
changed: [192.168.33.50] => (item=build-essential,libsqlite3-dev,libreadline6-dev,libgdbm-dev,zlib1g-dev,libbz2-dev,sqlite3,tk-dev,zip,git) => {"changed": true, "item": "build-essential,libsqlite3-dev,libreadline6-dev,libgdbm-dev,zlib1g-dev,libbz2-dev,sqlite3,tk-dev,zip,git"} | |
TASK: [apacheのインストール] ********************************************************* | |
changed: [192.168.33.50] => {"changed": true} |
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
PLAY [all] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
<192.168.33.50> ESTABLISH CONNECTION FOR USER: vagrant | |
<192.168.33.50> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/Users/taku/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PasswordAuthentication=no', '-o', 'User=vagrant', '-o', 'ConnectTimeout=10', '192.168.33.50', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1378945838.34-230334775057441 && chmod a+rx $HOME/.ansible/tmp/ansible-1378945838.34-230334775057441 && echo $HOME/.ansible/tmp/ansible-1378945838.34-230334775057441'"] | |
<192.168.33.50> REMOTE_MODULE setup | |
<192.168.33.50> PUT /var/folders/zc/pv2v17_92v974vs5443sbgs00000gn/T/tmpq31N8W TO /home/vagrant/.ansible/tmp/ansible-1378945838.34-230334775057441/setup | |
<192.168.33.50> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', |
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
PLAY [all] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [192.168.33.11] | |
TASK: [Set up sshd_config] **************************************************** | |
--- before | |
+++ after | |
@@ -1,15 +1,15 @@ |
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
package yours | |
import ( | |
"testing" | |
"github.com/stretchr/testify/assert" | |
) | |
func TestSomething(t *testing.T) { | |
assert.True(t, true, "True is true!") |
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
gem list --no-versions > /tmp/gemlist | |
rbenv global 2.1.0 | |
gem install `cat /tmp/gemlist` |
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
$ brew tap phinze/cask | |
$ brew install brew-cask | |
$ brew cask install google-chrome |
OlderNewer