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/bin/perl | |
| # 指定された文を cabocha-server.pl を使って構文解析する | |
| # libwww-perl <URL: http://search.cpan.org/~gaas/libwww-perl/> のイン | |
| # ストールが必要. | |
| use Getopt::Long; | |
| use LWP::UserAgent; | |
| use strict; |
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/bin/python3 | |
| # When # of process is equal to 1: | |
| # real 13m6.743s | |
| # user 0m8.840s | |
| # sys 0m0.308s | |
| # When # of processes is equal to 2: | |
| # real 6m33.596s | |
| # user 0m9.284s |
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/bin/python3 | |
| import pyknp | |
| import re | |
| # singleton pattern | |
| class KNP: | |
| _instance = None | |
| _knp = None | |
| def __new__(cls): |
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
| #!/bin/sh | |
| # Usage: Put this script under /etc/cron.daily/. | |
| set -e | |
| PATH=/bin:/usr/bin:/usr/sbin:/sbin | |
| src_vol=/dev/vg1/lv1 | |
| snap_vol=${src_vol}_snap |
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
| #!/bin/bash | |
| # The recent Windows 7 checks the model version of the CPU, and complains that Windows Update | |
| # is unavailable when the modern CPU is installed. | |
| # In order to avoid this problem, the method to change the CPU ID which is described at | |
| # https://superuser.com/questions/625648/virtualbox-how-to-force-a-specific-cpu-to-the-guest | |
| # is insufficient based on my experience. | |
| # In order to avoid this problem, the method to specify the CPU profile which is described at |
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
| # For more detail, see https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | |
| # Because Git-LFS repository use HTTPS, apt-transport-https package is necessary. | |
| - name: Install apt-transport-https | |
| apt: name=apt-transport-https state=present | |
| - name: Add Git-LFS repository key | |
| apt_key: | |
| url: https://packagecloud.io/github/git-lfs/gpgkey | |
| state: present |
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
| - name: Add Intel-MKL packages | |
| apt: | |
| name: intel-mkl | |
| state: latest | |
| - name: Install python3-pip | |
| apt: | |
| name: ['python3-pip', | |
| 'python3-setuptools', | |
| 'python3-numpy', |
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
| Package: libnccl-dev | |
| Pin: version *cuda9.1 | |
| Pin-Priority: 999 | |
| Package: libnccl-dev | |
| Pin: version *cuda9.0 | |
| Pin-Priority: 999 | |
| Package: libnccl2 | |
| Pin: version *cuda9.1 |
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
| #!/bin/sh | |
| usage(){ | |
| cat <<EOF | |
| This script converts the 2-up PDF file into the single page PDF file. | |
| For example, http://www.city.yokohama.lg.jp/kankyo/midoriup/jigyo/mori/guidebook.pdf | |
| is a PDF file which consists of A3 16 pages, each A3 page contains 2 | |
| A4 pages. In order to print the above PDF as a brochure, do the | |
| following procedure. |
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
| #!/bin/bash | |
| usage(){ | |
| cat <<EOF | |
| Usage: remote-sudo host0 host1 ... hostN -- command arg0 arg1 ... argN | |
| EOF | |
| } | |
| ALLHOSTS=(node0 node1 node2 node3 node4 node5 node6 node7 node8 node9) | |
| DOMAIN=example.jp |