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
EDL | 01:31:06,916 | 01:31:10,291 | | Dont.Look.Up.2021 | | We saw it with our own eyes\Nusing a telescope. | |
---|---|---|---|---|---|
EDL | 01:31:11,360 | 01:31:13,583 | | Dont.Look.Up.2021 | | we took a fucking picture of it! | |
EDL | 01:31:13,583 | 01:31:15,291 | | Dont.Look.Up.2021 | | What other proof do we need? | |
EDL | 01:31:46,215 | 01:31:48,166 | | Dont.Look.Up.2021 | | I don't know why we didn't do it. | |
EDL | 01:32:08,666 | 01:32:11,000 | | Dont.Look.Up.2021 | | I'm just telling you the fucking truth. | |
EDL | 01:32:17,041 | 01:32:21,750 | | Dont.Look.Up.2021 | | Right, well, the president\Nof the United States is fucking lying! | |
EDL | 01:32:21,750 | 01:32:23,125 | | Dont.Look.Up.2021 | | [ SPACE 1.4 secs ] |
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
# Open "Automator.app", add a new "Quick Action" | |
# Workflow receives current "files or folders" in "Finder" | |
#+ Run Shell Script | |
#+ Shell: /bin/bash | |
#+ Pass input: as arguments | |
# Deployment: Keyboard / Shortcuts, bind 'Cmd-Shift-V' | |
# Usage: copy something to clipboard, click on a folder, press 'Cmd-Shift-V'. | |
# Contents will be pasted into 'pbpaste.txt'. |
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 | |
sed 's/[^ -z,。:?!《〈〉》︽︿()﹀︾【】〖〗「」、~]/好/g' | |
# Example output regarding https://gengshuang1.github.io | |
# 好好:好好好好好好好好好好好好好好,好好好好好好好好? | |
# 好好:好好好好好好好好好好好:好好好好好好好好好好,好好好好好好好好好好好好,好好好好好好好好好好好好好。好好好好好好好好好好好好,好好好好好好好好,好好好好好好好!好好好好好好好好好好好好好好好好好好,好好好好好好,好好好好好好好好好好好好。好好好好好好好好好好好,好好好好好好好好好好好。好好好好好好好好好好好好好好好好,好好好好好好好好好,好好好好好好好好好好好,好好好好好好好好好好好好好好好。好好好好好好好好好好好好好好好好好好好好好好好好好好好好好好好好好好好好好好,好好好好好好好好好好好好好。 | |
# 好好好好好好好好好好好好好好好好好好好好好好好好,好好好好好好好好好好好,好好好好好好好好。好好好好好好好好好好好好,好好好好好好好,好好好好好好好好好好好好好好好好好好好,好好好好好好好,好好好好好好好好好好好。好好好好好好好好好好好好好好好好好好,好好好好好好,好好好好好好好好,好好好好好好,好好好好好好好好好好好好好好好好,好好好好好好好好好好好好好好好。好好好好好好好好好好好好,好好好好,好好好好好好好好好好,好好好好好好好好好好好。好好好好好好好好好好好好好好好好好好好好好好,好好好好好好好好好好好好好好好好,好好好好好好好好好。 | |
# 好好好好好好好好,好好好好,好好好好好好好好好好好好。好好好好好好好好好好好好好好好好好好好好好好,好好好好好好好好好好好好好好好好好好好。好好好好好好好好好好好好好好好好好好好,好好好好好好好好好,好好好好好好好,好好好好好好好好好。 | |
# 好好好好好好好好好好好好好好好好好好好好好好好好好好好,好好好好好好,好好好好好好好好好好好好好好好好好好好好好好好好好好好。好好好好好好好好好好好好好好好好好好好好好好好好好,好好好好好好好好好好好好好好好。好好好好好好好好好,好好好好好好好好好好好好好好好好好好。好好好好好好好好好好好,好好好好好好好好好好好好好好好好好。 | |
# Credit: 侯海洋: https://mp.weixin.qq.com/s/cBOx7acNQSEH8rRQoBg |
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 | |
# A wrapper for rss2email | |
# Usage: in ~/.config/rss2email.cfg | |
# email-protocol = sendmail | |
# sendmail = ~/bin/sendmail_localhost_mbox | |
while [ -e ~/Mails/RSS.mbox.lock ]; do sleep 0.01; done | |
touch ~/Mails/RSS.mbox.lock |
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
[source.crates-io] | |
replace-with = 'tuna' | |
[source.tuna] | |
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git" |
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
CUTTER = python3 jumpcutter/jumpcutter.py | |
%_0.3.mp4: %.mkv | |
ffmpeg -i $< -c:v copy $(basename $<).mp4 | |
if [ -d ./TEMP ]; then rm -r ./TEMP; fi | |
${CUTTER} --silent_threshold 0.3 --input_file $(basename $<).mp4 --output_file $(basename $<)_0.3.mp4 | |
%_wechat.mp4: %_0.3.mp4 | |
ffmpeg -i $< -c copy -t 00:05:00.00 $@ | |
%_0.1.mp4 %_0.2.mp4 %_0.3.mp4: %.mp4 | |
if [ -d ./TEMP ]; then rm -r ./TEMP; 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
while read LINE | |
do | |
NAME=$(echo "$LINE" | cut -d, -f1) | |
URL=$(echo "$LINE" | cut -d, -f2) | |
wget --timeout=4 --tries=2 --retry-connrefused $(echo $URL | tr -d '"') -O - | feed2maildir -s -m ~/mail/feeds/ -n "$NAME" & | |
done < ~/.feeds | |
# http://chriswarbo.net/blog/2017-01-14-rss_to_maildir.html |
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
trap abort SIGINT | |
abort() { | |
echo "Abort." | |
exit | |
} | |
timelimit -p -t20 -T10 youtube-dl --proxy socks5://localhost:1080 -f bestaudio $1 | |
RET=$? | |
while [ $RET -ne 0 ] | |
do |
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
# -*- coding: utf-8 | |
""" | |
Manually Pre-process | |
## Omnifocus 拷贝为Taskpaper | |
把Taskpaper转成Todo.txt | |
VIM COMMANDS: | |
:%g/^$/d |
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
# 1. Generate an API Token from dnspod.cn | |
# 2. create a record first | |
# 3. change $TMP_FILE | |
# 4. get your $DOMAIN_ID | |
# 5. change $NEW_IP generation method. | |
# 6. sudo apt-get install jq | |
TOKEN=12345,1234567890abcdef1234567890abcdef #TODO: change this TOKEN. | |
TMP_FILE=/tmp/scateu.me.list #TODO |
NewerOlder