Skip to content

Instantly share code, notes, and snippets.

@xykong
xykong / convert-video-h265.sh
Last active December 31, 2017 06:46
Convert all videos in the given folder to h265 format.
#!/bin/sh
path=`pwd`
dry=0
while test $# -gt 0
do
case "$1" in
--dry)
dry=1
@xcatliu
xcatliu / (已失效)中国区用户在开启 GitHub 两步验证中遇到的问题
Last active March 7, 2024 02:53
(已失效)中国区用户在开启 GitHub 两步验证中遇到的问题
2023.8.28
据多名网友回复,此方法已失效。
最新解决办法请参考此贴:[v2ex: 请问 github 的两步验证(two-factor authentication)大家是怎么做的?](https://www.v2ex.com/t/967533)
https://www.v2ex.com/t/967533
---
@ptmt
ptmt / macOS-arm-setup.sh
Last active February 4, 2022 09:11
Setting up fresh macOS
# 1. Install Brew (warning: at least read install at first)
cat "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# 2. Install Oh-my-zsh (warning: at least read install.sh at first)
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | cat
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
# 4. Install brew packages
brew install mas # appstore done right