Skip to content

Instantly share code, notes, and snippets.

@HoriLiu
HoriLiu / web-servers.md
Created October 6, 2017 14:32 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@HoriLiu
HoriLiu / README.md
Created April 4, 2017 02:24 — forked from mrbuk/README.md
Sticky IP addresses with VMWare Fusion

It is possible in VMWare Fusion to ensure that a VM will always be assigned the same IP address - this is more convenient than making the VM use static IP via config of the Linux box it uses. The simplest way to achieve this is as follows (all performed on the Mac host, not the Linux guests)

sudo vim /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf

At the bottom of the file, after the following line:-

####### VMNET DHCP Configuration. End of "DO NOT MODIFY SECTION" #######

Before changing the configuration file it is recommended to put the vmnet service into config mode so that the file is not overwritten by Fusion itself. To do so run

@HoriLiu
HoriLiu / bopomofo.schema.yaml
Created March 4, 2017 07:57 — forked from chenhunghan/bopomofo.schema.yaml
注音輸入法模式 for Squirrel 0.9.20.4 on Mac OSX 10.8.2 please put bopomofo.schema.yaml, default.custom.yaml and squirrel.custom.yaml in ~/Library/Rime then 重新部屬
# Rime schema
# encoding: utf-8
schema:
schema_id: bopomofo
name: 正體
version: "1.3"
author: 這樣 是
- 佛振 <chen.sst@gmail.com>
- turtleknight(修正臺灣使用者輸入習慣) <stk.chen@gmail.com>