I hereby claim:
- I am xingfanxia on github.
- I am axcomputelabs (https://keybase.io/axcomputelabs) on keybase.
- I have a public key ASAMJdxIYKiMSXyKiZzWaEokPW3nCutFzohG05w5C-u-0go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
To remove a submodule you need to:
| organize_videos() { | |
| # Use the 'rename' command to remove text between '@' and the last '.' | |
| rename 's/@(.*?)\././' *-* | |
| # Use the 'rename' command to remove all text from the last '-' before the file extension | |
| rename 's/-(?!.*-).*?(\.[^.]+)$/$1/' *-* | |
| # Iterate over files with specific extensions and organize them into folders | |
| for f in *.mp4 *.mkv; do | |
| # Skip if not a file |
| # Inspired by https://gist.github.com/harel/9ced5ed51b97a084dec71b9595565a71 | |
| from collections import namedtuple | |
| import functools | |
| import json | |
| import six | |
| Serialized = namedtuple('Serialized', 'json') |
| parallel 'mkdir -p {.} && convert -density 144 {} {.}/{.}.jpg && cd {.} && | |
| convert *.jpg \ | |
| -background white \ | |
| -bordercolor white \ | |
| -border 0x50 \ | |
| -append \ | |
| -shave 0x50 \ | |
| -resize 1080 \ | |
| -quality 85 \ | |
| -sharpen 0x1.0 \ |
| #!/bin/bash | |
| ## 计算pdf文件名,参考资料: | |
| # http://www.runoob.com/linux/linux-shell-variable.html | |
| # https://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash/965072 | |
| # https://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash | |
| # https://stackoverflow.com/questions/3362920/get-just-the-filename-from-a-path-in-a-bash-script | |
| # 需要安装GhostScript和ImageMagick | |
| pdfname=$1 |
| def decrypt(s): | |
| return "".join([chr(ord(s[i])-i) for i in range(len(s))]) |
| git rev-list --objects --all \ | |
| | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \ | |
| | sed -n 's/^blob //p' \ | |
| | sort --numeric-sort --key=2 \ | |
| | cut -c 1-12,41- \ | |
| | $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest | |
| git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' -f HEAD |
I hereby claim:
To claim this, I am signing this object: