Skip to content

Instantly share code, notes, and snippets.

@ypchen
ypchen / gist:3286280
Created August 7, 2012 15:15
Realtek RTL2832U+E4000 01 insert
usb 1-1.1: new high speed USB device using ehci_hcd and address 4
###################################################################
[cfyeh-test] usb_set_configuration(1454)
Don't support this usb device or don't insert correct module yet!!!
bus_id 1-1.1:1.0 (config #1, interface 0)
###################################################################
@ypchen
ypchen / gist:3187714
Created July 27, 2012 12:33
Create a VM to Install Ubuntu 12.04 LTS 64-bit Server on XenServer/XCP
References:
[1] http://www.virtualzone.de/2012-05-01/ubuntu-12-04-on-citrix-xenserver-5-6/
[2] http://thetechshop.org/showthread.php?847-Citrix-Xenserver-Template-for-Ubuntu-12.04-and-the-weird-Rebooting-to-Read-Only-Mode
Steps:
1. New VM
* Two choices:
@ypchen
ypchen / newid
Created April 20, 2009 12:21
new an id in PalmBBS
#!/usr/local/bin/expect -f
set timeout -1
set idletime 0
set idleint 190
#set id [lindex $argv 0]
#set password [lindex $argv 1]
set id pekopeko
@ypchen
ypchen / getPOI.wsf
Created April 15, 2009 09:04
Get wikigps POI for TomTom
<job id="setup node">
<script language="Javascript">
var debugEachStep = false;
var args = WScript.Arguments;
var argNum = args.Count();
/*
if (argNum != 1) {
@ypchen
ypchen / gist:95212
Created April 14, 2009 14:39
wikigps api
http://www.wikigps.com/index.php?model=category&action=listout1
http://www.wikigps.com/index.php?model=category&action=listout2&Par_id=POI_05
http://www.wikigps.com/index.php?model=category&action=listout3&Par_id=POI_0506
http://www.wikigps.com/index.php?model=export&action=out&Format=PAPAGO&Encoding=BIG5&Category=abc&POI_no1=POI_050602&Time=1239722484000
curl --verbose "http://www.wikigps.com/files/BIG5_PAPAGO_1239722484000.txt"