$ su -
# yum install postfix
# alternatives --display mta # 確認
# alternatives --config mta # 確認
2 プログラムがあり 'mta' を提供します。
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 ruby | |
require 'mail' | |
#====================== | |
# config | |
#====================== | |
# db setting | |
mycnf_path="/usr/lib/zabbix/scripts/<your-database>.conf" |
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
#!/bin/bash | |
#=================== | |
# Config | |
#=================== | |
REPO_ROOT=`git rev-parse --show-toplevel` | |
GOLINT_TMP="/tmp/.golint.txt" | |
TSLINT_TMP="/tmp/.tslint.txt" |
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
# ダウンロードは下記より | |
# http://examples.oreilly.com/9780596529321/ | |
$ cd Downloads/PCI_Code\ Folder/chapter2/ | |
$ python | |
# 推薦モジュールのインポート | |
>>> import recommendations | |
# 映画批評家のLisa RoseとGene Seymourの類似性を計算する |
下記URLの手順に従ってGo言語をインストールして下さい
https://github.com/GeekSalon/GeekSalon/tree/master/2015/vol.7/docs/001_install
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
species | body_weight | brain_weight | |
---|---|---|---|
Mountain_Beaver | 1.35 | 8.1 | |
Cow | 465 | 423 | |
Grey_Wolf | 36.33 | 119.5 | |
Goat | 27.66 | 115 | |
Guine_Pig | 1.04 | 5.5 | |
Diplodocus | 11700 | 50 | |
Asian_Elephant | 2547 | 4603 | |
Donley | 187.1 | 419 | |
Horse | 521 | 655 |
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 bench | |
import ( | |
"strconv" | |
"testing" | |
) | |
var smallStr = "35" | |
var bigStr = "999999999999999" |
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 main | |
import "fmt" | |
func main() { | |
p := []string{"Tokyo", "Kyoto", "Osaka", "Nagoya"} | |
res := createPermurations(p) | |
fmt.Printf("%v\n", res) | |
} |
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
require 'ltsv' | |
require 'json' | |
result = {} | |
STDIN.each do |line| | |
record = LTSV.parse(line) | |
path = false | |
res = record[0] | |
next if res.nil? |