This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:
- Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
- Windows 10 on my PC to work.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
test |
<!-- 1. Add latest jQuery and fancyBox files --> | |
<script src="//code.jquery.com/jquery-3.1.1.min.js"></script> | |
<link href="/path/to/jquery.fancybox.min.css" rel="stylesheet"> | |
<script src="/path/to/jquery.fancybox.min.js"></script> | |
<!-- 2. Create links --> |
void function fancybox(){ | |
var x = $('.fancybox') | |
, y = $('.fancybox-thumb') | |
$(document).on('click.clear','a.fancybox,a.fancybox-thumb',function(e){e.preventDefault()}) | |
if(!$('.fancybox,.fancybox-ajax,.fancybox-thumb,.fancybox-thumb-ajax').length)return; | |
var deps = $.when() | |
var deps_thumb = $.when() | |
var options = { | |
helpers : { | |
thumbs : { |
#!/bin/bash | |
# This script will automatically set up a single node Flynn Cluster on your linux box | |
# Fresh Flynn install with domain provided by the xip.io service | |
# Tested with Base Image: Ubuntu 14.04 x64 @ DigitalOcean droplet | |
# @date 16 Nov 2015 | |
# @author Edu Wass (eduwass at gmail com) | |
echo '---- START SETUP ----' |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
一条命令快速在 CentOS 上安装 Docker
curl https://gist.github.com/shynome/567e4535892bea77c2df2507ebc9b18e/raw/307e15382d4d8d2bf31d1e9232b95129cd3900e3/install.sh | sh
FROM hermsi/alpine-sshd | |
EXPOSE 22 | |
ENTRYPOINT ["/entrypoint.sh"] | |
RUN set -e && \ | |
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \ | |
apk add --no-cache vim tmux |