Scaling Magento presentation with 60 slides and notes, which was then reviewed by Alan Storm.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Simple MySQL systemd service file | |
# | |
# systemd supports lots of fancy features, look here (and linked docs) for a full list: | |
# http://www.freedesktop.org/software/systemd/man/systemd.exec.html | |
# | |
# Note: this file ( /usr/lib/systemd/system/mysql.service ) | |
# will be overwritten on package upgrade, please copy the file to | |
# | |
# /etc/systemd/system/mysql.service |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas></canvas> | |
<!-- | |
,--. ,--. | |
((O ))--((O )) | |
,'_`--'____`--'_`. | |
_: ____________ :_ | |
| | ||::::::::::|| | | | |
| | ||::::::::::|| | | | |
| | ||::::::::::|| | | | |
|_| |/__________\| |_| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav role='navigation' id="nav"> | |
<ul> | |
</ul> | |
<div class="colors"> | |
<!--<code class="value"><value></code> | |
<code class="selector">:selector</code> | |
<code class="at">@at rule</code>--> | |
<input type="checkbox" id="hide" checked /> | |
<label for="hide">hide description</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": ["es2015"], | |
"plugins": ["transform-runtime"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Detect operating system in Makefile. | |
# Author: He Tao | |
# Date: 2015-05-30 | |
OSFLAG := | |
ifeq ($(OS),Windows_NT) | |
OSFLAG += -D WIN32 | |
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) | |
OSFLAG += -D AMD64 | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";} | |
#mapBox { | |
width: 90%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sessionManager = scs.NewCookieManager("...") | |
func RequireLogin(next http.Handler) http.Handler { | |
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |
session := sessionManager.Load(r) | |
userID, err := session.GetInt("userID") | |
if err != nil { | |
http.Error(w, err.Error(), http.StatusInternalServerError) | |
} |