update general

This commit is contained in:
JamesonHuang 2015-06-18 11:11:14 +08:00
parent c4c87cade5
commit e43a0d72ec
3 changed files with 2 additions and 374 deletions

View File

@ -1,282 +0,0 @@
openwrt配置命令
sudo minicom -D /dev/ttyUSB0
la /dev/ttyUSB0
cd /etc/config/
cat wireless
/etc/init.d/network reload
cat /etc/config/wireless
router_reset
ifconfig
r13: http://192.168.232.1
r10: http://192.168.233.1
zhengkl@meizu.com
ssh root@192.168.232.1
10.2.64.20
--------------------------------------------------------
git配置命令
git branch -a
git checkout
git log
HEAD
git diff
----------------------------------------------------------
gvim字体设置
DejaVu Sans Mono 12
cd /usr/bin/apcli_connect.sh
---------------------------------------------------------
Luci界面找到相应函数代码并修改
1
2luci/controller/admin/network.lua中找到相应函数
3
4r13的api/index.lua或meizu目录的相应lua文件中
5./build.sh
/
/usr/lib/lua/meizu/build.sh
logread -f
-----------------------------------------------------------
luci代码路径
/home/rh/my_code/miwifi_package_rom/usr/lib/lua/luci
/home/rh/my_code/miwifi_package_rom/usr/lib/lua/xiaoqiang
wifi开关
/home/rh/my_code/miwifi_package_rom/usr/lib/lua/luci/controller/api/xqsystem.lua --line 1517
/home/rh/my_code/miwifi_package_rom/usr/lib/lua/xiaoqiang/common/XQFunction.lua --line 89 & 29
------------------------------------------------------------
grep:
grep -F "bind_router" ./* -Rn --查找正文中含有bind_router的关键字
-F
-R
-n
ctags
使ctags ctags -R ./*
ctrl + ]
ctrl + t
taglist
Tlist Taglist
----------------------------------------------------------------
u盘 /media
cd sbin/
709 fuke uhbn
710 file uhbn
711 vi uhbn
tail -f /var/log/kern.log~
714 tail -f /var/log/kern.log
715 lsmod
716 ifconfig
717 lsusb -v
718 lsusb~
719 lsusb
720 lsusb |wc -l
721 ls /proc/net/~
722 ls /proc/net/
723 ls /proc/net/dev
724 ls /proc/net/dev -la
725 cd /proc/net/
726 ls -lr~
727 ls -lr
728 ls -lr|grep eth
729 cd /sys/class/net/~
730 cd /sys/class/net/
731 ls -lr|grep eth
732 ls -lr|grep -i wla
733 lsusb
734 lsusb -v |tee /tmp/usb.log
735 vi /tmp/usb.log
736 uname -r
737 uname -a
738 vi /tmp/usb.log
739 lsusb -v
740 ~
741 lsusb -v
742 tail -f /var/log/kern.log
743 uname -r
744 uname
745 uname -a
746 lsusb -v
ssh lcd@10.2.65.22
http://forum.ubuntu.com.cn/viewtopic.php?f=116&t=466756
http://my.oschina.net/cuilili/blog/374704
------------------------------------------------
r13测试路径 http://192.168.233.244/cgi-bin/luci/api/sip
luci.http.prepare_content("application/json")
echo "$@" > /tmp/log.txt
------------------------------------------------
r13编译: /meizu路径下: ./build.sh
r10编译 reboot or rm /tmp/ cache
rm /tmp/luci-modulecache/ -rf
openwrt交叉编译gcc *.c:
./mipsel-openwrt-linux-uclibc-gcc hello.c -o hello
~/my_code/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin
find -name
/home/rh/my_code/openwrt/bin/ramips
find -name "*up*.bin"
find -name "*dex*"
make V=s -j1
--------------------------------------------------
vim ctrl + f
ctrl + b
shell shift + up
shift + down
ctrl + up / down
ctrl +shift + t
grep -n "function" ./*
find -name "index" ./*
watchcat所在目录scp /home/rh/test/watchcat root@192.168.232.1:/usr/bin
--------------------------------------------------
linux内核方法
sudo apt-get remove linux-image-XXX-generic
sudo apt-get remove linux-headers-generic
dpkg --get-selections |grep linux
tail -f nebula.log
/etc/init.d/network restart
---------------------------------------------------
local lue = require("luci.util").exec
local t = lue([[date -d "2010-10-10 10:10:10" +%s]])
print(tonumber(t))
---------------------------------------------------
cat nebula.log |grep agai
sshpass -p mzszR10 scp old root@172.16.1.6:/usr/bin
./apcli_connect.sh disable a_rh a_5g_rh
./apcli_connect.sh restart
cnt=0;while [ $cnt -lt 100 ];do ./socket_client;((cnt++));echo "test:$cnt";done
sshpass -p mzszR10 ssh root@172.16.1.7
sshpass -p mzszR10 ssh root@192.168.36.249
killall watchcat
linux命令测试udp广播
echo sysinfo |ncat 10.16.1.2 51232 -v -u cnt=0;while [ $cnt -lt 100 ];do ./socket_client;((cnt++));echo "test:$cnt";done
ncat 10.16.1.2 51232 -v -u
searchctrl + r
cat /etc/openwrt_version
make menuconfig
--r13 lan口转wan口
1
cat /etc/config/network
/etc/init.d/network restart
2
uci set network.lan.eth_port=wan
uci commit
uci get network.lan.eth_port
/etc/lucinit.d/network restart
uci set network.lan.eth_port=wan
(3)interface选项 = connect
--apt search
apt-cache search ssl|grep -i python
--dd
dd if=abcdef of=2b bs=1 count=2 skip=1

View File

@ -71,6 +71,8 @@
python实现urllib/urllib2 range/文件IO
调试中继转dhcp bug
6.18
调试中继转dhcp bug ==》ssid表不存在

View File

@ -1,92 +0,0 @@
6.1-6.5
6.1
测试 & fix upgrade bug
6.2
改进优化smart wifi使之无tmp文件
shell脚本学习试着将lua函数中用到的shell命令封装进.sh中
sed命令学习
6.3
了解squid/nginx代理服务器模块
测试阿里小智相关api
6.4
阅读squid/nginx相关书籍了解实现原理
查找/阅读nginx http模块的proxy代码
6.5
网上搜索tiny server/proxy server实现代码
6.8-6.12
6.9
了解/调试mongoose代码结构及内部实现api
6.10
github上看相关http download的代码了解其实现原理
试着整合http proxy & http download
6.11
整合/调试http proxy & http download调试成功
6.12
意识到用c代码实现周期太长试着用python实现原型
回顾python基础语法
调试api getdeviceList
弄懂twisted connect proxy代码该代码在twisted的基础上加多了对http connect方法的处理
了解libcurl运行http demo
get到linux terminal的常用快捷键
6.13
整理一周所学
异步非阻塞I/O模型twisted & node.js,对比,区别,与多线程模型的对比
git回顾
6.14
整理一周所学(nginx / lua 笔记)
twisted factory ==》抽象工厂与工厂模式的对比 ==》 抽象工厂是否过度设计了呢?
get python细节语法pass / raise / with ... as ...
6.15-6.20
6.15
联调api set/get bandwidth
了解luci外网访问代码流程
阅读twisted dave api详解dave@http://krondo.com/?p=1209 1-3
6.16
阅读twisted dave api详解dave@http://krondo.com/?p=1209 4-5
总结twisted常用的类及相关回调函数
6.17
getsmartwifiinfo挂了调试
发现传入smart wifi参数格式有问题亟待与app端沟通
调整smart wifi utc时间
python实现urllib/urllib2 range/文件IO
调试中继转dhcp bug