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
### Keybase proof | |
I hereby claim: | |
* I am rielas on github. | |
* I am anatol (https://keybase.io/anatol) on keybase. | |
* I have a public key ASBMDqUC-37AoZKtOGBY1xxsWnpNP5udciV7tYyLFp5C_wo | |
To claim this, I am signing this object: |
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
[Unit] | |
Description=Runs OpenVPN client to use it as gateway | |
After=network.target | |
After=network-online.target | |
[Service] | |
ExecStart=/home/ubuntu/start-openvpn.sh | |
Restart=on-failure | |
[Install] |
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
#include <math.h> | |
class Complex { | |
public: | |
Complex(double re, double im) | |
: _re(re), _im(im) {} | |
double modulus() const { return sqrt(_re * _re + _im * _im); } | |
private: | |
double _re; |