Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

NAKAMURA, Tomohiro tomoh1r

💭
I may be slow to respond.
View GitHub Profile
@tomoh1r
tomoh1r / README.rst
Last active Aug 29, 2015
redmine から json でデータを取得
View README.rst

Redmine からデータを JSON で取得する。

issue_number, url, username, password は適宜

@tomoh1r
tomoh1r / spam.rst
Last active Aug 29, 2015
ヴァ-
View spam.rst
[spam@ham ~]$ mysql -u egg
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3029885
Server version: 5.5.27-log MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
@tomoh1r
tomoh1r / pwd.ps1
Created Oct 22, 2014
ホームディレクトリを ~ にするなど
View pwd.ps1
$_path = $(Get-Location).Path
if ($_path.IndexOf($ENV:HOME) -eq 0) {
$_path = Join-Path '~' ($PWD.ProviderPath.Remove(0, ($ENV:HOME).Length))
}
@tomoh1r
tomoh1r / maillog
Created Oct 26, 2014
FreeBSD 10 sendmail で verify=FAIL など
View maillog
STARTTLS=client, relay=smtp.gmail.com, version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
@tomoh1r
tomoh1r / Sample01.proj
Last active Aug 29, 2015
MSBuild.ExtensionPack 使ってみる
View Sample01.proj
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets="run"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectName>MsBuild Sample01</ProjectName>
<!-- load MSBuild.ExtensionPack -->
<RootDir>$(MSBuildProjectDirectory)</RootDir>
@tomoh1r
tomoh1r / env.txt
Last active Aug 29, 2015
ActivePerl x64 5.18.2 、 nmake 、 Windows で App:cpanminus インストールしようとしたら失敗
View env.txt
OS: Windows 7 Home Premium x64
Perl (perl -V):
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
Platform:
osname=MSWin32, osvers=6.1, archname=MSWin32-x64-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
View version.txt
$ /Users/tomo/Applications/MacVim.app/Contents/MacOS/Vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 4 2014 19:05:45)
MacOS X (unix) version
Included patches: 1-527
Compiled by sakamoto@macbook.local
Huge version with MacVim GUI. Features included (+) or not (-):
+acl +find_in_path +mouse_netterm +syntax
+arabic +float +mouse_sgr +tag_binary
+autocmd +folding -mouse_sysmouse +tag_old_static
+balloon_eval -footer +mouse_urxvt -tag_any_white
@tomoh1r
tomoh1r / DocomoZatsudanAPI.py
Last active Aug 29, 2015
docomo Developer support 雑談 API としゃべる (ライセンスは自分の書いた分は CC0 or NYSL or THE BEER-WARE LICENSE です)
View DocomoZatsudanAPI.py
#! /usr/bin/env python3.4
# -*- coding: utf-8 -*-
import sys
import json
import logging
import random
import urllib.request
# logger の初期化
@tomoh1r
tomoh1r / README.md
Last active Aug 29, 2015
雑な MariaDB の Docker コンテナ作成手順
View README.md

説明

MariaDB のコンテナは以下の手順で組める。

本当は Oracle MySQL で手順を作りたかったが途中の MariaDB に書き換えたバージョン。

コンテナ構築手順

@tomoh1r
tomoh1r / python-virtualenv.rb
Created Jan 26, 2015
virtualenv の Formula
View python-virtualenv.rb
class PythonVirtualenv < Formula
homepage ""
url "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-12.0.5.tar.gz"
version "12.0.5"
sha1 "ae93636c4b6fc55d6e7d84c628f5c4cd59c5129b"
depends_on :python if MacOS.version <= :snow_leopard
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"