Skip to content

Instantly share code, notes, and snippets.

View yuanying's full-sized avatar
🌴
On vacation

O. Yuanying yuanying

🌴
On vacation
View GitHub Profile
@Hermanverschooten
Hermanverschooten / rc.local
Last active March 9, 2022 19:10
Ubuntu 18.04 as a router with IPv6
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@webcss
webcss / mithril-touch.js
Last active May 26, 2020 15:34
mithril-touch, consume touch and mouse events evenly with mithril
/*****************************************
/* DOM touch support module
/*****************************************/
if (!window.CustomEvent) {
window.CustomEvent = function (event, params) {
params = params || { bubbles: false, cancelable: false, detail: undefined };
var evt = document.createEvent('CustomEvent');
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
};
@yuanying
yuanying / create-dev-env-magnum.md
Last active March 11, 2019 09:16
Develop Magnum with Devstack

Develop Magnum with Devstack

Vagrant

I'm using vagrant (parallels on Mac) to boot a devstack. Vagrantfile is below. Devstack IP Address is 192.168.11.197.

Vagrant.configure('2') do |config|

config.vm.box = "trusty64"