Skip to content

Instantly share code, notes, and snippets.

View aksiksi's full-sized avatar
🏠
Working from home

Assil Ksiksi aksiksi

🏠
Working from home
View GitHub Profile
@aksiksi
aksiksi / update_qbit_port.nix
Last active March 1, 2024 23:48 — forked from fizzxed/update_qbit_port.sh
Determine protonvpn port via gluetun and update qbittorrent
{ 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;
@aksiksi
aksiksi / ping-do.py
Last active March 30, 2016 09:31
Simple script to test DigitalOcean's datacenters speed
#!/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',