--
1ページめに追記
--
さらに追記
| #!/bin/bash -exv | |
| readonly MAINTAINER="harasou <[email protected]>" | |
| readonly REPOSITORY="harasou/centos-core" | |
| function usage(){ | |
| cat<<EOD 1>&2 | |
| Usage: | |
| $0 version |
| [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 |
| /* | |
| FUSE: Filesystem in Userspace | |
| Copyright (C) 2001-2007 Miklos Szeredi <[email protected]> | |
| This program can be distributed under the terms of the GNU LGPLv2. | |
| See the file COPYING.LIB. | |
| */ | |
| #ifndef _FUSE_H_ | |
| #define _FUSE_H_ |
| echo -ne "google.co.jp\r\n" | nc whois.jp 43 | iconv -f ISO-2022-JP -t utf8 |
| 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 |
| # サンプルをダウンロード | |
| git clone [email protected]:harasou/slides.git | |
| # ブラウザで開く | |
| open slides/sample.html | |
| # ブラウザが Google Chrome の場合 | |
| open -a "Google Chrome" --args --allow-file-access-from-files $(pwd)/slides/sample.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); |
| $ ip2decimal 192.168.0.1 | |
| 3232235521 | |
| $ decimal2ip 3232235521 | |
| 192.168.0.1 | |
| $ | |
| $ ip2decimal 255.255.255.0 | |
| 4294967040 | |
| $ cidr2decimal 24 | |
| 4294967040 |