Skip to content

Instantly share code, notes, and snippets.

SOGO Haraguchi harasou

Block or report user

Report or block harasou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View buildcentcore
#!/bin/bash -exv
readonly MAINTAINER="harasou <harasou5@gmail.com>"
readonly REPOSITORY="harasou/centos-core"
function usage(){
cat<<EOD 1>&2
Usage:
$0 version
View 0. directry
[root@localhost vagrant]# ll /etc/httpd/conf.d/
total 20
-rw-r--r--. 1 root root 366 10月 19 20:39 README
-rw-r--r--. 1 root root 2926 10月 19 20:39 autoindex.conf
-rw-r--r--. 1 root root 1252 10月 19 16:44 userdir.conf
-rwxr-xr-x. 1 root root 210 2月 10 22:00 vhost.conf
-rw-r--r--. 1 root root 824 10月 19 16:44 welcome.conf
[root@localhost vagrant]#
[root@localhost vagrant]# ll /etc/httpd/conf.exbind/
total 0
@harasou
harasou / fuse.h
Last active Dec 5, 2017
libfuse で Hello World !
View fuse.h
/*
FUSE: Filesystem in Userspace
Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
This program can be distributed under the terms of the GNU LGPLv2.
See the file COPYING.LIB.
*/
#ifndef _FUSE_H_
#define _FUSE_H_
@harasou
harasou / gist:d43867621030e74ff3af
Created Jan 6, 2015
nc コマンドで whois サーバに問合せする
View gist:d43867621030e74ff3af
echo -ne "google.co.jp\r\n" | nc whois.jp 43 | iconv -f ISO-2022-JP -t utf8
View munin.alfredworkflow
cat <<'EOD' | ./main {query}
{
"services": [
{"name":"lolipop", "url":"http://munin001.phy.lolipop.jp/munin/"},
{"name":"minne", "url":"http://manage001.minne.com/munin/"},
{"name":"muumuu", "url":"http://manage01.muumuu-domain.com/munin/"},
{"name":"heteml", "url":"http://munin.heteml.jp/munin/"}
]
}
EOD
@harasou
harasou / file0.txt
Last active Aug 29, 2015
markdown + remark.js + gh-pages でプレゼン資料を公開する ref: http://qiita.com/harasou@github/items/1fa3cca6ac1ef175c876
View file0.txt
# サンプルをダウンロード
git clone git@github.com:harasou/slides.git
# ブラウザで開く
open slides/sample.html
# ブラウザが Google Chrome の場合
open -a "Google Chrome" --args --allow-file-access-from-files $(pwd)/slides/sample.html
@harasou
harasou / index.html
Last active Aug 29, 2015
remark.js sample
View index.html
<DOCTYPE html>
<html>
<head>
<title>Presentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
View slide1.md

スライド1ページ目

--

1ページめに追記

--

さらに追記

@harasou
harasou / bash
Created Aug 24, 2014
シェルスクリプトで IPアドレス計算 ref: http://qiita.com/harasou@github/items/5c14c335388f70e178f5
View bash
$ ip2decimal 192.168.0.1
3232235521
$ decimal2ip 3232235521
192.168.0.1
$
$ ip2decimal 255.255.255.0
4294967040
$ cidr2decimal 24
4294967040
You can’t perform that action at this time.