I've tried solving the following problem but I get stuck at the very end...
$f(z)$ is defined as $$f(z)=\frac{1}{(z-\alpha)^2(z-1)}$$ with $\alpha \in \mathbb{C}$ and $\operatorname{Im}(\alpha) > 0$.
Calculate $$P.V. \int_{-\infty}^{+\infty} \frac{\operatorname d x}{(x-\alpha)^2(x-1)} = \int_{-\infty}^{+\infty} \frac{\operatorname d x}{(x-\alpha)^2(x-1)}$$
I'm using the following contour. I've calculated the residues and proven that $\int_{\Gamma_1}f(z) \operatorname d z \to 0$.

Here are the residues: $$\operatorname{res}(f, 1) = \frac{1}{(1-\alpha)^2} \qquad \operatorname{res}(f, \alpha) = \frac{-1}{1-\alpha)^2}$$
But then there is a little problem. The solutions manual states ...using the formula of Plemelj $P.V. \int_\Gamma f(z) \operatorname d z = \frac{-i\pi}{(1-\alpha)^2}$.
Whereas I would state according to the residue theorem: $$P.V. \int_\Gamma f(z) \operatorname d z = 2\pi i \left(\frac{1}{(1-\alpha)^2}+\frac{-1}{(1-\alpha)^2}\right) = 0 $$
I guess I can't use the residue theorem since a pole is located on the contour itself, but I can't seem to find any information on that formula of Plemelj...
To compute the principal value, use the usual semicircular contour $C$ in the upper half plane of radius $R$, but with a small, semicircular detour of radius $\epsilon$ into the upper half plane about the pole at $z=1$. What we get is
$$\oint_C \frac{dz}{(z-\alpha)^2 (z-1)} = \int_{-R}^{1-\epsilon} \frac{dx}{(x-\alpha)^2 (x-1)} + i \epsilon \int_{\pi}^0 d\phi \, \frac{e^{i \phi}}{(1+\epsilon e^{i \phi}-\alpha)^2 \epsilon e^{i \phi}} \\ +\int_{1+\epsilon}^R \frac{dx}{(x-\alpha)^2 (x-1)} + i R \int_0^{\pi} d\theta \frac{e^{i \theta}}{(R e^{i \theta}-\alpha)^2 (R e^{i \theta}-1)}$$
Take the limits as $R \to \infty$ and $\epsilon \to 0$. The fourth integral vanishes as $\pi/R^2$, but the second integral remains finite. Thus,
$$\oint_C \frac{dz}{(z-\alpha)^2 (z-1)} = PV \int_{-\infty}^{\infty} \frac{dx}{(x-\alpha)^2 (x-1)} - i \frac{\pi}{(1-\alpha)^2} $$
The contour integral is also equal to $i 2 \pi$ times the residue at the double pole $z=\alpha$, which by definition is inside $C$. Equating this to the RHS of the above equation, we may now determine our principal value:
$$PV \int_{-\infty}^{\infty} \frac{dx}{(x-\alpha)^2 (x-1)} = i \frac{\pi}{(1-\alpha)^2} - i 2 \pi \frac1{(\alpha-1)^2} = -i \frac{\pi}{(\alpha-1)^2}$$