Skip to content

Instantly share code, notes, and snippets.

View chihchun's full-sized avatar
🎯
Focusing

Rex Tsai chihchun

🎯
Focusing
View GitHub Profile
chihchun@localhost:~$ snap list
Name Version Rev Developer Notes
core 16-2 1881 canonical -
hello-world 6.3 27 canonical -
kernelv49 4.9.1 x1 -
pc 16.04-0.8 19 canonical -
chihchun@localhost:~$ /snap/bin/hello-world
Hello World!
chihchun@localhost:~$ snap version
snap 2.25+201705092132.git.f5d1ee6~ubuntu16.04.1
From 707167d861d0856c855f2639a12280057959bbf4 Mon Sep 17 00:00:00 2001
From: Andy Whitcroft <apw@canonical.com>
Date: Thu, 27 Nov 2008 19:12:07 +0000
Subject: [PATCH 01/76] UBUNTU: SAUCE: (no-up) version: Implement
version_signature proc file.
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Tim Gardener <tim.gardner@canonical.com>
---
fs/proc/Makefile | 1 +
@chihchun
chihchun / -
Last active May 8, 2017 12:29
v4.9.1 for Ubuntu Core 16
chihchun@localhost:~$ snap list
Name Version Rev Developer Notes
core 16-2 1870 canonical -
kernelv49 4.9.1 x1 -
pc 16.04-0.8 19 canonical -
chihchun@localhost:~$ uname -a
Linux localhost.localdomain 4.9.1-stable-4.9.y+ #1 SMP Mon May 8 11:16:06 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
chihchun@localhost:~$ cat /etc/os-release
NAME="Ubuntu Core"
VERSION="16"
#!/usr/bin/perl
use strict;
my $config = shift(@ARGV);
my $P = "kernel-config-compare";
my %values = ();
# Load up the current configuration values -- FATAL if this fails
print "$P: loading $config\n";
open(CONFIG, "<$config") || die "$P: $config: open failed -- $! -- aborting\n";
From 09000da9c982c43e20549f8addd23a3fd5a367eb Mon Sep 17 00:00:00 2001
From: Paolo Pisati <paolo.pisati@canonical.com>
Date: Tue, 27 Jan 2015 14:35:01 +0100
Subject: [PATCH 1/7] UBUNTU: [Config] snappy config fragments: generic,
systemd, lxc, security and snappy
Use the merge_config.sh script to combine the fragments:
$ ./scripts/kconfig/merge_config.sh arch/x86/configs/YOURCONFIG_defconfig kernel/configs/snappy/*.config

Keybase proof

I hereby claim:

  • I am chihchun on github.
  • I am chihchun (https://keybase.io/chihchun) on keybase.
  • I have a public key ASCKjMQlRIdk98fzpHZLa3rkF-t3v2tvESGts_fz6a-HcQo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/main.py b/main.py
index 26a0e10..eb125c3 100644
--- a/main.py
+++ b/main.py
@@ -16,7 +16,10 @@ from calibre.gui2.tweak_book.plugin import Tool
from calibre.gui2.tweak_book import editor_name
from calibre.gui2 import error_dialog, info_dialog
from calibre.ebooks.oeb.polish.container import OEB_DOCS, OEB_STYLES, get_container
-from calibre.ebooks.oeb.polish.toc import get_toc, find_existing_ncx_toc, commit_toc
+try:
@chihchun
chihchun / -
Created January 23, 2017 06:11
$ curl -w "@curl-format.txt" -o /dev/null -s 'http://maps.nlsc.gov.tw/S_Maps/wmts/EMAP5/default/GoogleMapsCompatible/18/112221/219558'
time_namelookup: 0.064
time_connect: 0.078
time_appconnect: 0.000
time_pretransfer: 0.079
time_redirect: 0.000
time_starttransfer: 0.087
----------
time_total: 0.109
@chihchun
chihchun / -
Last active January 23, 2017 03:31
# cat curl-format.txt
\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n