Skip to content

Instantly share code, notes, and snippets.

sudo yum -y install yum-utils
sudo yum -y groupinstall development

# install ICS (Inline with Upstream Stable)
sudo yum -y install https://centos7.iuscommunity.org/ius-release.rpm

sudo yum -y install python35u-3.5.2 python35u-pip python35u-devel

python3.5 -V
apt install libtool

gem 'cztop'
gem 'iruby'
gem 'rbczmq'  # zeromq

bundle

iruby notebook --no-browser --ip=0.0.0.0
<h1>ネットワーク組織論(第1回)</h1>
<h2>ネットワークと組織</h2>
<h2>1. 組織概念の変化</h2>
<h2>2. ネットワーク組織とは何か</h2>
<h2>3. ネットワーク組織論の思想的背景</h2>
<h2>4. ネットワーク組織と情報通信インフラ</h2>
<h1>ネットワーク組織論(第2回)</h1>
<h2>ネットワーク分析</h2>
<h2>1. ネットワーク分析とは?</h2>
<h2>2. ネットワークを把握するアプローチ</h2>
@m-ueno
m-ueno / tbs_radio.sh
Last active December 30, 2016 14:32
#!/bin/bash -eu
radio_url=https://radiocloud.jp/archive/megane
wget -nv $radio_url -O temp
# url=https://www.spiral-pf.com/embed/c99d69d37a9a5db695da381346f47bfa6cbd7e902d7b446377d6412f3d64ed17
url=https:$(xmllint --html --xpath 'string(//div[@id="contents_open"]//input[@name="file_url"]/@value)' --nowarning temp 2>/dev/null)
url2=$(curl --cookie-jar cookie -Lv -H "Referer: https://radiocloud.jp/archive/megane/" $url |perl -nle '$_=~/(www.spiral-pf.com\/mp3_data.*)"/ and print "https://" . $1')
@m-ueno
m-ueno / cvimrc
Last active April 17, 2016 17:18
let scrollstep=100
let scrollduration=400
set smoothscroll
set scalehints
set linkanimations
set noautofocus
unmap <C-h>
unmap <C-l>
# Setup cups & cloudprint on Intel Edison
# ref:
# https://communities.intel.com/thread/78440?start=0&tstart=0
# Prerequisites
# [/etc/opkg/base-feeds.conf]
# src/gz all http://repo.opkg.net/edison/repo/all # この行は除くべきかも (see1)
# src/gz edison http://repo.opkg.net/edison/repo/edison # この行は除くべきかも (see1)
client:
image: httpd
links:
- app50:app50
- app500:app500
- app5000:app5000
volumes:
- /home/masaru/logs:/tmp/output
working_dir: /tmp/output
command: [sh, -c, "for i in $(grep app /etc/hosts| perl -anle 'print $F[1]') ; do echo $i >> out ; ab -n 500 -c 500 -e output_$i.csv http://$i:8000/ ; done"]
@m-ueno
m-ueno / pong.elm
Last active August 29, 2015 14:16
-- See this document for more information on making Pong:
-- http://elm-lang.org/blog/Pong.elm
import Color (..)
import Graphics.Collage (..)
import Graphics.Element (..)
import Keyboard
import Signal
import Text
import Time (..)
import Window
;; 保存の度に「、」「。」を「,」「.」に置換する
;; fork of: http://xr0038tech.hatenadiary.jp/entry/2014/05/06/182956
(defun local-replace-all-punctuations ()
"Replace all \"。\" with \".\""
(interactive)
(when (derived-mode-p 'yatex-mode)
(save-excursion
(beginning-of-buffer)
(while (re-search-forward "。" nil t)
(replace-match ".")
#!/bin/bash
set -xeu
LOGDIR=/masaru/logs
exec > >(tee ${LOGDIR}/radiko_$(date +%Y-%m-%d_%H%M).log)
exec 2>&1
if [ $# -lt 3 ]; then