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
// ==UserScript== | |
// @name 豆瓣电影RARBG搜索 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description 在豆瓣电影页面添加RARBG搜索链接 | |
// @author You | |
// @match https://movie.douban.com/subject/* | |
// @grant none | |
// ==/UserScript== |
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 zsh | |
# just for macOS | |
# | |
# The default options for installing ffmpeg and mpv via brew do not include the activation of libplacebo. | |
# As a result, when playing videos in Dolby Vision, the color mapping is not accurate. To resolve this issue, | |
# a script is used to compile ffmpeg with libplacebo activated, followed by the building of mpv. | |
# Extra: build mpv bundle, with jxl | |
if [ "$(uname -s)" != "Darwin" ]; then |
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 zsh | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
WHITE='\033[1;37m' | |
NC='\033[0m' | |
if [[ $# != 1 ]]; then | |
echo "no input path. Usage:\n $(basename $0) app_path" | |
exit | |
fi |
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/zsh | |
test -d ~/ntfs || mkdir ~/ntfs | |
disk=$(diskutil list external | grep -i NTFS | awk '{print $7}') | |
echo "umounting /dev/$disk" | |
sudo umount /dev/$disk | |
echo "mounting by read and write NTFS privileges..." | |
sudo mount -t ntfs -o rw,auto,nobrowse /dev/$disk ~/ntfs |