asdf
lives in https://github.com/asdf-vm/asdf
Follow its installation instructions, which at the moment of writing were:
cd
asdf
lives in https://github.com/asdf-vm/asdf
Follow its installation instructions, which at the moment of writing were:
cd
""" | |
From the man page for ssh: | |
-f Requests ssh to go to background just before command execution. This is useful if ssh is going to ask | |
for passwords or passphrases, but the user wants it in the background. This implies -n. The recommended way | |
to start X11 programs at a remote site is with something like ssh -f host xterm. | |
If the ExitOnForwardFailure configuration option is set to “yes”, then a client started with -f will wait | |
for all remote port forwards to be successfully established before placing itself in the background. |
Filter "/etc/fail2ban/filter.d/cockpit.conf": | |
# Fail2Ban filter for Cockpit | |
# | |
[Definition] | |
failregex = pam_unix\(cockpit:auth\): authentication failure;.*rhost=<HOST> | |
datepattern = ^%%b %%d %%H:%%M:%%S | |
# DEV Notes: | |
# Author: Dmitriy Pertsev | |
Jail "/etc/fail2ban/jail.local": |
class atom(object): | |
"""An implementation of the atom concept, inspired by Erlang. | |
Modified from here: http://www.me.net.nz/blog/atoms-slash-symbols-in-python/ | |
""" | |
def __init__(self, a): | |
self._a = intern(a) | |
def __eq__(self, other): |
namespace Billiards | |
{ | |
public static class BilliardsTask | |
{ | |
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="directionRadians">Угол направления движения шара</param> | |
/// <param name="wallInclinationRadians">Угол</param> | |
/// <returns></returns> |
using System; | |
namespace Rectangles | |
{ | |
public static class RectanglesTask | |
{ | |
// Пересекаются ли два прямоугольника (пересечение только по границе также считается пересечением) | |
public static bool AreIntersected(Rectangle r1, Rectangle r2) | |
{ | |
return !(r1.Left > r2.Right || r2.Left > r1.Right || r1.Bottom < r2.Top || r2.Bottom < r1.Top); |
using System; | |
namespace Pluralize | |
{ | |
public static class PluralizeTask | |
{ | |
public static string PluralizeRubles(int count) | |
{ | |
if (count % 10 == 1 && count % 100 != 11) | |
return "рубль"; |