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
(function () { | |
"use strict"; | |
var n = 4, k = 4, | |
ret = []; | |
{ | |
let pool = [], queue = []; |
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
@charset "UTF-8"; | |
@media screen{ | |
body:not(.alwaysVisible) > *:not(.avant){ | |
display: none; | |
} | |
} | |
@media projection, print{ | |
body{ |
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
# Tue Aug 5 12:58:51 JST 2014 | |
PING osaka02-f01.flets.2iij.net (210.130.183.211) from 125.30.38.178 ppp0: 56(84) bytes of data. | |
--- osaka02-f01.flets.2iij.net ping statistics --- | |
20 packets transmitted, 20 received, 0% packet loss, time 19029ms | |
rtt min/avg/max/mdev = 7.423/10.377/19.558/3.452 ms | |
PING 210.130.183.209 (210.130.183.209) from 125.30.38.178 ppp0: 56(84) bytes of data. |
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
// Thu Aug 21 13:18:50 JST 2014 | |
# ping -c 1000 -f -s 1016 210.130.183.213 | |
PING 210.130.183.213 (210.130.183.213) 1016(1044) bytes of data. | |
--- 210.130.183.213 ping statistics --- | |
1000 packets transmitted, 1000 received, 0% packet loss, time 9592ms | |
rtt min/avg/max/mdev = 8.802/9.910/37.049/2.863 ms, pipe 3, ipg/ewma 9.602/10.107 ms | |
// Thu Aug 21 13:19:52 JST 2014 | |
# ping -c 1000 -f -s 1016 210.130.183.211 |
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 | |
DEVS=("ppp0" "ppp1") | |
dev_best=${DEVS[0]} | |
ping_best=0 | |
for dev in ${DEVS[@]} | |
do | |
if ! ip link show $dev 2>/dev/null > /dev/null | |
then |
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
(function(){ | |
var DIRNAME = "/tmp/ddns", | |
REPORTS_DIR = DIRNAME + "/reports", | |
ZONEFILE = DIRNAME + "/ddns.makotom.net.lua", | |
fs = require("fs"); | |
(function(){ | |
var reports = fs.readdirSync(REPORTS_DIR), | |
table = [], | |
zone = ""; |
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
{"221.184.7.145":1,"125.206.156.11":1,"221.184.7.170":1,"221.184.7.168":5,"221.184.7.171":3,"219.160.5.165":3,"221.184.7.166":2,"219.160.5.178":2,"221.184.7.173":6,"60.37.32.205":2,"221.184.7.175":4,"125.206.156.15":4,"125.206.156.7":2,"125.206.156.12":4,"60.37.32.207":4,"221.184.7.138":2,"125.206.156.8":3,"60.37.32.208":1,"219.160.5.175":5,"125.206.156.9":2,"221.184.7.142":2,"210.130.183.215":1,"60.37.32.195":3,"125.206.156.16":2,"221.184.7.172":2,"60.37.32.196":2,"221.184.7.165":1,"221.184.7.163":3,"219.160.5.169":3,"219.160.5.163":1,"219.160.5.164":1,"222.147.179.5":1,"219.160.5.167":2,"221.184.7.169":4,"125.206.156.5":2,"125.206.156.6":1,"219.160.5.176":3,"221.184.7.167":3,"60.37.32.202":3,"221.184.7.177":1,"60.37.32.204":2,"221.184.7.141":3,"60.37.32.203":3,"221.184.7.140":2,"221.184.7.164":2,"125.206.156.4":1,"125.206.156.13":1,"60.37.32.200":3,"125.206.156.3":2,"219.160.5.174":1,"221.184.7.137":3,"60.37.32.206":1,"219.160.5.173":1,"60.37.32.197":1,"219.160.5.168":2,"221.184.7.139":1,"221.184.7.174":1," |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 3 columns, instead of 6 in line 2.
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
Started at,"Sun, 26 Oct 2014 18:24:00 +0900", | |
Ended at,"Sun, 26 Oct 2014 18:38:00 +0900", | |
PPP server,rtt min [ms],rtt avg [ms],rtt max [ms],rtt mdev [ms],50 M avr [Ops] | |
210.130.183.212,7.004,7.778,19.313,1.173,3712k | |
210.130.183.213,7.162,11.967,37.861,4.570,2096k | |
210.130.183.215,6.958,7.658,73.014,3.318,7254k | |
210.130.183.211,7.132,8.570,18.160,1.660,2680k | |
210.130.183.215,6.929,7.345,10.794,0.206,6269k | |
210.130.183.212,7.035,8.086,41.147,2.156,5395k |
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 | |
UUID=$(uuidgen) | |
mkdir /tmp/updspdy-$UUID | |
cd /tmp/updspdy-$UUID | |
curl -J https://dl-ssl.google.com/dl/linux/direct/mod-spdy-beta_current_x86_64.rpm 2> /dev/null | rpm2cpio - | cpio -idm --quiet | |
cd usr/lib64/httpd/modules |
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 | |
WANDEV='eth0' | |
LANDEV='br0' | |
while : | |
do | |
ip -6 neigh show dev $LANDEV | grep lladdr | grep -v -P ^fe80:: | sed -e 's/ .*$//' | while read addr | |
do | |
if [ "$(ip -6 neigh show proxy to $addr dev $WANDEV)" == "" ] |