best ever DSCP and TOS conversion table

http://bytesolutions.com/Support/Knowledgebase/KB_Viewer/ArticleId/34/DSCP-TOS-CoS-Presidence-conversion-chart  

Advertisements

2 Network card, 2 default route

I had one wifi card, and a network card. Wifi card can get IP address from Wifi router with 192.168.2.1 Network card also connect to Linksys router, which do not have internet access, it give my other network card an ip of 192.168.1.64 Wifi router give me an ip of 192.168.2.12. Use route print: IPv4... Continue Reading →

disable unable mount mtp device

gsettings set org.gnome.desktop.media-handling automount false at ubuntu 16.04, I tried lots of options, usb device keep trying to mount as MTP device, but won't work, to disable it run above command.

lua format html file

At times, when we get a html file, that tags like < and </ are at same line, even whole html file in same line, make the file unreadable. Following lua script will add next line to each < and </ tag, makes the result readable. To run xxx.lua input.file output.file local params = {...}... Continue Reading →

中国护照在悉尼换发新护照

网上别人的博客,很有用。 悉尼总领馆换护照经历 (2009-07-29 09:28:44) 转载▼ 一早去悉尼领事馆给丫头换护照。8号那天领事馆因为紧急情况没开门,看到今天没出关门通知,去吧。 九点多到达,僻静的街道上车多人少,又是单行道,两边沿街泊满了车,只剩下中间狭窄的一条。百米长的街道中段是领事馆,大门紧闭,侧门半开。往常一般只有举着FL大法小册子的老太婆在一边招摇,今儿个多了个戴头巾的维族中年妇人,一脸沧桑与激愤,见人走近便从脚边的蛇皮袋里掏出印刷品无偿馈赠。一汉一维两族妇女在领事馆大门边各自为营,互不搭理,街对面是临时调派来驻点执勤的联邦警察,懒洋洋地呆在车里取暖。冬天的早晨,似乎没有多少人有挑衅的兴致。 进得里间,人也不多,签证、换护照、公证、交费、领证几个窗口加起来等候的也不过十几人。大约5分钟后轮到我们,递进去需要的材料,丫头又当场签了“未入籍声明书”,便了结了。想着坛子里有人问要不要去移民局办“未入籍证明”,便又向窗口办事的多要了一张留存做样板(见照片)。拿到两周后取证的单子,对着窗口里工作人员道声谢谢,意料中的毫无反应,反而觉得很正常。比起之前停车的周折,办事才不到十分钟,是意想不到的顺利。 几点提示: 1、悉尼总领馆的地址:    39 Dunblane Street, Camperdown NSW 2050, Australia 电话:+61 2 85958002 传真:+61 2 85958001  (不建议打电话联系,一来电话很难打通;二来网上已经有很详细的各种信息) 2、如何到达:    A、自驾:这个不用我啰嗦,看地图用GPS定位都可以,需要提醒的是,dunblane street是单行道,只能从Missenden Rd 进入。    B、乘车:这里只列出从CENTRAL火车站乘车的信息,如有从其它地点出发的,可以参考:www.131500.com.au(Trip Planner)        你Walk to bus stop Railway Square, George St Stand D - 336 metres,        然后Take the 412 bus (Sydney Buses)  ... Continue Reading →

tail

dmesg |tail -4 return last 4 lines   dmesg|tail -n +4 skip first 4 lines   dmesg |sed '$d' remove last line      

svn usage

svn info "file" wrong should be svn info file Get current repository svn info | grep 'Repository Root' | awk '{print $NF}' Above will print root svn info | grep '^URL' | awk '{print $NF}' will print current working svn repo Revert a change in svn svn merge -c -73614 postrm remove a file from... Continue Reading →

Blog at WordPress.com.

Up ↑