本教程不保证它的权威性和正确性,也不对任何实践中的错误、数据丢失等问题负责!
本教程平台为 macOS, 其他系统请酌情参考
@ 2020/8/29
- 添加"介绍"
- 更新 TWRP 信息
#!/bin/bash | |
# 原作者: t0n1 | |
# 来自: http://hacktracking.blogspot.ca/2013/07/download-mega-files-from-command-line.html | |
# | |
# 修改: maboloshi | |
# <file_url>: https://mega.nz/#!<id>!<decyption Key> | |
url=$1 | |
out_file="$2" |
for i in $(ls *rst) | |
do | |
filename="${i%.*}" | |
echo "Converting $i to $filename.md" | |
pandoc "$i" -f rst -t gfm -o "$filename.md" | |
done |
launchctl
命令加载,卸载开机自动运行的服务,在 OS X 中,服务本身存储在 .plist
文件中(即 property list),这些文件的位置一般在 ~/Library/LaunchAgents
或 /Library/LaunchAgents
。可以使用 launchctl load $PATH_TO_LIST
和 unload them with launchctl unload $PATH_TO_LIST
命令来加载/卸载他们。加载就是允许这个程序开机执行,卸载反之。
如果你使用 Homebrew
安装过 mysql
那么下面的安装后提示你可能比较熟悉
To have launchd start mysql at login:
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
Then to load mysql now:
javascript: (function () { | |
let rsshub_host = 'https://rsshub.app'; | |
let cnblog = 'https://www.cnblogs.com/'; | |
let csdn = 'https://blog.csdn.net/'; | |
let jianshu_user = '/jianshu/user/'; | |
let zhihu_user = '/zhihu/people/activities/'; | |
let zhihu_collection = '/zhihu/collection/'; | |
let zhihu_zhuanlan = '/zhihu/zhuanlan/'; | |
let bilibili_user = '/bilibili/user/video/'; |
As of 2013-05-16, you can generate API Access Tokens via the Web UI or via the GitHub API. All other authorization methods is deprecated.
Account Settings -> Personal access tokens
"Generate new token" under "Personal access tokens"
get_latest_release_number() { | |
curl --silent "https://github.com/$1/releases/latest" | sed 's#.*tag/\(.*\)".*#\1#' | |
} | |
# Usage | |
# $ get_latest_release_number "creationix/nvm" | |
# v0.34.0 |