Skip to content

Instantly share code, notes, and snippets.

@mayli
mayli / Dockerfile
Created January 20, 2020 07:03
docker build exodus qbittorrent-nox
FROM alpine
RUN apk update && apk add python git automake libtool git boost-dev openssl-dev qt5-qtbase-dev qt5-qttools-dev autoconf build-base py2-pip
RUN pip install exodus-bundler
RUN cd && git clone https://github.com/arvidn/libtorrent.git && \
cd libtorrent/ && \
git checkout RC_1_2 && \
./autotool.sh && \
./configure --disable-debug --enable-encryption CXXFLAGS="-std=c++14" && \
make -j$(nproc) && \
make install
@notsure2
notsure2 / build-qbittorrent-ubuntu-16.04-static.sh
Last active July 3, 2021 12:23
How to compile latest qBittorrent-nox with static qt, boost and openssl for Ubuntu 16.04 xenial (using Ubuntu 16.04 xenial)
#!/bin/bash
set -e
apt update -y
apt install -y build-essential git perl python2.7 python2.7-dev zlib1g-dev autoconf libicu-dev pkg-config perl ccache
OPENSSL_TAG=OpenSSL_1_1_1-stable
QBITTORRENT_TAG=v4_2_x
LIBTORRENT_TAG=RC_1_2
QT5_TAG=5.14
BOOST_VER=1.72.0
@notsure2
notsure2 / build-qbittorrent-static.sh
Last active November 13, 2022 21:06
How to compile latest qBittorrent-nox with static qt and boost for Debian Stretch 9.0 (using Debian Stretch 9.0)
#!/bin/sh
set -e
apt install -y build-essential git perl python2.7 libboost-all-dev libboost-tools-dev zlib1g-dev autoconf libssl-dev
QBITTORRENT_TAG=v4_2_x
LIBTORRENT_TAG=RC_1_2
QT5_TAG=5.12
rm -rf work
mkdir work

This is a work in progress, proceed with caution

Install Proxmox and a Ubuntu VM with Portainer to manage docker containers

Setup Proxmox

  1. Install Proxmox 6.X iso I selected 2 drives in Raid 1 mirror
  2. Console/SSH into Proxmox
  3. nano /etc/apt/sources.list
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution.md
Last active October 27, 2025 16:28
Fix DNS resolution in WSL2

Permanent WSL DNS Fix (WSL 2.2.1+)

If you're encountering ping github.com failing inside WSL with a Temporary failure in name resolution, you're not alone — this has been a long-standing issue, especially when using VPNs or corporate networks.

This issue is now fixed robustly with DNS tunneling, which preserves dynamic DNS behavior and avoids limitations like WSL’s former hard cap of 3 DNS servers in /etc/resolv.conf.

DNS tunneling is enabled by default in WSL version 2.2.1 and later, meaning that if you're still seeing DNS resolution issues, the first and most effective fix is simply to upgrade WSL. Upgrading WSL updates the WSL platform itself, but does not affect your installed Linux distributions, apps, or files.

To upgrade WSL, follow these steps,

@Jabarabo
Jabarabo / githubpull.md
Last active October 10, 2025 04:04
Gist of a stolen gist
@po5
po5 / universal-torrent-gallery.user.js
Last active April 14, 2025 14:04
Gallery view for trackers
# -*- coding:utf-8 -*-
# !/usr/bin/env python3
'''
Author: ayasakinagi
Email: xyz.wang@outlook.com
环境: Python3
依赖: deluge_client
使用: 修改host, port, username, password, limitSize, dataPath变量
@ncallister
ncallister / dev-setup.md
Last active October 25, 2025 03:48
Ubuntu Dev Setup

Development Setup for Ubuntu

The following documents is basically notes on tools, repos, etc. to use for development in Ubuntu. It is devided into sections so that it can be used in pieces, it doesn't need to be followed like a script.

Notes

This is likely to end up out-of-date. Things to watch out for:

  • Package archives change, are abandoned or are superseded. Most of the packages archives will need to be checked before they are used.
  • Package names change over time, this is less likely than package archives and I have tried to use generic names for packages wherever possible.
@adefelicibus
adefelicibus / install-samtools-bcftools-and-htslib.md
Last active April 3, 2024 20:49
Install samtools, bcftools and htslib on linux

Install Samtools, BCFTools and htslib on linux

Install some build dependencies

sudo apt-get install autoconf automake make gcc perl zlib1g-dev libbz2-dev liblzma-dev libcurl4-gnutls-dev libssl-dev libncurses5-dev

[samtools]