Skip to content

Instantly share code, notes, and snippets.

Rsync同步解决方案

背景

rsync用于同步本机与开发机数的据时,由于sync参数较多,每次同步若针对当前目录同步到指定目标目录需要输入参数过多。需要寻找一种配置相对简单, 且同步数据方便的方法。

解决思路

命令自动补全

命令自动补全可避免重复输入,可以选用alias或全局shell脚本。但有以下限制

  1. 对于目录在gopath下的情况,期望自动补全目标项目路径。inline shell配合alias不足以满足条件(需根据gopath取子路径)
  2. 对于shell脚本的情况成本较重
@xycui
xycui / WindowsIT.md
Last active February 17, 2019 15:35
computer management notes

Remote Command Connect

Items Values
Key words WinRM, WinRS
WinRSPort http 5985; https 5986

Client side

Command: Connect to remote

winrs -r:[host]:[port] -u:username cmd
@xycui
xycui / NetworkUtil.cs
Created January 4, 2019 05:08
Draft code for network related util code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace Helpers

Team

创业团队目标专注能力相近,讨论带来更大碰撞。 随着公司里面职位晋升,业务扩展,自上而下。讨论减少。能力分化

@xycui
xycui / DockerNote.md
Last active November 15, 2018 08:20
Docker related tries

Sharing/mounting current/other directory when run a image

Mac

docker run -it -v $(pwd):/datavlm [image name]:[tag] /bin/bash

Windows

docker run -it -v %cd%:/datavlm [image name]:[tag] /bin/bash

Potential issue: The mount folder is empty while the source(host) folder is not.

Documentation & Static site

  • MkDocs
  • Hexo
  • Jekyll
  • GitBook

Test Run Setting file

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
  <!-- Configurations that affect the Test Framework -->
  <RunConfiguration>
    <MaxCpuCount>4</MaxCpuCount>
    <!-- Path relative to solution directory -->
    <ResultsDirectory>.\TestResults</ResultsDirectory>

Cydia source:

  • cydia.radare.org: For libgcc

Cydia packages:

  • GNU C Compiler
  • APT 0.7
  • make
  • IOS Terminal
  • nano
  • zip
  • 信号优先级?
  • 信号产生者
  • 接收多种信号
  • 被动?主动?
  • 信号的不同的消费者 : 人的走神行为(不消费信号)
  • 信号管道?
  • 状态转移
  • 状态context
  • 接收到事件后的行为
  • 长期短期记忆?

Phoneme for pinyin

<speak version="1.0"
 xmlns="http://www.w3.org/2001/10/synthesis"
 xml:lang="zh-CN">

  <s>
   南京<phoneme alphabet="x-microsoft-sapi" ph="shi 4 zhang 3">市长</phoneme>江大桥 
  </s>