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
#!/bin/sh | |
sudo ufw insert 1 allow from 60.236.0.0/14 | |
sudo ufw insert 1 allow from 119.238.0.0/15 | |
sudo ufw insert 1 allow from 119.244.0.0/16 | |
sudo ufw insert 1 allow from 122.132.0.0/14 | |
sudo ufw insert 1 allow from 220.102.0.0/16 | |
sudo ufw insert 1 allow from 221.170.0.0/15 | |
sudo ufw insert 1 allow from 110.233.0.0/16 | |
sudo ufw insert 1 allow from 118.108.0.0/14 | |
sudo ufw insert 1 allow from 119.240.0.0/14 |
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
#!/bin/sh | |
#NEED ROOT | |
echo ' #BIGLOBE DYNAMIC IP PATCHER ADDED | |
access-control: 60.236.0.0/14 allow | |
access-control: 119.238.0.0/15 allow | |
access-control: 119.244.0.0/16 allow | |
access-control: 122.132.0.0/14 allow | |
access-control: 220.102.0.0/16 allow | |
access-control: 221.170.0.0/15 allow | |
access-control: 110.233.0.0/16 allow |
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
#ここは基本やな | |
127.0.0.1 localhost | |
#ステマ確定 | |
127.0.0.1 blog.livelog.biz | |
127.0.0.1 airseed.org | |
127.0.0.1 hyadain.com | |
127.0.0.1 adultnia.org | |
127.0.0.1 livelog.biz | |
127.0.0.1 mh.hyadain.com |
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
#!/bin/sh | |
date +"%Y年%m月%d日 %I時%M分現在の天気予報をお伝えします。" | open_jtalk -x /var/lib/mecab/dic/open-jtalk/naist-jdic -m /usr/share/hts-voice/mei/mei_normal.htsvoice -ow /tmp/announce.wav | |
wget 'http://weather.livedoor.com/forecast/webservice/json/v1?city=130010' -O- -q | jq -M -c '.description .text' | sed 's/\"//g' - | sed 's/\\n//g' - | sed 's/ //g' - | sed 's/寒気/かんき/g' - | sed 's/所々/ところどころ/g' - | sed 's/日中/にっちゅう/g' - | cut -c 1-804 | open_jtalk -x /var/lib/mecab/dic/open-jtalk/naist-jdic -m /usr/share/hts-voice/mei/mei_normal.htsvoice -ow /tmp/weather1.wav>/dev/null 2>&1 | |
WORD=`wget 'http://weather.livedoor.com/forecast/webservice/json/v1?city=130010' -O- -q | jq -M -c '.description .text' | sed 's/\"//g' - | sed 's/\\n//g' - | sed 's/ //g' - | sed 's/寒気/かんき/g' - | sed 's/所々/ところどころ/g' - | sed 's/日中/にっちゅう/g' -| wc -c` | |
if `test $WORD -le 804` ; then | |
echo 'Noting for Todo'>/dev/null 2>&1 | |
else | |
wget 'http://weather.livedoor.com/forecast/webservice/json/v1?city=130010' -O- -q | jq -M -c '.description .text' | sed 's |
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
<?php | |
//Setting Value | |
$basedir='/var/spool/asterisk'; | |
$faxin='faxin'; | |
$faxpdf='faxpdf'; | |
$mailfrom='from@example.com'; | |
$mailto='to@example.com'; | |
$mailreturn=$mailfrom; | |
$mailsubject=date('Ymd') . 'にFAXを受信しました'; | |
$mailbody='データは、PDFで、添付しました。Asteriskのご利用ありがとうございます。'; |
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
#!/bin/sh | |
file=faxout.tif | |
if [ -e $file ]; then | |
echo "$file Found, Do Send fax." | |
echo -n "Please input send fax number: " | |
read faxnum | |
if expr "$faxnum" : '[0-9]*' > /dev/null ; then | |
echo 'OK' > /dev/null | |
else | |
echo "This is not number. Please try agein." |
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
GRUB_DEFAULT=0 | |
GRUB_HIDDEN_TIMEOUT=0 | |
GRUB_HIDDEN_TIMEOUT_QUIET=true | |
GRUB_TIMEOUT=0 | |
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet text profile nosoftlockup nohz=off highres=off intel_idle.max_cstate=0 processor.max_cstate=0 cgroup_disable=memory nmi_watchdog=0 divider=4 mce=ignore_ce console=tty1 console=ttyS0,115200n8r" | |
GRUB_CMDLINE_LINUX="" | |
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" | |
GRUB_TERMINAL_INPUT="serial console" |
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
server { | |
listen 80 default; | |
server_name _; | |
root /path/to/your/root/directory; | |
index index.html index.htm; | |
charset utf-8; | |
access_log /var/log/nginx/domain.access.log main; | |
error_log /var/log/nginx/domain.error.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
server { | |
listen unix:/var/run/nginx-backend.sock default; | |
server_name _; | |
root /path/to/your/root/directory; | |
index index.php index.html; | |
access_log /var/log/nginx/domain.backend.access.log backend; | |
keepalive_timeout 25; | |
port_in_redirect off; |
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
user nginx; | |
worker_processes 3; | |
worker_cpu_affinity 001 010 100; | |
error_log /var/log/nginx/default.error.log warn; | |
pid /var/run/srv-nginx.pid; | |
worker_rlimit_nofile 10240; | |
events { | |
worker_connections 5120; | |
use epoll; |
OlderNewer