Skip to content

Instantly share code, notes, and snippets.

View henrysher's full-sized avatar
💭
I may be slow to respond.

Henry Huang henrysher

💭
I may be slow to respond.
View GitHub Profile
[HYPER INFO 0531 20:54:41 26892 hyperd.go] [:50] The config file is
[HYPER INFO 0531 20:54:41 26892 daemon.go] [:201] The config: kernel=/var/lib/hyper/kernel, initrd=/var/lib/hyper/hyper-initrd.img
[HYPER INFO 0531 20:54:41 26892 daemon.go] [:204] The config: bridge=, ip=
[HYPER INFO 0531 20:54:41 26892 daemon.go] [:207] The config: bios=/var/lib/hyper/bios-qboot.bin, cbfs=/var/lib/hyper/cbfs-qboot.rom
[HYPER INFO 0531 20:54:41 26892 network.go] [:191] bridge exist
[HYPER INFO 0531 20:54:41 26892 iptables.go] [:286] /sbin/iptables, [--wait -t nat -C POSTROUTING -s 192.168.123.1/24 ! -o hyper0 -j MASQUERADE]
[HYPER INFO 0531 20:54:41 26892 iptables.go] [:286] /sbin/iptables, [--wait -t filter -C FORWARD -i hyper0 ! -o hyper0 -j ACCEPT]
[HYPER INFO 0531 20:54:41 26892 iptables.go] [:286] /sbin/iptables, [--wait -t filter -C FORWARD -o hyper0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT]
[HYPER INFO 0531 20:54:41 26892 docker.go] [:173] Finish the client request
[HYPER INFO 0531 20:5
@henrysher
henrysher / 校园常见传染病.md
Last active August 29, 2015 14:23
校园常见传染病

#校园常见传染病

编辑: Henry Huang

肺结核、病毒性肝炎、流行性感冒、麻疹、水痘、流行性腮腺炎、风疹、猩红热、流行性脑脊髓膜炎、急性流行性结膜炎(俗称:红眼病)、细菌性痢疾、艾滋病、登革热等。

##内容提要 流行性感冒
水痘
风疹

@henrysher
henrysher / 测试问答题.md
Last active September 14, 2015 11:07
测试问答题
  1. 使用过何种bug tracking system?能说出里面的bug生命周期吗?你觉得这种设计有效吗?你的看法是?
@henrysher
henrysher / uri_validate.py
Created December 26, 2011 08:40 — forked from mnot/uri_validate.py
uri_validate.py: Validation regex for URIs, URI references, and relative URIs
#!/usr/bin/env python
"""
Regex for URIs
These regex are directly derived from the collected ABNF in RFC3986
(except for DIGIT, ALPHA and HEXDIG, defined by RFC2234).
They should be processed with re.VERBOSE.
"""
D, [2012-01-18T09:16:21.806438 #21498] DEBUG -- : Executing 'cd /var/lib/rpm/ && cat /tmp/Packages.dump | /usr/lib/rpm/rpmdb_load Packages' command...
D, [2012-01-18T09:16:33.289224 #21498] DEBUG -- : Command 'cd /var/lib/rpm/ && cat /tmp/Packages.dump | /usr/lib/rpm/rpmdb_load Packages' executed.
D, [2012-01-18T09:16:33.313033 #21498] DEBUG -- : Executing 'rpm --rebuilddb' command...
D, [2012-01-18T09:17:33.666334 #21498] DEBUG -- : Command 'rpm --rebuilddb' executed.
D, [2012-01-18T09:17:33.666974 #21498] DEBUG -- : RPM database recreated...
I, [2012-01-18T09:17:33.667333 #21498] INFO -- : Executing post operations after build...
D, [2012-01-18T09:17:33.668264 #21498] DEBUG -- : Executing '/opt/ks.sh' command...
D, [2012-01-18T09:21:07.010384 #21498] DEBUG -- : Command '/opt/ks.sh' executed.
D, [2012-01-18T09:21:07.012541 #21498] DEBUG -- : Post commands from appliance definition file executed.
T, [2012-01-18T09:21:07.012973 #21498] TRACE -- : Closing guestfs...
name: test-vmware
summary: Just Enough Operating System based on CentOS 6
os:
name: centos
version: 6
hardware:
partitions:
"/":
size: 2
"/boot":
/etc/qemu/target-x86_64.conf
/etc/rc.d/init.d/qemu
/etc/sasl2/qemu.conf
/usr/bin/qemu
/usr/bin/qemu-alpha
/usr/bin/qemu-arm
/usr/bin/qemu-armeb
/usr/bin/qemu-cris
/usr/bin/qemu-ga
/usr/bin/qemu-i386
@henrysher
henrysher / TestingUploadSe2Sauce.java
Created February 3, 2012 07:59 — forked from santiycr/TestingUploadSe2Sauce.java
Remote File Upload using Selenium 2's FileDetectors
import junit.framework.Assert;
import junit.framework.TestCase;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.*;
import java.net.URL;
import java.util.concurrent.TimeUnit;
public class TestingUploadSe2Sauce extends TestCase {
private RemoteWebDriver driver;
@henrysher
henrysher / tag_instance.py
Created February 9, 2012 05:08 — forked from garnaat/tag_instance.py
Add a new/value tag to an instance
>>> import boto
>>> c = boto.connect_ec2()
>>> reservations = c.get_all_instances()
>>> reservations
[Reservation:r-b73716d6]
>>> instance = reservations[0].instances[0]
>>> instance
Instance:i-366c4354
>>> instance.tags
{}
Xen Minimal OS!
start_info: 0x1890000(VA)
nr_pages: 0x1e0000
shared_inf: 0xbdaeb000(MA)
pt_base: 0x1893000(VA)
nr_pt_frames: 0x11
mfn_list: 0x990000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0