Extract chapters from an audio using ffprobe.
$ curl -LO https://static.thetype.cloud/typechat/typechat157.mp3
$ ffprobe typechat157.mp3
…
Metadata:
album : 字谈字畅
Extract chapters from an audio using ffprobe.
$ curl -LO https://static.thetype.cloud/typechat/typechat157.mp3
$ ffprobe typechat157.mp3
…
Metadata:
album : 字谈字畅
/// Make equations numbered by chapters (heading level 1) | |
/// | |
/// Only works if headings are numbered. | |
/// | |
/// # Usage | |
/// | |
/// ``` | |
/// #show: equation-numbering-rules | |
/// #set heading(numbering: "1.") | |
/// |
This is a simple script to get changelog of an app in scoop. It fetches changelog from GitHub releases or CHANGELOG.md
.
Add the following to your PowerShell $PROFILE
, and try Get-Changelog <App>
.
<#
.SYNOPSIS
Get changelog of an app in scoop
.NOTES
Prerequisites:
#!/usr/bin/env bash | |
set -euo pipefail | |
help() { | |
cat <<'EOF' | |
提交作业到 course.educg.net | |
Usage | |
submit PROBLEM_ID ASSIGN_ID FOLDER |
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Serve", | |
"command": "mkdocs", | |
"type": "process", | |
"args": [ | |
"serve", | |
], |
#!/bin/bash | |
status=`bitsrun status --json | jq '.error' --raw-output` | |
if [[ $status != 'ok' ]]; then | |
echo "Status: $status. Relogin…" | |
bitsrun logout | |
bitsrun login | |
fi |
Help or see manual with bat
.
Add the following to your PowerShell $PROFILE
, and try batman pip install
.
<#
.SYNOPSIS
Help or see manual with bat
.NOTES
The default colors in PowerShell (or Windows PowerShell) can be unreadable / boring.
Example: If you use a black background and type
pip --version
, then--version
will be BrightBlack and fade into the background.
There are many ways to change that.
The shell only determines color names (e.g. BrightBlack), and it is the terminal who decides real colors (e.g. #767676
).