Skip to content

Instantly share code, notes, and snippets.

@wisicn
wisicn / dnsmasq.conf
Created February 21, 2013 17:32
my dnsmasq configuration for both DNS/DHCP/TFTP
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# General Configure
#Don't read /etc/resolv.conf. Get upstream servers only from the command line or the dnsmasq configuration file.
no-resolv
#Don't poll /etc/resolv.conf for changes.
no-poll
#upstream server is google
server=8.8.8.8
server=8.8.4.4
#CN TLD is 114.114.114.114
@wisicn
wisicn / Galaxy_nexus_app.csv
Last active December 13, 2015 22:59
record my android phone Galaxy Nexus app, especially the position in launcher
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 6 columns, instead of 7 in line 1.
apk_name,apk_source,apk_link,folder,apk_position,comments
FT中文网,google_play,N/A,News,1:1:1:01,,
华尔街日报中文版,google_play,N/A,News,1:1:1:02,,
路透中文新闻,google_play,N/A,News,1:1:1:03,,
NetEase News,google_play,N/A,News,1:1:1:04,,
CNN,google_play,N/A,News,1:1:1:05,,
BBC News,google_play,N/A,News,1:1:1:06,,
China AQI,google_play,N/A,News,1:1:1:07,,
eduPort,google_play,N/A,Education,1:1:2:01,,
TED,google_play,N/A,Education,1:1:2:02,,
@wisicn
wisicn / demo.html
Created February 19, 2013 07:11
another video.js demo html from original source code repository, add the m3u8 sample
<!DOCTYPE html>
<html>
<head>
<title>Video.js | HTML5 Video Player</title>
<!-- Chang URLs to wherever Video.js files will be hosted -->
<link href="video-js.css" rel="stylesheet" type="text/css">
<!-- video.js must be in the <head> for older IEs to work. -->
<script src="video.js"></script>
@wisicn
wisicn / gist:4983702
Created February 19, 2013 07:05 — forked from lieldulev/gist:3738681
video.js sample for a m3u8 HLS ABR content
<!doctype html>
<html>
<head>
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>
</head>
<body>
<video id="my_video_1" class="video-js vjs-default-skin" controls
preload="auto" width="640" height="264" poster="my_video_poster.png"
data-setup="{}">