Skip to content

Instantly share code, notes, and snippets.

@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"
@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 / 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 / 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 / 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:3811764
Created October 1, 2012 13:21 — forked from chihchun/gist:753181
NextVOD
壹多媒體娛樂服務股份有限公司 壹網樂/網樂通, https://www.nextvod.com.tw/ #nextvod #nextv
H/W
STMicroelectronics STx7105 (Renesas SuperH)
VIA VT6113 (Ethernet)
NANYA NT5TU64M16GG-AC (DRAM DDR2 64Mx16 PC800 BGA) * 2
Samsung NCDOM08GMS-MLC (USB DOM 8GB)
25Q80 (Flash)
Console Pin headers
@ypchen
ypchen / gist:3843396
Created October 6, 2012 01:36
Sites related to cloud (programming) stuff
Cloud API Hub
https://www.mashape.com/
Cloud Data: Store, Push, and Sync
https://parse.com/
PHP on Heroku, again
http://hakre.wordpress.com/2012/05/20/php-on-heroku-again/
Getting Started With Heroku on Windows
@ypchen
ypchen / gist:4064694
Created November 13, 2012 08:41
Install Sublime Text 2 on Ubuntu with Repo
# ---------- BEGIN ----------
# Install Sublime Text 2 on Ubuntu with Repo
# ---------------------------
# Get "add-apt-repository"
sudo apt-get install python-software-properties
# Install sublime text
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
# Or dev build

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
<item>
<title>電視劇 [排序: 人氣排行]</title>
<link>http://ims-hdp.cloudfor.info/video/scripts/ck101.type_1.query.php?query=1,http%3A%2F%2Fvideo.ck101.com%2Ftv%2Flists%2F2%2Fhot,%E9%9B%BB%E8%A6%96%E5%8A%87+%5B%E6%8E%92%E5%BA%8F%3A+%E4%BA%BA%E6%B0%A3%E6%8E%92%E8%A1%8C%5D,0</link>
</item>
<item>
<title>電視劇 [排序: 最新上架]</title>
<link>http://ims-hdp.cloudfor.info/video/scripts/ck101.type_1.query.php?query=1,http%3A%2F%2Fvideo.ck101.com%2Ftv%2Flists%2F2%2Fcreate,%E9%9B%BB%E8%A6%96%E5%8A%87+%5B%E6%8E%92%E5%BA%8F%3A+%E6%9C%80%E6%96%B0%E4%B8%8A%E6%9E%B6%5D,0</link>
</item>