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 | |
case "$1" in | |
start) | |
echo -n "Starting rtorrent" | |
su - root -c "screen -A -m -d -S rtorrent /usr/local/bin/rtorrent" & | |
echo "." | |
;; | |
stop) | |
echo -n "Stopping rtorrent" |
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
# This is an example resource file for rTorrent. Copy to | |
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to | |
# uncomment the options you wish to enable. | |
# 每个种子所允许的最小最大连接数 | |
#min_peers = 40 | |
#max_peers = 100 | |
# 同上,但仅针对已完成的种子(-1 表示与下载中的种子一致) | |
#min_peers_seed = 10 |
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 | |
#reinstall everything you currently have in brew | |
for f in `brew list`; do | |
echo $f | |
brew uninstall $f && brew install $f | |
done |
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
<!doctype html> | |
<html> | |
<head> | |
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet"> | |
<script src="http://vjs.zencdn.net/c/video.js"></script> | |
</head> | |
<body> | |
<video id="my_video_1" class="video-js vjs-default-skin" controls | |
preload="auto" width="640" height="264" poster="my_video_poster.png" | |
data-setup="{}"> |
NewerOlder