Skip to content

Instantly share code, notes, and snippets.

View bonau's full-sized avatar

Bô Náu bonau

  • Pervoka
  • Taiwan
View GitHub Profile
@bonau
bonau / reset.css
Created December 27, 2012 09:24
awesome css reset from Eric A.
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@bonau
bonau / .vimrc
Last active December 10, 2015 05:18
my current .vimrc
syntax on
set sts=2
set sw=2
set ts=2
set et
set autoindent
set nocindent
set smarttab
set nowrap
set number
@bonau
bonau / index.html
Created December 27, 2012 09:48
A CodePen by bonau.
<div id="container"></div>
@bonau
bonau / install-ipkg.sh
Created December 30, 2012 11:18
install ipkg in Synology DiskStation
#!/bin/sh
cd /tmp
wget 'http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh'
@bonau
bonau / bookmarks.xml
Created February 13, 2013 19:06
Radiotray bookmark
<!--
Radiotray Bookmark
Path: /usr/share/radiotray/bookmarks.xml
Author: bonau@github
References:
* http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=226746#forumpost226746
-->
<bookmarks>
<group name="root">
<group name="Taiwan (hichannel.hinet.net)">
@bonau
bonau / a.download.htm
Last active December 13, 2015 17:19
Assign filename in data URI
<!--
[Assign filename in data URI]
Compatibility: Google Chrome 14
Origin from: http://html5-demos.appspot.com/static/a.download.html
-->
<!DOCTYPE html>
<!--
Copyright 2011 Google Inc.
@bonau
bonau / install-pps.sh
Created February 24, 2013 07:51
install PPS (for Ubuntu 12.04)
#!/bin/bash
wget "https://launchpad.net/~cnav/+archive/ppa/+files/ppstream_1.0.0-3lucid2_amd64.deb"
sudo dpkg -i ppstream_1.0.0-3lucid2_amd64.deb
sudo apt-get -f install
sudo ln -s /opt/pps/lib/libemscore.so.0.1.1676 /usr/lib/libemscore.so.0
echo "usage: /opt/pps/bin/PPStream"
#!/bin/bash
#
# let-me-open-them.sh
# author: He-Hsiung Wang <munouzin@gmail.com>
# description: shorthand of setting default program for all available mimes in xdg way
# usage:
# bash let-me-open-them.sh APPLICATION.desktop
# arguments:
# APPLICATION: one of applications located in /usr/share/applications/
#
@bonau
bonau / rc.lua
Created February 28, 2013 10:28
my awesome configure
-- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- Load Debian menu entries
@bonau
bonau / Gemfile
Created May 6, 2013 17:31
rip for law contents
source "https://rubygems.org"
gem "mechanize"
gem "redis"