Skip to content

Instantly share code, notes, and snippets.

Weijing Jay Lin dotku

Block or report user

Report or block dotku

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

Common Docker Commands

  1. Create Docker Container from image

    docker run -it -d --rm --name CONTAINER_NAME IMAGE_NAME

  2. Check container running status

    docker ps

dotku /
Last active Jul 19, 2019
A note for mac http setup

Common Used Command

// check module status
httpd -M 

// test apache config
apachectl configtest

// restart apache service
  1. You need restart your system after install a foreign input method.
View bookmarks
# Bookmarks
## Freedies
View Commonly Used JavaScript
View testJS.html
View javascript-deep-copy.js
function cloneObject(obj) {
var clone = {};
for(var i in obj) {
if(obj[i] != null && typeof(obj[i])=="object")
clone[i] = cloneObject(obj[i]);
clone[i] = obj[i];
return clone;
  1. Multiple Assign, eg (serah, bob, mike = 16, 17, 21);
You can’t perform that action at this time.