Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
alvin2ye / install_nginx_on_ubuntu_1604
Last active October 29, 2017 02:25
install_nginx_on_ubuntu_1604
#!/bin/bash
# install packages
sudo apt-get update
sudo apt-get install -y --no-install-recommends software-properties-common apt-transport-https ca-certificates curl
sudo apt-get remove docker docker-engine docker.io
# intall nginx
@alvin2ye
alvin2ye / install_docker_on_ubuntu_1606.bash
Last active February 25, 2019 05:09
install_docker_on_ubuntu_1606.bash
#!/bin/bash
# Must 64bit
uname -a | grep x86_64 || echo "must 64bit" || exit 0
DOCKER_COMPOPSE_VERSION=1.23.2
@alvin2ye
alvin2ye / install_coreseek.bash
Last active October 25, 2017 09:58
ubuntu 12.04 install coreseek-3.2.14
install_folder=/tmp/install_coreseek_$(date +%s)
mkdir $install_folder
cd $install_folder
curl -O https://dn-agi-public3.qbox.me/20171025174818/coreseek-3.2.14-fix.tar.gz
tar xzvf coreseek-3.2.14-fix.tar.gz
cd coreseek-3.2.14
@alvin2ye
alvin2ye / ubuntu_1606_install_docker.bash
Last active May 18, 2018 15:38
ubuntu 16.04 install docker & docker-compose
#!/bin/bash
DOCKER_COMPOPSE_VERSION=1.16.1
# install packages
sudo apt-get update
sudo apt-get install -y --no-install-recommends software-properties-common apt-transport-https ca-certificates curl
sudo apt-get remove docker docker-engine docker.io
@alvin2ye
alvin2ye / auto_run.bash
Created September 22, 2017 11:09
auto_run.bash
#/bin/bash
if [ "x$AUTO_START" != "x" ]; then
cd /app && node app.js
fi
@alvin2ye
alvin2ye / source.list
Created September 13, 2017 05:23
163_debian_stretch_source.list
deb http://mirrors.163.com/debian/ stretch main
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb http://httpredir.debian.org/debian stretch-backports main contrib non-free
PrintDocument p = new PrintDocument();
if (options.PrinterName.Length > 0)
{
p.PrinterSettings.PrinterName = options.PrinterName;
}
p.PrintPage += delegate(object sender1, PrintPageEventArgs e1)
{
define(function(require, exports, module) {
var $ = require('$');
console.info(1, $);
})
@alvin2ye
alvin2ye / user-agreement.html
Last active June 15, 2017 09:04
充电协议.html
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content=" initial-scale=1.0, minimum-scale = 1, maximum-scale = 1">
<title>用户协议</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.6/marked.min.js"></script>
</head>
<style>
body {
@alvin2ye
alvin2ye / intro.html
Last active June 6, 2017 02:29
分期
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content=" initial-scale=1.0, minimum-scale = 1, maximum-scale = 1">
<title>苍南晓蕾科技有限公司</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.6/marked.min.js"></script>
</head>
<style>
body {