git status --porcelain # 是否干净
skip local file
use rsync --ignore-existing-files
to skip local existing files
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
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never }; | |
type XOR<T, U> = (T | U) extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U; | |
type NameOnly = { is: "NameOnly", name: string }; | |
type FirstAndLastName = { is: "FirstAndLastName", firstname: string; lastname: string }; | |
type Person = XOR<NameOnly, FirstAndLastName>; | |
let person: Person; | |
person = { is: "NameOnly", name: "Foo" }; | |
person = { is: "FirstAndLastName", firstname: "Foo", lastname: "Bar" }; |
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
version: '3' | |
services: | |
uploader: | |
image: zyfyy/php-fpm | |
container_name: php-fpm | |
restart: unless-stopped | |
tty: true | |
environment: | |
SERVICE_NAME: php-fpm | |
SERVICE_TAGS: dev |
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"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
#default-example { | |
height: 300px; | |
width: 300px; |
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 | |
##################################### | |
#Author: Leon Lee # | |
#email: lendylongli@gmail.com # | |
#QQ: 730395591 # | |
#Version: 1.0 # | |
#Note: If you have some good ideas # | |
# or advice, please mail me^^ # | |
##################################### |
NewerOlder