Skip to content

Instantly share code, notes, and snippets.

View ZhiguoLong's full-sized avatar

Zhiguo Long ZhiguoLong

  • Southwest Jiaotong University, China
View GitHub Profile
@ZhiguoLong
ZhiguoLong / mobi.css
Created February 14, 2016 13:18
mobi css stylesheet
/* BB eBooks BoilerPlate Kindle for MOBI 7 and KF8*/
/* Modify as Needed */
/* visit us @ http://bbebooksthailand.com/developers.html */
/*===Reset Code===*/
html, body, div, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, center, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video
{
margin: 0;
padding: 0;
border: 0;
@ZhiguoLong
ZhiguoLong / epub.css
Created February 14, 2016 13:18
epub css stylesheet
/* BB eBooks BoilerPlate EPUB */
/* Modify as Needed */
/* NOT SUITABLE for Kindle */
/* visit us @ http://bbebooksthailand.com/developers.html */
/* This adds margins around every page to stop ADE's line numbers from being superimposed over content */
@page {margin: 10px;}
/*===Reset code to prevent cross-reader strangeness===*/
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, b, u, i, center, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video
@ZhiguoLong
ZhiguoLong / Set default app.md
Last active January 4, 2017 00:42
How to set default apps in linux
@ZhiguoLong
ZhiguoLong / workspace-1.json
Created February 14, 2016 06:56
i3 workspace place holder script, may not work
// vim:ts=4:sw=4:et
{
"border": "normal",
"current_border_width": 2,
"floating": "auto_off",
"geometry": {
"height": 1036,
"width": 1916,
"x": 2,
"y": 20
@ZhiguoLong
ZhiguoLong / i3exit.sh
Created February 14, 2016 06:55
i3 helper shell command for exiting
#!/bin/sh
lock() {
exec sh ~/.i3/i3lock.sh
}
case "$1" in
lock)
lock
;;
logout)
@ZhiguoLong
ZhiguoLong / i3lock.sh
Created February 14, 2016 06:55
i3 helper shell command for lock screen
#!/bin/bash
scrot /tmp/screen_locked.png
convert /tmp/screen_locked.png -blur 0x8 /tmp/screen_locked2.png
i3lock -i /tmp/screen_locked2.png
@ZhiguoLong
ZhiguoLong / i3status.conf
Created February 14, 2016 06:54
i3 helper configuration of status bar
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
@ZhiguoLong
ZhiguoLong / config
Created February 14, 2016 06:50
i3 configuration
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@ZhiguoLong
ZhiguoLong / Crouton instructions.md
Last active January 6, 2018 14:19
Crouton instructions

Simplified and Pipelined Installation Instruction

  1. Enter crosh by CTRL+ALT+T and typing shell to enter shell environment.

  2. The following will install usual targets.

    sudo sh ~/Downloads/crouton -r trusty -a amd64 -t unity-desktop,kde-desktop,xiwi,chrome,xorg -e
    
  3. Install Chinese Simplified support. First enter chroot by sudo enter-chroot -n trusty.