- Linus Torvalds:The mind behind Linux
- UC Berkeley Commencement by Sheryl Sandberg
- A 30-year history of the future
- Thomas Piketty: New thoughts on capital in the twenty-first century
- President Obama Participates in a Wreath Laying Ceremony
- The pattern behind self-deception
- 夏休み中に絶対見る!英語学習にも最適なTED動画10選(ビジネス編)
- 英語学習者なら絶対に見るべきTED動画5選(サイエンス編)
- 英語学習者が絶対見ておくべきTED動画5選(サイエンス編 vol.2)
- [Facebook Founder Mark Zuckerberg Commencement Address | Harv
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
略語 | 展開した文 | 日本語 | |
---|---|---|---|
afa | as far as | 〜の限り | |
afaict | as far as I can tell | 私の言える範囲だと | |
afaik | as far as I know | 私の知っている限り | |
afk | away from keyboard | 離席中、離席します | |
aiui | as I understand it | 私の理解では | |
ama | ask me anything | 何でも聞いて | |
atm | at the moment, at this moment | 今の所 | |
awol | absent without leave | 無断欠勤 | |
bbl | be back later | また戻ります |
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
require 'nokogiri' | |
require 'open-uri' | |
url = ARGV[0] | |
doc = Nokogiri::HTML(open(url)) | |
all_words = doc.inner_text.split(/\s*[\W-[[:cntrl:]]]\s*/) | |
.reject{|w| /^(\d*|\w)$/ =~ w} | |
.map{|w| w.downcase} | |
.sort |
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/env ruby | |
# | |
# Sensu Handler: chatwork | |
# | |
# This handler script is used to send notifications to Chatwork rooms. | |
# Chatworkのルームに通知を投げるハンドラです。 | |
# | |
# Input: | |
# @event - Event attributes. | |
# @event['action'] - Property to figure out the event type i.e. whether it is create or resolve. |
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/env ruby | |
# encoding: UTF-8 | |
# golang-stats-api-metrics | |
# | |
# DESCRIPTION: | |
# Get golang metrics with golang-stats-api-metrics | |
# https://github.com/fukata/golang-stats-api-handler | |
# | |
# OUTPUT: | |
# metric data |
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 | |
# force check specific service for the host | |
# using Nagios external commands | |
NOW=`date +%s` | |
CMDFILE='/var/spool/nagios/cmd/nagios.cmd' | |
# check service for the host | |
f_check() { |
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 | |
# enable/disable all notifications for hosts | |
# in the hostgroup | |
# using Nagios external commands | |
NOW=`date +%s` | |
CMDFILE='/var/spool/nagios/cmd/nagios.cmd' | |
# enable notification for the hostgroup |
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 | |
CMDNAME=$0 | |
if [ $# -le 0 ] ;then | |
echo "Usage: $CMDNAME database database ..." | |
fi | |
shift `expr $OPTIND - 1` | |
for database in $@ ;do |
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 | |
#END STATUS | |
OK=0 | |
WARNING=1 | |
CRITICAL=2 | |
UNKNOWN=3 | |
# snmpwalk command | |
SNMPWALK=/usr/local/net-snmp/bin/snmpwalk |
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 | |
# enable/disable specific service notifications for the host | |
# using Nagios external commands | |
NOW=`date +%s` | |
CMDFILE='/var/spool/nagios/cmd/nagios.cmd' | |
# enable notification for the host | |
f_enable() { |