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
# 改为 vim 模式 | |
setw -g mode-keys vi | |
bind-key -t vi-copy v begin-selection | |
# 设置window的起始下标为1 | |
set -g base-index 1 | |
# 设置pane的起始下标为1 | |
set -g pane-base-index 1 |
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
#!/bin/bash | |
set -e | |
echo "=== init folder ===" | |
mkdir -p /var/www/letsencrypt | |
mkdir -p /root/ssl | |
echo "=== <%= domain %>.conf ===" |
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
upstream app_web_services { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
root /app/public; | |
gzip on; | |
gzip_types text/plain text/xml application/xml application/xml+rss |
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
[program:app] | |
command=/bin/bash -lc "bash /tmp/boot_production.bash" |
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
/* | |
Serve is a very simple static file server in go | |
Usage: | |
-p="8100": port to serve on | |
-d=".": the directory of static files to host | |
Navigating to http://localhost:8100 will display the index.html or directory | |
listing file. | |
*/ | |
package main |
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
#!/usr/bin/env bash | |
export LC_ALL=C | |
PROJECT_PREFIX=<%= prefix %> | |
OSS_BUCKET_NAME=<%= bucket %> | |
LOCALFILE=<%= file %> | |
OSS_ACCESS_KEY_ID=<%= ak %> | |
OSS_ACCESS_KEY_SECRET=<%= sk %> | |
ENDPOINT=<%= endpoint %> |
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
# curl -sSL https://git.io/generate_test_file | ruby - "app/controllers/wechat_platform/official_accounts/webhooks_controller.rb" | |
# generate spec/requests/wechat_platform/official_accounts/webhooks_controller_spec.rb | |
require "FileUtils" | |
rbfile = ARGV.first | |
test_file = rbfile.gsub(/^app\/controller/, "spec/request").gsub(/_controller\.rb$/, "_controller_spec.rb") | |
FileUtils.mkdir_p(File.dirname(test_file)) |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> | |
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> | |
<meta http-equiv="Pragma" content="no-cache" /> | |
<meta http-equiv="Expires" content="0" /> | |
<meta name="format-detection" content="telephone=no"> | |
<title></title> |
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="zh-CN"> | |
<head> | |
<meta charset="utf-8"> | |
<title>瓯飞</title> | |
<link rel="stylesheet" href="https://cdn2.agideo.com/181127/bfdb80de8200.css" type="text/css"> | |
<style> | |
.right { | |
text-align: right; | |
} |
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
gzip on; | |
gzip_vary on; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_min_length 1000; | |
gzip_proxied any; | |
gzip_disable "msie6"; | |
gzip_http_version 1.0; |
NewerOlder