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
#パスワードの設定 | |
password admin set ***** ←adminへのパスワード設定 | |
#グローバル側インターフェース設定 | |
ether 1 1 vlan untag 1 ←GROUP1のポートをグローバル側とする | |
delete lan 0 ←初期設定情報をクリア | |
lan 0 ip address 133.5.xxx.xxx/24 3 ←グローバル側アドレス設定 | |
lan 0 ip route 0 default 133.5.xxx.254 1 0 ←デフォルトゲートウェイ |
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 | |
WHOIS="/usr/bin/whois" | |
CHOST="/usr/bin/host" | |
TRACEROUTE="/usr/sbin/traceroute" | |
JPNIC="whois.nic.ad.jp" | |
APNIC="whois.apnic.net" | |
ARIN="whois.arin.net" | |
RIPE="whois.ripe.net" | |
LACNIC="whois.lacinc.net" |
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 | |
# | |
####### | |
# out.put files | |
f_kml="doc.kml" | |
f_kmz="out.kmz" | |
# tmp file | |
f_tmp="tmp.kml" |
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
alias ll='ls -l' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
alias rm='rm -i' | |
alias h=history | |
export PATH=$HOME/bin:$HOME/sh:$PATH |
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> | |
int main(){ | |
printf("sizeof(short): %d\n", (int) sizeof(short)); | |
printf("sizeof(int): %d\n", (int) sizeof(int)); | |
printf("sizeof(long): %d\n", (int) sizeof(long)); |
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/expect | |
# for cygwin64 | |
# | |
# time format: | |
# date +"%m/%d %k:%M:%S %Y" | |
# | |
# timeout sec | |
set timeout 10 | |
# |
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/bash | |
# | |
if [ $# -ne 1 ]; then | |
echo | |
echo "command line error!" | |
echo "Usage: $0 [IP_Address]" | |
exit 1 | |
fi | |
DATE=`date +"%m/%d %k:%M:%S %Y"` |
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
# alias | |
alias ll='ls -l' | |
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
alias h=history | |
PATH="$PATH":~/sh:~/bin |
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/expect -- | |
# for cygwin64 Windows | |
# | |
# timeout sec | |
#set timeout 10 | |
set timeout -1 | |
# HOST & ID | |
set HOST "[email protected]" |
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/expect | |
# for cygwin64 | |
# | |
puts "start" | |
#spawn ping 192.168.1.101 | |
spawn sftp [email protected] | |
expect "password: " | |
send "usr-passwd\n" |
NewerOlder