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 bash | |
# | |
# インストール: | |
# このファイル自体を PATH のある場所に保存して chmod +x すれば OK | |
# 例: | |
# sudo sh -c "curl http://nyaocat.jp/misc/qcc > /usr/local/bin/qcc" | |
# sudo chmod +x /usr/local/bin/qcc | |
# qcc -h | |
# | |
# 動作環境: |
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/local/bin/bash | |
export PATH=/home/nyaocat/bin:/usr/local/bin/:$PATH | |
export LANG=ja_JP.utf-8 | |
if [ $HTTP_HOST$REQUEST_URI != kenkov.nyaocat.jp/ ] | |
then | |
echo "Location: http://kenkov.nyaocat.jp/" | |
echo |
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
--[[ | |
lua readonly module | |
2013 (c) nyaocat | |
this program is licensed under NYSL( http://www.kmonos.net/nysl/ ) | |
lua5.1 and lua5.2 | |
]] | |
local newproxy = newproxy or require("newproxy") -- for Lua5.2 | |
local type, getmetatable, pairs, assert, error = type, getmetatable, pairs, assert, error |
NewerOlder