- etcd >= 3.5.0
# Start a local etcd server
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
// See the License for the specific language governing permissions and |
<template> | |
<div id="app"> | |
<VueList msg="Hello Vue"/> | |
</div> | |
</template> | |
<script> | |
import VueList from './components/VueList.vue' | |
export default { |
upstream backend { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
error_log /var/log/nginx/debug.log debug; | |
location / { | |
proxy_pass http://backend; |
#!/usr/bin/env bash | |
plist="\ | |
proc1,\ | |
proc2" | |
send_kill=false | |
version="v1.0.0" |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[package] | |
name = "hello-rust" | |
version = "0.0.1" | |
edition = "2021" | |
rust-version = "1.59" | |
authors = ["Jia Jia <angersax@sina.com>"] | |
description = "Hello Rust" | |
repository = "https://github.com/craftslab/hello-rust" |
# Docker
# https://gist.github.com/craftslab/94ec9617aff0bbf022ae388eb1b3287b
# Ubuntu
# https://www.postgresql.org/download/linux/ubuntu/
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
#!/bin/bash | |
rm -rf $HOME/.cache/thumbnails/* | |
sudo apt-get autoremove --purge | |
sudo apt-get clean | |
sudo journalctl --disk-usage | |
sudo journalctl --vacuum-time=1s | |
sudo journalctl --disk-usage |