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
{ pkgs, ... }: | |
let | |
update-qbittorrent-port = pkgs.stdenv.mkDerivation rec { | |
name = "update-qbittorrent-port"; | |
src = pkgs.fetchurl { | |
url = "https://gist.githubusercontent.com/aksiksi/34178962254fb73a8920d8b5e6650f98/raw/7917342ff0088fb58ed829571f7bc3f65108fc31/update_qbit_port.sh"; | |
hash = "sha256-35eodSANzs/ycDPeoy70NhFsgnDOxmJTka/WJ6j6gKY="; | |
}; | |
dontUnpack = true; |
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
#!/usr/bin/env python | |
import subprocess | |
class SpeedTest(object): | |
datacenters = [ | |
{ | |
'name': 'NYC1', | |
'host': 'speedtest-nyc1.digitalocean.com', | |
'ip': '198.211.112.36', | |
'location': 'New York, USA', |