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
| # Ansible task to install Azure CLI. | |
| # These steps are re-implementation of the procedure descrbed at | |
| # https://docs.microsoft.com/cli/azure/install-azure-cli-apt | |
| - name: Install packages required by Azure CLI | |
| apt: | |
| name: ['ca-certificates', 'curl', 'apt-transport-https', 'lsb-release', 'gnupg'] | |
| state: present | |
| - name: Add Azure CLI repository key |
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
| from chainer import function, training | |
| from chainer import reporter as reporter_module | |
| from chainer.dataset import convert | |
| from collections import defaultdict | |
| class PreciseEvaluator(training.extensions.Evaluator): | |
| """:class:`chainer.training.extensions.Evaluator` module uses | |
| :func:`chainer.reporter.compute_mean` to calculate the mean | |
| accuracy and the mean loss over the multiple mini batches. |
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
| --- a/swig/MeCab.i | |
| +++ b/swig/MeCab.i | |
| @@ -3,6 +3,7 @@ | |
| %{ | |
| #include "mecab.h" | |
| +#define SWIG_PYTHON_STRICT_BYTE_CHAR | |
| /* Workaround for ruby1.9.x */ | |
| #if defined SWIGRUBY | |
| #include "ruby/version.h" |
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
| $ git clone [email protected]:nlp-ja-team/mecab.git | |
| $ cd mecab | |
| $ gbp buildpackage -us -uc --git-dist=stable --git-arch=amd64 | |
| (snip) | |
| dpkg-genchanges: warning: debian/changelog(l8): found end of file where expected more change data or trailer | |
| dpkg-genchanges: warning: unknown information field '' in input data in parsed version of changelog | |
| dpkg-genchanges: error: unknown is not a valid version | |
| dpkg-buildpackage: error: dpkg-genchanges subprocess returned exit status 2 |
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 | |
| /usr/bin/ldapsearch -o ldif-wrap=no "$@" | perl -MMIME::Base64 -Mutf8 -pe 's/^([-a-zA-Z0-9;]+):(:\s+)(\S+)$/$1.$2.&decode_base64($3)/e' |
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
| # Copyright (C) 2019 by TSUCHIYA Masatoshi <[email protected]> | |
| # | |
| # This program is free software; you can redistribute it and/or | |
| # modify it under the terms of the GNU General Public License | |
| # as published by the Free Software Foundation; either version 2 | |
| # of the License, or (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
| --- /etc/ssl/openssl.cnf | |
| +++ /etc/ssl/openssl.cnf | |
| @@ -359,4 +359,4 @@ system_default = system_default_sect | |
| [system_default_sect] | |
| MinProtocol = TLSv1.2 | |
| -CipherString = DEFAULT@SECLEVEL=2 | |
| +#CipherString = DEFAULT@SECLEVEL=2 |
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
| case "$1" in | |
| */*) | |
| executable=`readlink -f $1` | |
| ;; | |
| *) | |
| executable=`pwd`/$1 | |
| ;; | |
| esac | |
| echo ${executable} |
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
| FROM centos:centos7 | |
| RUN yum update -y | |
| RUN yum install epel-release centos-release-scl -y | |
| # yum groupinstall "Development Tools" causes an error, described at https://qiita.com/madaran0805/items/1cac9c921cec4e8a23e7 | |
| RUN yum groupinstall base "Development Tools" --setopt=group_package_types=mandatory,default,optional -y | |
| RUN yum install \ | |
| tcsh \ |
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: Decide whether ntp or chrony is used for the target | |
| set_fact: | |
| use_chrony: true | |
| when: ansible_os_family == 'RedHat' and ansible_distribution_major_version >= '7' | |
| - name: Install either ntp or chrony | |
| package: | |
| name: >- | |
| {%- if use_chrony is defined -%}chrony | |
| {%- else -%}ntp |