- CoovaChilli 是一个开源的软件访问控制工具(access controller), 基于曾经流行的ChilliSpot项目, 并且被原来的ChilliSpot贡献者们维护.
- CoovaChilli 是一个功能丰富的软件访问控制工具提供一个网页认证(captive portal) / walled-garden 环境和使用RADIUS或者HTTP协议来访问控制(access provisioning)和账户认证(accounting).
- CoovaChillis是CoovaAP OpenWRT固件的一部分, 专门用于热点.
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
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
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
diff --git a/.config b/.config | |
index cc8d14f..26c0f5f 100644 | |
--- a/.config | |
+++ b/.config | |
@@ -385,9 +385,10 @@ CONFIG_TARGET_SUFFIX="uclibc" | |
# CONFIG_IB is not set | |
# CONFIG_SDK is not set | |
# CONFIG_MAKE_TOOLCHAIN is not set | |
-# CONFIG_IMAGEOPT is not set | |
-# CONFIG_PREINITOPT is not set |
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/python | |
# -*- coding: utf-8 -*- | |
#encoding=utf-8 | |
import sys | |
import time | |
from splinter import Browser | |
browser = Browser() |
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
for %%x in ( | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_76.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_75.mp3" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_74.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_73.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_72.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_71.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_70.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_69.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_68.m4a" |
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
for /l %%x in (1, 1, 143) do ( | |
echo %%x | |
wget http://ipn.li/itgonglun/%%x/audio.mp3 -O %%x.mp3 | |
) |
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 <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#define CANARY "in_the_coal_mine" | |
struct { | |
char buffer[1024]; |
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
huzhifeng@Ubuntu12:~$ hostname -i | |
127.0.1.1 | |
huzhifeng@Ubuntu12:~$ hostname -I | |
192.168.2.132 | |
huzhifeng@Ubuntu12:~$ ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1;}' | |
192.168.2.132 | |
huzhifeng@Ubuntu12:~$ ifconfig eth0 2>/dev/null | awk '/inet addr:/ {print $2}' | sed 's/addr://' | |
192.168.2.132 | |
huzhifeng@Ubuntu12:~$ ip route get 8.8.8.8 | awk 'NR==1 {print $NF}' | |
192.168.2.132 |