Skip to content

Instantly share code, notes, and snippets.

@xycui
xycui / portScan.md
Last active August 10, 2018 18:27
python port scan for given url/ip

portScan.py

Parameters:

  • TIME_OUT: The time out period in seconds for test each port
  • PORT_RANGE: The port range need to be tested.
  • THREAD_CNT: Thread count for boosting the test process. The ports will be seperated to groups with this count.
  • HOST: Target IP/domain

Output:

Several files contain the port test results.

@xycui
xycui / VolumeDetect.md
Last active January 9, 2024 05:20
Use ffmpeg to detect audio volume level. bat file included for easier interaction.

Detect the audio file volume with ffmpeg.

Require tools

  • ffmpeg: [Official site][1], [Download][2]

How to use

  1. Download ffmpeg from [link][2]
  2. Extract the ffmpeg.exe from zip package and copy to the directory contain the audio file
  3. Copy the volumeDetect.bat into the folder. (Just make sure the bat file and ffmpeg.exe are in the same directory)
  4. Doulbe click volumeDetect.bat and drag the file into the window.
  5. Press enter and get the result.
@xycui
xycui / VolumeNorm.py
Last active December 23, 2019 12:21
normalize the audio level to 0 with ffmpeg
import platform
import os
import sys
import requests
import zipfile
import lzma
import tarfile
import glob
import re
import multiprocessing

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>
  • 信号优先级?
  • 信号产生者
  • 接收多种信号
  • 被动?主动?
  • 信号的不同的消费者 : 人的走神行为(不消费信号)
  • 信号管道?
  • 状态转移
  • 状态context
  • 接收到事件后的行为
  • 长期短期记忆?

Cydia source:

  • cydia.radare.org: For libgcc

Cydia packages:

  • GNU C Compiler
  • APT 0.7
  • make
  • IOS Terminal
  • nano
  • zip

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>

Documentation & Static site

  • MkDocs
  • Hexo
  • Jekyll
  • GitBook
@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.

Team

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