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
net.ipv4.ip_forward = 1 | |
net.ipv4.conf.all.send_redirects = 0 | |
net.ipv4.conf.default.send_redirects = 0 | |
net.ipv4.conf.eth0.send_redirects = 0 | |
net.ipv4.conf.lo.send_redirects = 0 | |
net.ipv4.conf.all.accept_redirects = 0 | |
net.ipv4.conf.default.accept_redirects = 0 | |
net.ipv4.conf.eth0.accept_redirects = 0 | |
net.ipv4.conf.lo.accept_redirects = 0 | |
net.ipv4.tcp_fastopen = 0x403 |
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
<?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 | |
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
#ここは基本やな | |
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 | |
#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
#!/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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the 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
#!/bin/bash | |
#This is AN Correspondence Authy SSH Command. | |
if [ "$1" = vps ] ; then | |
#Enable Authy Token. | |
echo -n "Authy Token (not support SMS Token): " | |
read authytoken | |
AUTHY_TOKEN="$authytoken" sftp vps | |
else | |
#Disable Authy Token. | |
sftp $1 |