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/sh | |
clr() | |
{ | |
# clr light read blabla | |
local black=0 | |
local white=7 |
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/sh | |
# Format python source codes with autopep8 on changed lines. | |
# | |
# Usage: | |
# format all uncommitted lines: | |
# > p8ln | |
# | |
# format file: | |
# > p8ln a.py b.py |
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 | |
usage() | |
{ | |
cat <<-END | |
Split one git history into two. | |
One of them only contains changes of specified files. | |
The other contains other changes(or optionally contains full history). |
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/sh | |
usage(){ | |
cat <<-END | |
git history-msg <from> <to> <spec> | |
Replace word <from> to <to> in commit message. | |
Install: | |
copy it into /usr/local/bin/ or somewhere PATH env can find. |
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 python | |
# coding: utf-8 | |
# Enable azure speech service: | |
# https://docs.azure.cn/zh-cn/ai-services/speech-service/get-started-speech-to-text?tabs=macos%2Cterminal&pivots=programming-language-python | |
# | |
# Setup environement variables key and region that are found at page | |
# https://portal.azure.com | |
# Home -> Azure AI Service | Speech service -> <your_service_name> | |
# |
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 python3 | |
# coding: utf-8 | |
# Requirements: | |
# pip3 install bs4 markdownify requests | |
# Usage: | |
# dl-wiki.py https://en.wikipedia.org/wiki/Formal_derivative | |
import sys |
OlderNewer