Skip to content

Instantly share code, notes, and snippets.

@wisicn
wisicn / rtorrent.sh
Last active August 29, 2015 14:07 — forked from wangyan/rtorrent.sh
#!/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"
@wisicn
wisicn / .rtorrent.rc
Last active August 29, 2015 14:07 — forked from wangyan/.rtorrent.rc
# 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
@wisicn
wisicn / fixBrew
Last active August 29, 2015 14:07 — forked from nmccready/fixBrew
#!/bin/sh
#reinstall everything you currently have in brew
for f in `brew list`; do
echo $f
brew uninstall $f && brew install $f
done
@wisicn
wisicn / gist:4983702
Created February 19, 2013 07:05 — forked from lieldulev/gist:3738681
video.js sample for a m3u8 HLS ABR content
<!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="{}">