Skip to content

Instantly share code, notes, and snippets.

Marc Liu lsm

  • Seattle, WA
Block or report user

Report or block lsm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lsm / Dockerfile
Created Dec 17, 2017 — forked from kenfehling/Dockerfile
Docker: Ubuntu 16.04 with Node 6.10.2, Selenium Standalone, Chrome Headless
View Dockerfile
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
apt-transport-https \
openjdk-8-jre-headless \
curl \
xz-utils \
unzip \
bzip2 \
lsm / app.js
Last active Jul 14, 2016
express -> micromono
View app.js
var app = require('express')()
app.set('views', path.join(__dirname, 'views'))
app.set('view engine', 'pug')
app.use(express.static(path.join(__dirname, 'public')))
app.get('/', function(req, res){

Keybase proof

I hereby claim:

  • I am lsm on github.
  • I am lsm ( on keybase.
  • I have a public key ASBpGnftcilmP_g7XoeQkY4v2zyOLF9vafd8a8yy_5pTmAo

To claim this, I am signing this object:

View stdio-2.js
In a child process, each of the stdio streams may be set to
one of the following:
1. A new file descriptor in the child, dup2'ed to the parent and
exposed to JS as a Stream object.
2. A copy of a file descriptor from the parent, with no other
added magical stuff.
3. A black hole - no pipe created.
lsm / yosemite2ISO
Created May 17, 2015
Yosemite to ISO
View yosemite2ISO
# Mount the installer image
hdiutil attach /Applications/Install\ OS\ X\ -noverify -nobrowse -mountpoint /Volumes/install_app
# Convert the boot image to a sparse bundle
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Yosemite
# Increase the sparse bundle capacity to accommodate the packages
hdiutil resize -size 8g /tmp/Yosemite.sparseimage
View react.js
'use strict';
module.exports = {
re: function(fnName, context) {
var fn;
context = context || this;
if ('function' === typeof fnName) {
fn = fnName;
fnName = fn.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
} else {
View gist:8167d7a2f2f39ad586d1
$(function() {
var spaceKeyCode = 32;
var stream = require('dim')();
var model = {};
View gist:69f777d9ec0d347d2855
Step 1: From your project repository, bring in the changes and test.
git fetch origin
git checkout -b anton-redesign origin/anton-redesign
git merge master
Step 2: Merge the changes and update on GitHub.
git checkout master
git merge --no-ff anton-redesign
git push origin master
lsm / firefs
Created Dec 11, 2014
An example of using firebase as filesystem
View firefs
// Example folder object
example_folder: {
type: "folder",
children: {
file1: {
type: "file",
blob: <Buffer 74 68 69 73 20 69 73 20 61 6e 20 65 78 61 6d 70 6c 65 20 66 69 6c 65> // this is a 10MB file
View client.go
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Modify by
package main
import (
You can’t perform that action at this time.