On mac:
- Download the latest release.
- Extract the binary and place it in
/usr/local/bin
.
# Centos 7.1 | |
yum -y install wget | |
wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm | |
rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm | |
yum -y install deluge-web | |
systemctl start deluge-web | |
systemctl stop firewalld |
#Put this in Export-Chocolatey.ps1 file and run it: | |
#.\Export-Chocolatey.ps1 > packages.config | |
#You can install the packages using | |
#choco install packages.config -y | |
Write-Output "<?xml version=`"1.0`" encoding=`"utf-8`"?>" | |
Write-Output "<packages>" | |
choco list -lo -r -y | % { " <package id=`"$($_.SubString(0, $_.IndexOf("|")))`" version=`"$($_.SubString($_.IndexOf("|") + 1))`" />" } | |
Write-Output "</packages>" |
# -*- coding:utf-8 -*- | |
from selenium import webdriver | |
user_agent = ( | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) " + | |
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36" | |
) | |
sourcedir = "/tmp" | |
sourcefiles = ["subfile1.srt", "subfile2.srt"] |
On mac:
/usr/local/bin
.# t2.small | |
pm = dynamic | |
pm.max_children = 35 | |
pm.start_servers = 6 | |
pm.min_spare_servers = 4 | |
pm.max_spare_servers = 8 | |
pm.max_requests = 300 | |
# t2.medium |
# 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. | |
# Maximum and minimum number of peers to connect to per torrent. | |
min_peers = 1 | |
max_peers = 300 | |
# Same as above but for seeding completed torrents (-1 = same as downloading) | |
min_peers_seed = 1 |
BitTorrentの仕組みを読むのが早い。
完全な P2P というわけではなく、コンテンツとピアの情報を管理するトラッカーというサーバーがいる。トラッカー不在でも動作するDHTモードという仕組みもある。
# -*- encoding: utf-8 -*- | |
import sys | |
import os.path | |
import codecs | |
if len(sys.argv) == 1: | |
print "Usage: cue_to_mp3.py <CUE file path> [-o]" | |
print "Options:" | |
print " -o, execute and output mp3 file" |
#!/bin/bash | |
echo "Input ISO Name Without .ISO (also doesnt support spaces in filename)": | |
read isofolder | |
isoname=$isofolder.ISO | |
echo Gonig to be converting $isoname | |
sleep 2 | |
mkdir /mnt/data/ConvertedVideos/$isofolder | |
rawout=$(HandBrakeCLI -i ./$isoname -t 0 2>&1 >/dev/null) | |
#read handbrake's stderr into variable |