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 | |
set host "route-info.flets-east.jp" | |
set port "49881" | |
spawn "/bin/bash" | |
send "telnet $host $port\r" | |
expect "'^]'." | |
send "GET /v6/route-info HTTP/1.1\r" | |
send "Host: $host:$port\r" |
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
------------------------------------ | |
-- Config | |
------------------------------------ | |
-- MyDNS ID | |
mid="MyDNSID" | |
-- MyDNS Password | |
pwd="MyDNSPASSWD" |
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; | |
listen [::]:80; | |
server_name radio.example.com; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
location / { |
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; | |
listen [::]:80; | |
server_name some_hostname; | |
#location / { | |
#location /webmin/ { | |
location / { | |
# Tell nginx that we want to proxy everything here to the local webmin server | |
# Last slash is important |
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 | |
MTS_LIST=`mktemp /tmp/mts.XXXXXX` | |
THREADS_TOTAL=(`cat /proc/cpuinfo | egrep '^processor' | awk '{print $3}'`) | |
SPANNED_FILE_SIZE=4288180224 #This number varies by camera. This value is optimized for Panasonic HDC-HS100. | |
function func_new_thread(){ | |
local tmp_list=`mktemp /tmp/list.XXXXXX` || exit 1 |
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
ospf use on | |
ospf area backbone | |
bgp use on | |
bgp autonomous-system 64759 | |
bgp log neighbor packet | |
bgp neighbor 1090 64656 10.1.255.90 gateway=tunnel9 local-address=10.2.255.200 | |
bgp neighbor 2010 64759 10.2.255.10 local-address=10.2.255.200 | |
bgp neighbor 2020 64759 10.2.255.20 local-address=10.2.255.200 | |
bgp neighbor 2200 64759 10.2.255.200 local-address=10.2.255.200 | |
bgp router id 10.2.255.200 |
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 | |
RUN_SETUP=false | |
NIC=wlan0 | |
GPIO=( | |
"name momentary/toggle" | |
"disabled" | |
"Dinner-Bell momentary" |
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 | |
function launch(){ | |
local execbin="`which ${target}`" | |
local str="`screen -list "${target}" | egrep 'Detached|Attached' | awk '{print $1}'`" | |
ps aux | egrep -v 'grep|ps aux|screen|SCREEN' | grep pts | grep \^${USER} | grep ${target} | |
if [ "${str}" != "" ]; then | |
echo -e "\"${str}\" is present." | |
echo "Reattaching... (ignoring options)" | |
sleep 1 |
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
[Unit] | |
Description=vban - Linux command-line VBAN tools | |
After=sound.target | |
Wants=network-online.target | |
After=network.target network-online.target | |
[Service] | |
ExecStart=/usr/local/bin/vban_receptor -i10.1.240.7 -p6980 -sStream1 -balsa -dplughw:UA25EX,0 | |
User=vban | |
Group=vban |
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 bash | |
#sudo groupadd -r audiosink | |
#sudo useradd -r -M -g audiosink -s /usr/bin/nologin -G audio audiosink | |
function set_options(){ | |
if ${INSTALL_VBAN}; then | |
VBAN_ENABLE_ALSA=true | |
VBAN_ENABLE_PULSE=false | |
VBAN_ENABLE_JACK=false | |
VBAN_ENABLE_JACK_VERSION=2 |
OlderNewer