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/local/bin/ruby | |
# -*- coding: utf-8 -*- | |
# | |
#This script gets LINE Stickers.(for iPhone) | |
# http://shutingrz.hatenablog.com/entry/2014/08/13/042413 | |
# | |
# gem install cfpropertylist | |
# | |
require 'json' |
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/local/bin/ruby | |
# -*- coding: utf-8 -*- | |
require 'cgi' | |
require 'resolv' | |
cgi = CGI.new | |
record = Array.new | |
host="" | |
type="" | |
t="a" |
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
#respected | |
#core | |
#http://blogs.yahoo.co.jp/alpha3166/10269630.html | |
# | |
#gpart | |
#http://www.jp.freebsd.org/cgi/mroff.cgi?sect=8&subdir=man&lc=1&cmd=&dir=jpman-7.2.2/man&man=gpart | |
# | |
#zfs mirror | |
#http://www2.shakemid.com/fswiki/wiki.cgi?page=ZFS%A4%F2%BB%C8%A4%C3%A4%C6%A4%DF%A4%EB | |
# |
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 'webrick' | |
class LoginServlet < WEBrick::HTTPServlet::AbstractServlet | |
def do_POST(req,res) | |
res.body = '<?xml version="1.0" encoding="UTF-8"?><response><ok><code /><body /></ok></response>' | |
end | |
end | |
class LogoutServlet < WEBrick::HTTPServlet::AbstractServlet |
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 'webrick' | |
class DigServlet < WEBrick::HTTPServlet::AbstractServlet | |
def do_GET(req,res) | |
host = req.query["host"] | |
type = req.query["t"] | |
res.body = `dig -t #{type} #{host}|grep IN |grep -v \\;` | |
end |
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
#include <stdio.h> | |
#include <string.h> | |
/* | |
switchを文字列で判定してみる | |
switchのデータ型上、4桁(=32bit)までしか判定できない。(と思う) | |
また、アーキテクチャによりリトルエンディアン、ビッグエンディアンがあるが、 | |
今回の環境はx86系なのでリトルエンディアンとしてプログラムを組んだ。 | |
*/ |
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
#openldap24-server | |
root@titan:/usr/home/shu # cd /usr/ports/net/openldap24-server/ | |
root@titan:/usr/ports/net/openldap24-server # make config-recursive | |
#openldap24-server | |
+ACCESSLOG , +SASL | |
#cyrus-sasl-2.1.26_3 | |
+BDB | |
#openldap-sasl-client-2.4.37 | |
+FETCH |
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
#openldap24-sasl-client | |
root@nadeco:/usr/ports/net/openldap24-sasl-client # make config-recursive | |
#openldap24-sasl-client | |
+fetch | |
root@nadeco:/usr/ports/net/openldap24-sasl-client # make install clean | |
#nss_ldap | |
root@nadeco:/usr/ports/net/nss_ldap # make config-recursive |
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 | |
# | |
#version 0.0.1 | |
# author alvise | |
# description | |
# "first version." | |
# | |
#version 0.0.2 | |
# author shu | |
#****** change log ************************ |
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 | |
# | |
# | |
#version 0.0.1 | |
# author alvise | |
# description | |
# "first version." | |
# | |
#version 0.0.2 | |
# author shu |
NewerOlder